forked from yashrajbharti/Pokemon-Type-Weakness-Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (70 loc) · 3.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokemon Type Multiplier Calculator And Weakness Calculator</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
</head>
<body>
<img src="./pokedex.png" alt="pokedex 100" height="50px">
<h2>Pokemon Type Multiplier Calculator And Weakness Calculator</h2>
<div class="flex-container">
<div style="flex: 1; margin-right: 10px;">
<label for="type1">Select Type 1:</label>
<select id="type1" onchange="updateQueryString()">
<!-- List all Pokemon types -->
<option value="normal">Normal</option>
<option value="fire">Fire</option>
<option value="water">Water</option>
<option value="electric">Electric</option>
<option value="grass">Grass</option>
<option value="ice">Ice</option>
<option value="fighting">Fighting</option>
<option value="poison">Poison</option>
<option value="ground">Ground</option>
<option value="flying">Flying</option>
<option value="psychic">Psychic</option>
<option value="bug">Bug</option>
<option value="rock">Rock</option>
<option value="ghost">Ghost</option>
<option value="dragon">Dragon</option>
<option value="dark">Dark</option>
<option value="steel">Steel</option>
<option value="fairy">Fairy</option>
</select>
</div>
<div style="flex: 1;">
<label for="type2">Select Type 2:</label>
<select id="type2" onchange="updateQueryString()">
<!-- List all Pokemon types, add "none" as an option -->
<option value="none">None</option>
<option value="normal">Normal</option>
<option value="fire">Fire</option>
<option value="water">Water</option>
<option value="electric">Electric</option>
<option value="grass">Grass</option>
<option value="ice">Ice</option>
<option value="fighting">Fighting</option>
<option value="poison">Poison</option>
<option value="ground">Ground</option>
<option value="flying">Flying</option>
<option value="psychic">Psychic</option>
<option value="bug">Bug</option>
<option value="rock">Rock</option>
<option value="ghost">Ghost</option>
<option value="dragon">Dragon</option>
<option value="dark">Dark</option>
<option value="steel">Steel</option>
<option value="fairy">Fairy</option>
</select>
</div>
</div>
<button onclick="calculateMultipliers()" tabindex="0">Calculate Multipliers</button>
<p>Press space or enter to click the button.</p>
<h3>Type Multipliers:</h3>
<ul id="multiplierList"></ul>
<script src="script.js"></script>
</body>
</html>