-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
269 lines (267 loc) · 8.57 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>Pkmon Tools</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="img/favicon.ico">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="js/damage.js"></script>
<script type="text/javascript" src="js/pokemon.js"></script>
<script type="text/javascript" src="js/setStats.js"></script>
<script type="text/javascript" src="js/setHp.js"></script>
<script type="text/javascript" src="js/nature.js"></script>
<script type="text/javascript" src="js/setAllStats.js"></script>
<script type="text/javascript" src="js/totalStats.js"></script>
<script type="text/javascript" src="js/totalEV.js"></script>
<header>
<div class="container">
<h1>Pokemon Tools</h1>
</div>
</header>
<div class="container">
<div class="row">
<div id="catch" class="col-md-4 col-sm-12">
<h2>Catch Calculator</h2>
<table>
<tr>
<td>
Pokemon:
</td>
<td>
<select id="poke" onchange="setStats()"></select>
</td>
</tr>
<tr>
<td>
Level:
</td>
<td>
<input type="number" id="level" min="1" max="100" size="5" value="1" onchange="setHp()">
</td>
</tr>
<tr>
<td>
Base Hp
</td>
<td>
<input type="text" id="baseHp" size="5" disabled>
</td>
</tr>
<tr>
<td>
Max Hp
</td>
<td>
<input id="maxHp" size="5" disabled>
</td>
</tr>
<tr>
<td>
Current Hp
</td>
<td>
<input type="text" id="currentHp" size="5">
</td>
</tr>
<tr>
<td>
Rate:
</td>
<td>
<input type="text" id="rate" size="5" disabled>
</td>
</tr>
<tr>
<td>
Ball:
</td>
<td>
<select id="ball">
<option value="PokeBall">Poke Ball</option>
<option value="GreatBall">Great Ball</option>
<option value="UltraBall">Ultra Ball</option>
<option value="FriendBall">Friend Ball</option>
<option value="SportBall">Sport Ball</option>
<option value="HealBall">Heall Ball</option>
<option value="CherishBall">Cherish Ball</option>
<option value="PremierBall">Premier Ball</option>
<option value="LuxuryBall">Luxury Ball</option>
</select>
</td>
</tr>
<tr>
<td>
Status:
</td>
<td>
<select id="status">
<option value="1">None</option>
<option value="2">Sleep - Freeze</option>
<option value="1.5">Paralyze - Poison - Burn</option>
</select>
</td>
</tr>
<tr>
<td>
Catch Rate:
</td>
<td>
<input type="text" id="answer" size="5" disabled />
</td>
</tr>
<tr>
<td>
<button type="button" onclick="javascript:calc();">Calculate</button>
</td>
</tr>
</table>
</div>
<div id="statistic" class="col-md-6 col-sm-12">
<h2>Statistic Calculator</h2>
<table>
<tr>
<td>
Pokemon:
</td>
<td>
<select id="poke2" onchange="setAllStats()"></select>
</td>
</tr>
<tr>
<td>
Level:
</td>
<td>
<input type="number" id="level2" min="1" max="100" size="5" value="1">
</td>
</tr>
<tr>
<td>
Nature:
</td>
<td>
<select id="nature" ></select>
</td>
</tr>
</table>
<table>
<tr>
<td></td>
<td class="subtitle">Base</td>
<td class="subtitle">Ev's</td>
<!-- <td></td> -->
<td class="subtitle">Iv's</td>
<td class="subtitle">Total</td>
</tr>
<tr>
<td >HP</td>
<td><input id="hp" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="hpEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange" value="0"></td> -->
<td><input id="hpIv" size="5" value="31"></td>
<td><input id="hpTotal" size="5" disabled></td>
</tr>
<tr>
<td>Attack</td>
<td><input id="atk" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="atkEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange"></td> -->
<td><input id="atkIv" size="5" value="31"></td>
<td><input id="atkTotal" size="5" disabled></td>
</tr>
<tr>
<td>Defense</td>
<td><input id="def" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="defEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange"></td> -->
<td><input id="defIv" size="5" value="31"></td>
<td><input id="defTotal" size="5"disabled></td>
</tr>
<tr>
<td>Sp. Attack</td>
<td><input id="spatk" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="spatkEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange"></td> -->
<td><input id="spatkIv" size="5" value="31"></td>
<td><input id="spatkTotal" size="5" disabled></td>
</tr>
<tr>
<td>Sp. Defense</td>
<td><input id="spdef" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="spdefEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange"></td> -->
<td><input id="spdefIv" size="5" value="31"></td>
<td><input id="spdefTotal" size="5" disabled></td>
</tr>
<tr>
<td>Speed</td>
<td><input id="spd" size="5" disabled></td>
<td><input type="number" min="0" max="252" id="spdEv" size="5" value="0" onchange="totalEV()"></td>
<!-- <td><input type ="range" id="hpEvRange"></td> -->
<td><input id="spdIv" size="5" value="31"></td>
<td><input id="spdTotal" size="5" disabled></td>
</tr>
<tr>
<td></td>
<td>Remain</td>
<td><input id="totalEV" size="5" value="508" disabled></td>
<td></td>
<td></td>
</tr>
<tr>
<td>
<button type="button" onclick="javascript:totalStats();">Calculate</button>
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-8 instructions">
<h2>Catch Rate Instructions</h2>
<p>
<ul>
<li>Select the pokemon you want to catch.</li><hr>
<li>Set a level for the wild pokemon, automatucally the total Hp value will be displayed in the Max Hp box.</li><hr>
<li>You need to stimate the los Hp of the wild pokemon because the game doesn't show you the exact value.
<br>
For exmple, Bulbasaur level 50 has a max Hp of 105 and in battle it lost quarter of its life, so the current Hp will be 78.</li><hr>
<li>Each poke ball has a different catch rate, so select the ball of your preference. Some poke balls are missing, they will be added soon.</li><hr>
<li>The status condition of the wild pokemon afeects the capture, try to apply one of them (poison, sleep, paralysis, freeze, burn);otherwise, the catch will not be affeced.</li><hr>
<li>Calculate!</li>
</ul>
</p>
</div>
<div class="col-sm-12 col-md-4">
<img src="img/pikachu.jpg" alt="Pikachu Saying Hi!">
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-5">
<img src="img/eevee.jpg" alt="Attacking eevee">
</div>
<div class="col-sm-12 col-md-7 instructions">
<h2>Statistic Calculator Instructions</h2>
<p>
<ul>
<li>You know what are Evs and IVs? If you don’t please look <a target="_blank" href="https://www.youtube.com/watch?v=1u_37RK-mFA">this video.</a></li><hr>
<li>Select your favorite pokemon or the one you want to know their stats.</li><hr>
<li>Choose its level. For tournaments the pokemon level is 50.</li><hr>
<li>The nature can improve one stat and decrease other at the same time, select the nature of your choice.</li><hr>
<li>Distribute the Evs and Ivs of your pokemon. <strong>Remember you can only have 508 Ivs!!</strong> Make sure you make a wise choice.</li><hr>
<li>Calculate!</li>
</ul>
</p>
</div>
</div>
</div>
<footer>
<div>Santiago Robayo</div>
</footer>
</body>
</html>