-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
270 lines (244 loc) · 10.3 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
<!DOCTYPE html>
<!--Written by Justin Keena-->
<html>
<head>
<meta charset="utf-8" />
<meta
name="description"
content="Pokémon TCG pack opening simulator. Open packs, booster boxes, and collect all the cards online in this free web app."
/>
<meta
name="keywords"
content="Pokémon,Pokemon,pokemon,booster,pack,box,simulator,sim,open,opener,opening,tcg,set,card,cards,free,online,pulls,pack,packs,breaks,app,games,game,"
/>
<meta name="twitter:card" content="summary" />
<meta
name="twitter:title"
content="Pokémon Booster Pack Simulator"
/>
<meta name="twitter:description" content="Pokémon TCG pack opening simulator. Open packs, booster boxes, and collect all the cards online in this free web app."/>
<meta
name="twitter:image"
content="https://pokemonboosterpack.com/images/site/twitter-card-screenshot.png"
/>
<!-- Enables media queries on mobile -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- CSS-->
<link type="text/css" rel="stylesheet" href="css/main.css" />
<link
rel="stylesheet"
type="text/css"
href="fireworks/style/fireworks.css"
media="screen"
/>
<!-- Favicon -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="images/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="images/favicon//favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="images/favicon//favicon-16x16.png"
/>
<link rel="manifest" href="images/favicon//site.webmanifest" />
<link
rel="mask-icon"
href="images/favicon//safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-2Q99X8QYJP"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-2Q99X8QYJP");
</script>
<title>Pokemon Booster Pack Simulator</title>
</head>
<body style="background: lightblue;">
<section>
<div class="section-wrapper">
<header>
<!-- Custom font from https://textcraft.net/style/Textcraft/pokemon -->
<a href="pages/about.html"><img id="logo" src="images/site/logo-shortened.png" title="Click to learn more about the site: submit suggestions, learn about the rarity rules, browse updates and the original version of the site."/></a>
</header>
<main class="front-page">
<nav style="background: lightblue;">
<button class="button open-pack-button desktop-only">OPEN</button>
<select class="button select-set desktop-only" onchange="chooseSet()">
<option value="baseSet">BASE SET</option>
<option value="jungle">JUNGLE</option>
<option value="fossil">FOSSIL</option>
<option value="base2">BASE 2</option>
<option value="teamRocket">TEAM ROCKET</option>
<option value="gymHeroes">GYM HEROES</option>
<option value="gymChallenge">GYM CHALLENGE</option>
<option value="neoGenesis">NEO GENESIS</option>
<option value="neoDiscovery">NEO DISCOVERY</option>
<option value="neoRevelation">NEO REVELATION</option>
<option value="neoDestiny">NEO DESTINY</option>
<option value="legendaryCollection">LEGENDARY COLLECTION</option>
<option value="expeditionBaseSet">EXPEDITION BASE</option>
<option value="aquapolis">AQUAPOLIS</option>
<option value="skyridge">SKYRIDGE</option>
<option value="random">RANDOM</option>
</select>
<select class="button select-display" onchange="setDisplay()">
<option value="singlePackFlip">DISPLAY: SINGLE</option>
<option value="rowView">DISPLAY: ROWS</option>
<option value="gridView">DISPLAY: GRID</option>
</select>
<select
class="button select-row-view-sorting desktop-only"
onchange="resortCardsOnDisplay()"
>
<option class="row-view-only" value="packOrder">
SORT: PACK ORDER
</option>
<option class="grid-view-only" value="newestPack">
SORT: NEWEST PACK
</option>
<option value="cardNameDescending">SORT: CARD NAME (A-Z)</option>
<option value="cardNameAscending">SORT: CARD NAME (Z-A)</option>
<option value="rarityDescending">SORT: RARITY (DESC)</option>
<option value="rarityAscending">SORT: RARITY (ASC)</option>
<option class="grid-view-only" value="raresOnly">
SORT: RARES ONLY
</option>
<option value="setNumberAscending">SORT: SET NUMBER (ASC)</option>
<option value="setNumberDescending">
SORT: SET NUMBER (DESC)
</option>
<!-- <option value="type">
SORT BY: TYPE
</option> -->
</select>
<button class="button grid-view-only no-duplicates">
<img
class="duplicate-icon"
title="Hide duplicate cards"
src="images/site/duplicate-icon-alt.png"
/>
</button>
<button class="button clear-cards grid-view-only">
<img class="trash-icon" title="Delete all cards" src="images/site/trash.png" />
</button>
</nav>
<div class="all-views">
<div id="single-pack-flip-area" class="cards">
<div id="emitter"></div>
</div>
<div id="row-view"></div>
<div id="grid-view"></div>
<button class="button open-pack-button mobile-only">
OPEN
</button>
<select
class="button select-set mobile-only"
onchange="chooseSet()"
>
<option value="baseSet">BASE SET</option>
<option value="jungle">JUNGLE</option>
<option value="fossil">FOSSIL</option>
<option value="base2">BASE 2</option>
<option value="teamRocket">TEAM ROCKET</option>
<option value="gymHeroes">GYM HEROES</option>
<option value="gymChallenge">GYM CHALLENGE</option>
<option value="neoGenesis">NEO GENESIS</option>
<option value="neoDiscovery">NEO DISCOVERY</option>
<option value="neoRevelation">NEO REVELATION</option>
<option value="neoDestiny">NEO DESTINY</option>
<option value="legendaryCollection">LEGENDARY COLLECTION</option>
<option value="expeditionBaseSet">EXPEDITION BASE</option>
<option value="aquapolis">AQUAPOLIS</option>
<option value="skyridge">SKYRIDGE</option>
<option value="random">RANDOM</option>
</select>
<select
class="button select-row-view-sorting mobile-only"
onchange="resortCardsOnDisplay()"
>
<option class="row-view-only" value="packOrder">
SORT: PACK ORDER
</option>
<option class="grid-view-only" value="newestPack">
SORT: NEWEST PACK
</option>
<option value="cardNameDescending">SORT: CARD NAME (A-Z)</option>
<option value="cardNameAscending">SORT: CARD NAME (Z-A)</option>
<option value="rarityDescending">SORT: RARITY (DESC)</option>
<option value="rarityAscending">SORT: RARITY (ASC)</option>
<option class="grid-view-only" value="raresOnly">
SORT: RARES ONLY
</option>
</select>
<img
src="images/site/magnifying-glass.png"
class="mobile-only magnifying-glass"
/>
</div>
<div id="card-zoom" class="modal">
<div class="modal-content">
<span class="close">×</span>
<br />
<div id="hi-res-card"></div>
</div>
</div>
</main>
<div id="fireworks-template">
<div id="fw" class="firework"></div>
<div id="fp" class="fireworkParticle">
<img src="fireworks/image/particles.gif" alt="" />
</div>
</div>
<div id="fireContainer"></div>
<footer style="background: transparent;">
<!-- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> -->
<!-- horizontal-display-bottom -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2488924801450429"
data-ad-slot="3363094891"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<!-- <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script> -->
</footer>
</div>
</section>
<!-- Javascript must be at end so it can access the loaded DOM -->
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<!-- Huge props to https://www.npmjs.com/package/canvas-confetti for such a delightful project -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<!-- Likewise to http://www.schillmania.com/projects/fireworks/ -->
<script type="text/javascript" src="fireworks/script/fireworks.js"></script>
<!-- And thanks to https://github.com/alexgibson/shake.js/ -->
<script type="text/javascript" src="js/shake.js"></script>
<script type="text/javascript" src="js/cards.js"></script>
<script type="text/javascript" src="js/sets.js"></script>
<script type="text/javascript" src="js/card-logic.js"></script>
<script type="text/javascript" src="js/ui-logic.js"></script>
</body>
</html>