-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
269 lines (262 loc) · 14.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pokémon Team Analyzer</title>
<!--Import Google Icon Font and Roboto-->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="css/main.css"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script type="text/javascript" src="js/movedex.js"></script>
<script type="text/javascript" src="js/pokedex.js"></script>
<script type="text/javascript" src="js/typechart.js"></script>
<script type="text/javascript" src="js/learnsets.js"></script>
<script type="text/javascript" src="js/parser.js"></script>
<div class="row">
<div id="tabs-wrapper" class="col s12">
<ul class="tabs">
<li class="tab col s4">
<a href="#overview">Team</a>
</li>
<li class="tab col s4">
<a href="#matchups">Weaknesses</a>
</li>
<li class="tab col s3 selected">
<a href="#coverage">Coverage</a>
</li>
</ul>
</div>
</div>
<div id="overview">
<div class="row">
<div class="col s12 m6">
<div class="vert-scroll-wrapper">
<form>
<div class="row">
<div class="input-field">
<textarea id="team-input" class="materialize-textarea"></textarea>
<label for="team-input">Team Input</label>
</div>
</div>
</form>
</div>
<button class="btn waves-effect waves-light center" id="submit" type="submit" name="action"
onClick="parseInput()">Submit
</button>
<li></li><p><span width="15" height="15" border="15"></span></p>
<div class="col s12 m2">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<div class="row">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="3P8CWTQXU6RJC">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="10" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="5" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="10" height="1">
</div>
</form>
</div>
</div>
<div class="col s12 m6">
<div class="row">
<h5>Weaknesses/Resistances:</h5>
<div class="col s12 m6">
<ul style="list-style-type: none">
<li><p><span id="2xWeak" class="count">0</span> 2x Weaknesses</p></li>
<li><p><span id="4xWeak" class="count">0</span> 4x Weaknesses</p></li>
<li><p><span id="8xWeak" class="count">0</span> 8x Weaknesses</p></li>
<li><p><span id="16xWeak" class="count">0</span> 16x Weaknesses</p></li>
<li><p><span id="immune" class="count">0</span> Immunities</p></li>
</ul>
</div>
<div class="col s12 m6">
<ul style="list-style-type: none">
<li><p><span id="2xResist" class="count">0</span> 2x Resistances</p></li>
<li><p><span id="4xResist" class="count">0</span> 4x Resistances</p></li>
<li><p><span id="8xResist" class="count">0</span> 8x Resistances</p></li>
<li><p><span id="16xResist" class="count">0</span> 16x Resistances</p></li>
</ul>
</div>
</div>
<div class="row">
<h5>Hazards/Hazard Control</h5>
<div class="col s12 m6">
<ul style="list-style-type:none">
<li><p><span id="rocks" class="count">0</span> Rocks User(s)</p></li>
<li><p><span id="spikes" class="count">0</span> Spikes User(s)</p></li>
<li><p><span id="tSpikes" class="count">0</span> Toxic Spikes User(s)</p></li>
<li><p><span id="lScreen" class="count">0</span> Light Screen User(s)</p></li>
<li><p><span id="reflect" class="count">0</span> Reflect User(s)</p></li>
<li><p><span id="auroraVeil" class="count">0</span> Aurora Veil User(s)</p></li>
</ul>
</div>
<div class="col s12 m6">
<ul style="list-style-type:none">
<li><p><span id="defoggers" class="count">0</span> Defogger(s)</p></li>
<li><p><span id="spinners" class="count">0</span> Spinner(s)</p></li>
</ul>
</div>
</div>
<div class="row">
<h5>Stat spread:</h5>
<div class="switch">
Ignore EVs/IVs?
<label>
No
<input type="checkbox" id="evIvSwitch" onclick="populateStatTable()">
<span class="lever"></span>
Yes
</label>
</div>
<div class="row">
<table class="responsive-table" id="statTable">
<thead>
<tr>
<th data-field="pokemonLabel">Pokémon</th>
<th data-field="hp">Hp</th>
<th data-field="atk">Atk</th>
<th data-field="def">Def</th>
<th data-field="spa">SpA</th>
<th data-field="spd">SpD</th>
<th data-field="spe">Spe</th>
<th data-field="bst">BST</th>
</tr>
</thead>
<tbody id="statTableBody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="matchups">
<div class="horiz-scroll-wrapper">
<div class="row">
<table class="striped responsive-table">
<thead>
<tr>
<th>Pokémon</th>
<th><span class="type bug">Bug</span></th>
<th><span class="type dark">Dark</span></th>
<th><span class="type dragon">Dragon</span></th>
<th><span class="type electric">Electric</span></th>
<th><span class="type fairy">Fairy</span></th>
<th><span class="type fighting">Fighting</span></th>
<th><span class="type fire">Fire</span></th>
<th><span class="type flying">Flying</span></th>
<th><span class="type ghost">Ghost</span></th>
<th><span class="type grass">Grass</span></th>
<th><span class="type ground">Ground</span></th>
<th><span class="type ice">Ice</span></th>
<th><span class="type normal">Normal</span></th>
<th><span class="type poison">Poison</span></th>
<th><span class="type psychic">Psychic</span></th>
<th><span class="type rock">Rock</span></th>
<th><span class="type steel">Steel</span></th>
<th><span class="type water">Water</span></th>
</tr>
</thead>
<tbody id="matchupTableBody">
</tbody>
</table>
</div>
</div>
</div>
<div id="coverage">
<div class="horiz-scroll-wrapper">
<div class="row">
<table class="striped responsive-table">
<thead>
<tr>
<th>Type</th>
<th>Coverage?</th>
<th>STAB?</th>
<th>Type</th>
<th>Coverage?</th>
<th>STAB?</th>
<th>Type</th>
<th>Coverage?</th>
<th>STAB?</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="type bug">Bug</span></td>
<td><span id="bugCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="bugStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type fire">Fire</span></td>
<td><span id="fireCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="fireStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type normal">Normal</span></td>
<td><span id="normalCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="normalStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
<tr>
<td><span class="type dark">Dark</span></td>
<td><span id="darkCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="darkStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type flying">Flying</span></td>
<td><span id="flyingCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="flyingStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type poison">Poison</span></td>
<td><span id="poisonCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="poisonStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
<tr>
<td><span class="type dragon">Dragon</span></td>
<td><span id="dragonCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="dragonStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type ghost">Ghost</span></td>
<td><span id="ghostCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="ghostStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type psychic">Psychic</span></td>
<td><span id="psychicCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="psychicStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
<tr>
<td><span class="type electric">Electric</span></td>
<td><span id="electricCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="electricStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type grass">Grass</span></td>
<td><span id="grassCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="grassStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type rock">Rock</span></td>
<td><span id="rockCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="rockStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
<tr>
<td><span class="type fairy">Fairy</span></td>
<td><span id="fairyCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="fairyStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type ground">Ground</span></td>
<td><span id="groundCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="groundStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type steel">Steel</span></td>
<td><span id="steelCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="steelStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
<tr>
<td><span class="type fighting">Fighting</span></td>
<td><span id="fightingCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="fightingStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type ice">Ice</span></td>
<td><span id="iceCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="iceStab" class="material-icons" style="color:red;">cancel</span></td>
<td><span class="type water">Water</span></td>
<td><span id="waterCoverage" class="material-icons" style="color:red;">cancel</span></td>
<td><span id="waterStab" class="material-icons" style="color:red;">cancel</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>