-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (125 loc) · 5.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html lang="en">
<head>
<title>Minechant</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<script
src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
crossorigin="anonymous"
></script>
<script src="data.js?10"></script>
<script src="script.js?15"></script>
<link rel="stylesheet" type="text/css" href="style.css?3" />
<link rel="shortcut icon" href="images/book.gif" />
</head>
<body>
<div class="inner">
<div class="top-container">
<div class="logo">Minechant</div>
<p>
<label for="language"></label>
<select id="language" class="selectLanguage">
<option value="" selected>LN</option>
</select>
</p>
</div>
<div id="left">
<p>
<label for="item"></label>
<select id="item" class="selectItem">
<option value="">
Choose an item to enchant ↓
</option>
</select>
</p>
<div id="enchants">
<div class="tableContainer">
<table></table>
</div>
<div id="overrides">
<div>
<label>
<input
type="checkbox"
id="allow_incompatible"
onchange="allowIncompatibleChanged()"
/>
<span id="override-incompatible"
>Allow incompatible</span
>
</label>
</div>
<div>
<label>
<input
type="checkbox"
id="allow_many"
onchange="allowManyChanged()"
/>
<span id="override-max-number"
>Allow 10+ enchantments</span
>
</label>
</div>
</div>
<button id="calculate">Calculate »</button>
</div>
</div>
<div id="right">
<p id="mode_selection">
<span id="optimize-label">Prioritize:</span><br />
<label>
<input
type="radio"
name="cheapness-mode"
checked="checked"
value="levels"
/>
<span id="optimize-xp">XP Levels</span>
</label>
<br />
<label>
<input
type="radio"
name="cheapness-mode"
value="prior_work"
/>
<span id="optimize-pwp">Work Penalty</span>
</label>
</p>
<div id="progress" style="display: none">
<img src="spin.svg" width="20" height="20" alt="" />
<span class="lbl">Text here</span>
</div>
<div id="solution" style="display: none">
<p>
<b id="total-cost-label">Total cost:</b>
<span id="level-cost">####</span>
</p>
<b>Steps:</b>
<ol id="steps"></ol>
<small>
<p id="xp-range-note" style="display: none">
Note: The two XP values shown are the difference
between saving up for all levels/XP in one go,
versus gaining levels/XP between each enchantment
step.
</p>
</small>
</div>
<div id="error" style="display: none">
<span class="lbl">Text here</span>
</div>
<div id="phone-warn" style="display: none">
<span class="lbl">
You have selected many enchantments and are using a
phone or tablet - the calculator may run out of memory
and crash. Try selecting fewer enchantments, or using a
computer.
</span>
</div>
</div>
</div>
</body>
</html>