-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
225 lines (212 loc) · 7.4 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
<!DOCTYPE html>
<meta charset="utf-8" />
<html>
<head>
<meta charset="UTF-8" />
<title>Pokemon Type Coverage Calculator</title>
<!-- Bootstrap External CSS File -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
</head>
<body
id="body"
class="bg-secondary"
style="
background-image: url(img/header.png);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: cover;
width: 100vw;
height: 100vh;
overflow: hidden;
"
>
<div
style="
background-color: rgba(24, 24, 24, 0.8);
width: 100vw;
height: 100vh;
background-size: cover;
overflow: hidden;
"
>
<div id="header" class="navbar navbar-expand-lg navbar-dark bg-dark">
<!-- Navigation Bar -->
<div class="d-flex justify-content-center">
<nav class="navbar navbar-expand-lg navbar-dark">
<a
class="navbar-brand text-secondary"
href="https://www.dragapult.xyz"
>
<img
src="img/favicon.ico"
width="30"
height="30"
class="d-inline-block align-top"
alt="icon"
/>
Dragapult.xyz
</a>
<div id="navbar" class="d-flex justify-content-center">
<a
class="text-secondary"
href="https://www.dragapult.xyz/index.html?vgc"
>
Other VGC Resources
</a>
</div>
</nav>
</div>
</div>
<div id="body" class="container-fluid">
<div class="row">
<div
id="table-pkmn-container"
class="col overflow-auto container bg-dark rounded ml-2 my-2"
style="
min-width: 420px;
max-width: 22vw;
opacity: 0.8;
max-height: 90vh;
"
>
<table
id="table-pkmn"
class="table table-dark"
style="overflow: hidden"
>
<thead id="pkmn-control">
<tr>
<th class="text-center" scope="col" colspan="2">
<a class="text-secondary" href="#" onClick="addPokemon()">
Add Pokemon
</a>
<a class="text-secondary" id="paste-import" href="#">
Import Sets
</a>
<a class="text-secondary" id="paste-export" href="#">
Export Sets
</a>
<!--
To be implemented :)
<a class="text-secondary" id="copy-linl" href="#">
Copy Link
</a>
-->
</th>
</tr>
</thead>
<thead id="pkmn-header" class="thead-dark">
<tr>
<th scope="col">Pokemon</th>
<th scope="col"></th>
</tr>
</thead>
<table
id="table-pkmn-import"
class="table"
style="overflow-y: scroll"
></table>
<table
id="table-pkmn-contents"
class="table"
style="overflow-y: scroll"
></table>
</table>
</div>
<div
id="table-coverage-container"
class="col m-2 overflow-auto text-center container bg-dark rounded mr-2 my-2"
style="max-width: 78vw; opacity: 0.8; max-height: 90vh"
>
<div id="title" class="text-center">
<h2 class="text-light">Pokémon Type Coverage Calculator</h2>
<div class="container-fluid">
<p class="text-muted lead">
Developed by
<a class="text-secondary" href="https://twitter.com/SirScrubbington"
>Damon Murdoch</a
>
</p>
<p class="text-muted lead">
Based on the JTK coverage calculator by
<a class="text-secondary" href="https://twitter.com/GabbySnyder">Gabby Snyder</a>
</p>
<p class="text-muted lead">
Prefer the old version? Click
<a class="text-secondary" href="https://www.dragapult.xyz/coverage-calculator-legacy"
>here</a
>
</p>
</div>
</div>
<table id="table-coverage" class="table table-dark">
<!-- Sets if offensive or defensive calcs should be shown -->
<thead id="table-selector">
<tr>
<th id="option-defensive" class="" scope="col">
<a
class="text-light"
href="#"
onClick="setTableDefensive()"
>
Defensive
</a>
</th>
<th id="option-offensive" class="" scope="col">
<a
class="text-light"
href="#"
onClick="setTableOffensive()"
>
Offensive
</a>
</th>
<!-- Filler Space -->
<th scope="col" colspan="6"></th>
</tr>
</thead>
<!-- Holds the table row titles -->
<thead id="table-header" class="thead-dark">
<tr>
<th scope="col">Type</th>
<th scope="col">Immune</th>
<th scope="col">4x Resist</th>
<th scope="col">2x Resist</th>
<th scope="col">Neutral</th>
<th scope="col">2x Weak</th>
<th scope="col">4x Weak</th>
<th scope="col">Rating</th>
</tr>
</thead>
<!--
Rest are filled using JavaScript on load
Function: loadTable(void): void
-->
</table>
</div>
</div>
</div>
<div id="foot"></div>
</div>
</body>
<div id="javascript">
<!-- Pokemon Showdown! Parser Source Code -->
<script type="text/javascript" src="js/parser.js"></script>
<!-- Pokedex JavaScript Data Source File -->
<script type="text/javascript" src="data/pokemon.js"></script>
<!-- Display Colours (Per Type) Data Source File -->
<script type="text/javascript" src="data/colors.js"></script>
<!-- Pokemon Types JavaScript Data Source File -->
<script type="text/javascript" src="data/types.js"></script>
<!-- Pokemon Abilities JavaScript Data Source File -->
<script type="text/javascript" src="data/abilities.js"></script>
<!-- Pokemon Moves JavaScript Data source File -->
<script type="text/javascript" src="data/moves.js"></script>
<!-- Search / Dropdown Source File -->
<script type="text/javascript" src="js/search.js"></script>
<!-- Map 2D Array Math Library Source File -->
<script type="text/javascript" src="js/map.js"></script>
<!-- Page JavaScript Source File -->
<script type="text/javascript" src="index.js"></script>
</div>
</html>