-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
333 lines (333 loc) · 17.2 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Tibia Speed Calculator</title>
</head>
<body>
<div class="container">
<h1>Rodrijav Tibia Speed Calculator</h1>
<div class="row">
<div class="col-4">
<div class="card card-body" style="display: inline-block;">
<h2 style="display: inline-block;">Character level</h2>
<input type="number" class="form-control character-level mx-2" id="nivel" value="1" min="1" onChange="calcular();">
</div>
</div>
<div class="col-4 mb-2">
<div class="card card-body" style="background-color: green; display:inline-block;">
<h2 id="resultado" style="display:inline-block;">Speed</h2>
<h2 id="breakpoint">Breakpoint</h2>
<h5 id="above">Points above current breakpoint</h5>
<h5 id="missing">Points missing until next breakpoint</h5>
</div>
</div>
</div>
<div class="row">
<div class="col-4">
<div class="card card-body">
<h2>Haste modifiers</h2>
<div class="form-check" >
<input class="form-check-input" type="radio" name="hasteModifier" value="1.0" onChange="calcular();" checked>
Nothing
</div>
<div class="form-check">
<input class="form-check-input radio" type="radio" name="hasteModifier" value="1.3" onChange="calcular();">
<label class="form-check-label" for="flexRadioDefault2">
<img src="images/spells and charms/Haste.webp"> Haste <i>Utani Hur</i>
</label>
</div>
<div class="form-check" style="display:inline-block;">
<input class="form-check-input radio" type="radio" name="hasteModifier" value="1.7" onChange="calcular();">
<label class="form-check-label" for="flexRadioDefault2">
<img src="images/spells and charms/Strong_Haste.webp"> Strong Haste <i>Utani Gran Hur</i>
</label>
</div>
<div class="form-check">
<input class="form-check-input radio" type="radio" name="hasteModifier" value="1.9" onChange="calcular();">
<label class="form-check-label" for="flexRadioDefault2">
<img src="images/spells and charms/Charge.webp"> Charge <i>Utani Tempo Hur</i>
</label>
</div>
<div class="form-check">
<input class="form-check-input radio" type="radio" name="hasteModifier" value="1.8" id="utamo-tempo-san" onChange="calcular();">
<label class="form-check-label" for="flexRadioDefault2">
<img src="images/spells and charms/Swift_Foot.webp"> Swift Foot <i>Utamo Tempo San</i>
</label>
</div>
<div class="form-check">
<input class="form-check-input radio" type="radio" name="hasteModifier" value="2.5" id="adrenaline-boost" onChange="calcular();">
<label class="form-check-label" for="flexRadioDefault2">
<img src="images/spells and charms/Adrenaline_Burst.webp"> Adrenaline Burst
</label>
</div>
</div>
</div>
<div class="col-4">
<div class="card card-body mb-2">
<h2>Additional speed</h2>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" value="10" onChange="calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Mount
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" value="30" onChange="calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Time Ring
</label>
</div>
<div style="display: inline-block;">
<h2 style="display: inline-block;">Food</h2> <i id="popoverData" class="far fa-question-circle" style="vertical-align: text-top;" data-bs-toggle="tooltip" data-bs-placement="right" title="Las comidas anulan los haste modifiers"></i>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional food" type="checkbox" name="foods" id="food1" value="80" onChange="clean('foods', 'food1'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Chili con Carniphilia
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional food" type="checkbox" name="foods" id="food2" value="50" onChange="clean('foods', 'food2'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Demonic Candy Ball
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional food" type="checkbox" name="foods" id="food3" value="100" onChange="clean('foods', 'food3'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Filled Jalapeno Peppers
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional food" type="checkbox" name="foods" id="food4" value="300" onChange="clean('foods', 'food4'); coconut(); calcular();" disabled>
<label class="form-check-label" for="flexSwitchCheckChecked">
Coconut Shrimp Bake
</label> <i id="popoverData" class="far fa-question-circle" data-bs-toggle="tooltip" data-bs-placement="right" title="Only underwater. Must wear a Helmet of the Deep."></i>
</div>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseHelmets" aria-expanded="false" aria-controls="collapseHelmets">
<h3>Helmets <img src="images/helmets/Crest_of_the_Deep_Seas.webp"></h3>
</button>
<div class="collapse" id="collapseHelmets">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="helmets" id="helmet1" value="5" onChange="clean('helmets', 'helmet1'); helmet(); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Crest of the Deep Seas
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="helmets" id="helmet2" value="20" onChange="clean('helmets', 'helmet2'); helmet(); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Tiara of Power
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="helmets" id="helmet3" value="15" onChange="clean('helmets', 'helmet3'); helmet(); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Werewolf Helmet
</label>
</div>
</div>
<br/>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseArmors" aria-expanded="false" aria-controls="collapseArmors">
<h3>Armors <img src="images/armors/Elite_Draken_Mail.webp"></h3>
</button>
<div class="collapse" id="collapseArmors">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="armors" id="armor1" value="10" onChange="clean('armors', 'armor1'); calcular();">
<label class="form-check-label">
Elite Draken Mail
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="armors" id="armor2" value="10" onChange="clean('armors', 'armor2'); calcular();">
<label class="form-check-label">
Swan Feather Cloak
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="armors" id="armor3" value="10" onChange="clean('armors', 'armor3'); calcular();">
<label class="form-check-label">
Zaoan Armor
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="armors" id="armor4" value="15" onChange="clean('armors', 'armor4'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Prismatic Armor
</label>
</div>
</div>
<br/>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseLegs" aria-expanded="false" aria-controls="collapseLegs">
<h3>Legs <img src="images/legs/Alloy_Legs.webp"></h3>
</button>
<div class="collapse" id="collapseLegs">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="legs" id="legs1" value="10" onChange="clean('legs', 'legs1'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Alloy Legs
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="legs" id="legs2" value="10" onChange="clean('legs', 'legs2'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Grasshopper Legs
</label>
</div>
</div>
<br/>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseBoots" aria-expanded="false" aria-controls="collapseBoots">
<h3>Boots <img src="images/boots/Boots_of_Haste.webp"></h3>
</button>
<div class="collapse" id="collapseBoots">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots1" value="10" onChange="clean('boots', 'boots1'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Badger Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots2" value="20" onChange="clean('boots', 'boots2'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Boots of Haste
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots3" value="10" onChange="clean('boots', 'boots3'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Cobra Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots4" value="15" onChange="clean('boots', 'boots4'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Draken Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots5" value="15" onChange="clean('boots', 'boots5'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Oriental Shoes
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots6" value="20" onChange="clean('boots', 'boots6'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Pair of Soulstalkers
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots7" value="15" onChange="clean('boots', 'boots7'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Pair of Soulwalkers
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots8" value="15" onChange="clean('boots', 'boots8'); calcular(); ">
<label class="form-check-label" for="flexSwitchCheckChecked">
Prismatic Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots9" value="30" onChange="clean('boots', 'boots9'); calcular(); ">
<label class="form-check-label" for="flexSwitchCheckChecked">
Void Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots10" value="15" onChange="clean('boots', 'boots10'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Winged Boots
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots11" value="5" onChange="clean('boots', 'boots11'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Zaoan Shoes
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots12" value="-5" onChange="clean('boots', 'boots12'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Depth Calcei
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="boots" id="boots13" value="-6" onChange="clean('boots', 'boots13'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Fur Boots
</label>
</div>
</div>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseNecklaces" aria-expanded="false" aria-controls="collapseNecklaces">
<h3>Necklaces <img src="images/amulets and necklaces/Shrunken_Head_Necklace.webp"></h3>
</button>
<div class="collapse" id="collapseNecklaces">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="necklaces" id="necklace1" value="2" onChange="clean('necklaces', 'necklace1'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Beetle Necklace
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="necklaces" id="necklace2" value="2" onChange="clean('necklaces', 'necklace2'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Shrunken Head Necklace
</label>
</div>
</div>
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseShields" aria-expanded="false" aria-controls="collapseShields">
<h3>Shields <img src="images/shields/Sparking_Rainbow_Shield.webp"></h3>
</button>
<div class="collapse" id="collapseShields">
<div class="form-check form-switch">
<input class="form-check-input speedAdicional" type="checkbox" name="shields" id="shield1" value="10" onChange="clean('shields', 'shield1'); calcular();">
<label class="form-check-label" for="flexSwitchCheckChecked">
Sparking Rainbow Shield
</label>
</div>
</div>
</div>
</div>
<div class="col-4">
<div class="card card-body">
<h2>Terrain</h2>
<select class="form-select" id="tile" aria-label="Default select example" style="width: 12rem; display:inline-block;" onChange="terreno(); calcular();">
<option value="0">Omruc Maze</option>
<option value="1">Bridges</option>
<option value="2">Oramond Sewer Bridges</option>
<option value="3" selected>Town, Depots, etc.</option>
<option value="4">Roshamuul Surface</option>
<option value="5">Darashia Town</option>
<option value="6">Red Planks</option>
<option value="7">Hive Structures</option>
<option value="8">Dirt Floor</option>
<option value="9">Dark Grass</option>
<option value="10">Mountain Floor, Deeplings</option>
<option value="11">Desert Sand, Snow, etc.</option>
<option value="12">Swimming</option>
<option value="13">Dirt, Lava</option>
<option value="14">Shallow Water, Slime, etc.</option>
<option value="15">Underwater</option>
</select>
</div>
</div>
</div>
<div class="row mb-4">
<img src="images/table.jpg">
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
<script>
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
</script>
<script src="main.js"></script>
</body>
</html>