-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
540 lines (540 loc) · 19.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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Mario Kart Optimizer</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="description" content="A simple online tool to optimize your Mario Kart build" />
<link rel="icon" href="./favicon.png" />
<link rel="stylesheet" href="./index.css" />
<script type="module" src="src/index.js"></script>
</head>
<body>
<noscript>You must enable JavaScript to use this app.</noscript>
<form>
<button type="reset">Reset</button>
<table>
<thead>
<tr>
<th scope="col">Stat</th>
<th scope="col">Min</th>
<th scope="col">Max</th>
<th scope="col">Optimize?</th>
</tr>
</thead>
<tbody>
<tr>
<td>Land speed</td>
<td>
<input
id="land-speed-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min land speed" required
/>
</td>
<td>
<input
id="land-speed-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max land speed" required
/>
</td>
<td>
<select id="land-speed-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Water speed</td>
<td>
<input
id="water-speed-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min water speed" required
/>
</td>
<td>
<input
id="water-speed-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max water speed" required
/>
</td>
<td>
<select id="water-speed-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Air speed</td>
<td>
<input
id="air-speed-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min air speed" required
/>
</td>
<td>
<input
id="air-speed-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max air speed" required
/>
</td>
<td>
<select id="air-speed-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Antigravity speed</td>
<td>
<input
id="antigrav-speed-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min antigravity speed" required
/>
</td>
<td>
<input
id="antigrav-speed-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max antigravity speed" required
/>
</td>
<td>
<select id="antigrav-speed-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Acceleration</td>
<td>
<input
id="accel-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min acceleration" required
/>
</td>
<td>
<input
id="accel-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max acceleration" required
/>
</td>
<td>
<select id="accel-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Weight</td>
<td>
<input
id="weight-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min weight" required
/>
</td>
<td>
<input
id="weight-max"
type="number"
min="0.25"
max="6"
step="0.25"
value="6"
aria-label="max weight"
required
/>
</td>
<td>
<select id="weight-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Land handling</td>
<td>
<input
id="land-handling-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min land handling" required
/>
</td>
<td>
<input
id="land-handling-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max land handling" required
/>
</td>
<td>
<select id="land-handling-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Water handling</td>
<td>
<input
id="water-handling-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min water handling" required
/>
</td>
<td>
<input
id="water-handling-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max water handling" required
/>
</td>
<td>
<select id="water-handling-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Air handling</td>
<td>
<input
id="air-handling-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min air handling" required
/>
</td>
<td>
<input
id="air-handling-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max air handling" required
/>
</td>
<td>
<select id="air-handling-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Antigravity handling</td>
<td>
<input
id="antigrav-handling-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min antigravity handling" required
/>
</td>
<td>
<input
id="antigrav-handling-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max antigravity handling" required
/>
</td>
<td>
<select id="antigrav-handling-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Traction</td>
<td>
<input
id="traction-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min traction" required
/>
</td>
<td>
<input
id="traction-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max traction" required
/>
</td>
<td>
<select id="traction-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Mini-Turbo</td>
<td>
<input
id="mini-turbo-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min mini-turbo" required
/>
</td>
<td>
<input
id="mini-turbo-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max mini-turbo" required
/>
</td>
<td>
<select id="mini-turbo-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
<tr>
<td>Invulnerability</td>
<td>
<input
id="invuln-min" type="number" min="0" max="5.75" step="0.25" value="0"
aria-label="min invulnerability" required
/>
</td>
<td>
<input
id="invuln-max" type="number" min="0.25" max="6" step="0.25" value="6"
aria-label="max invulnerability" required
/>
</td>
<td>
<select id="invuln-opt" required>
<option selected value="no">Don't Optimize</option>
<option value="min">Minimize</option>
<option value="max">Maximize</option>
</select>
</td>
</tr>
</tbody>
</table>
<label for="inward-drift">Inward-drifting bikes</label>
<select id="inward-drift" required>
<option selected value="both">Included</option>
<option value="yes">Only</option>
<option value="no">Ignored</option>
</select>
<span
tabindex="0"
class="info"
title="Some bikes shift their center of gravity inwards while drifting, making them handle very differently. Select "Only" to only see these bikes, or "Ignored" to omit these bikes."
></span>
<br />
<button type="button" id="limit-characters">Limit characters</button>
<button type="button" id="limit-karts">Limit karts</button>
<button type="button" id="limit-wheels">Limit wheels</button>
<button type="button" id="limit-gliders">Limit gliders</button>
<menu></menu>
<button type="submit" id="submit">Go!</button>
<button type="button" onclick="document.getElementById('output').innerHTML = ''">
Clear results
</button>
</form>
<table>
<thead>
<tr>
<th scope="col">Character</th>
<th scope="col">Kart</th>
<th scope="col">Wheels</th>
<th scope="col">Glider</th>
</tr>
</thead>
<tbody id="output">
<tr>
<td><img src="./img/Mario.webp" alt="Mario" title="Mario" /><img src="./img/Ludwig.webp" alt="Ludwig" title="Ludwig" /><img src="./img/MediumMii.webp" alt="MediumMii" title="Medium Mii" /></td>
<td><img src="./img/StandardKart.webp" alt="StandardKart" title="Standard Kart" /><img src="./img/TheDuke.webp" alt="TheDuke" title="The Duke" /></td>
<td><img src="./img/Standard.webp" alt="Standard" title="Standard" /><img src="./img/BlueStandard.webp" alt="BlueStandard" title="Blue Standard" /></td>
<td><img src="./img/SuperGlider.webp" alt="SuperGlider" title="Super Glider" /><img src="./img/WaddleWing.webp" alt="WaddleWing" title="Waddle Wing" /><img src="./img/HylianKite.webp" alt="HylianKite" title="Hylian Kite" /></td>
</tr>
</tbody>
</table>
<hr />
<div id="kart-preview">Loading...</div>
<div id="stats-display">
<table>
<tbody>
<tr>
<td>
<label id="land-speed-label">Land speed</label>
</td>
<td>
<div
class="meter" id="land-speed-prev" role="meter" aria-labelledby="land-speed-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="land-speed-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="water-speed-label">Water speed</label>
</td>
<td>
<div
class="meter" id="water-speed-prev" role="meter" aria-labelledby="water-speed-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="water-speed-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="air-speed-label">Air speed</label>
</td>
<td>
<div
class="meter" id="air-speed-prev" role="meter" aria-labelledby="air-speed-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="air-speed-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="antigrav-speed-label">Antigravity speed</label>
</td>
<td>
<div
class="meter" id="antigrav-speed-prev" role="meter"
aria-labelledby="antigrav-speed-label" aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="antigrav-speed-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="accel-label">Acceleration</label>
</td>
<td>
<div
class="meter" id="accel-prev" role="meter" aria-labelledby="accel-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="accel-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="weight-label">Weight</label>
</td>
<td>
<div
class="meter" id="weight-prev" role="meter" aria-labelledby="weight-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="weight-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="land-handling-label">Land handling</label>
</td>
<td>
<div
class="meter" id="land-handling-prev" role="meter"
aria-labelledby="land-handling-label" aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="land-handling-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="water-handling-label">Water handling</label>
</td>
<td>
<div
class="meter" id="water-handling-prev" role="meter"
aria-labelledby="water-handling-label" aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="water-handling-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="air-handling-label">Air handling</label>
</td>
<td>
<div
class="meter" id="air-handling-prev" role="meter"
aria-labelledby="air-handling-label" aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="air-handling-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="antigrav-handling-label">Antigravity handling</label>
</td>
<td>
<div
class="meter" id="antigrav-handling-prev" role="meter"
aria-labelledby="antigrav-handling-label" aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="antigrav-handling-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="traction-label">Traction</label>
</td>
<td>
<div
class="meter" id="traction-prev" role="meter" aria-labelledby="traction-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="traction-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="mini-turbo-label">Mini-Turbo</label>
</td>
<td>
<div
class="meter" id="mini-turbo-prev" role="meter" aria-labelledby="mini-turbo-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="mini-turbo-value" aria-hidden="true"></td>
</tr>
<tr>
<td>
<label id="invuln-label">Invulnerability</label>
</td>
<td>
<div
class="meter" id="invuln-prev" role="meter" aria-labelledby="invuln-label"
aria-valuemin="0" aria-valuemax="6"
></div>
</td>
<td id="invuln-value" aria-hidden="true"></td>
</tr>
</tbody>
</table>
<div id="rivals">Rivals<sup
tabindex="0"
class="info"
title="When playing as P1 in a Grand Prix, these characters are guaranteed to be COM characters and should be better than other COMs, unless they are chosen by other players. Not all characters have rivals."
></sup>: </div>
</div>
<hr />
<label for="version">Game version:</label>
<select id="version">
<option value="switch">Switch v3.0.0</option>
<option value="wiiU">Wii U</option>
</select>
<footer>
Any bugs or inaccuracies?
<a href="https://github.com/bbrk24/mariokart-optimizer/issues">File an issue</a>
</footer>
</body>
</html>