-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
293 lines (292 loc) · 17.5 KB
/
Copy pathindex.html
File metadata and controls
293 lines (292 loc) · 17.5 KB
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!DOCTYPE html>
<html lang="en">
<head>
<title>Elementle</title>
<meta name="viewport" content="height=device-height, initial-scale=1.0"/>
<link rel="icon" type="image/png" href="img/Elementle Favicon.png">
<link rel="stylesheet" href="css/index.css"></link>
</head>
<body>
<div class="helpBackground" id="beginGround">
<span class="helper"></span>
<div>
<div class="popupCloseButton">×</div>
<h1 style="font-size:70px">Elementle</h1>
<hr>
<p>How to play:</p>
<br>
<p>Click an arrow to view different periods.</p><br>
<p>Click an element to use it as a guess.</p>
<p>If it is correct, it will be marked with a green checkmark.</p>
<p>If it is close in range, it will be marked with a yellow triangle.</p>
<p>If it is not correct, it will be marked with a red x.</p>
</div>
</div>
<div class="helpBackground" id="winpopup">
<span class="helper"></span>
<div>
<div class="popupCloseButton">×</div>
<h1 style="font-size:70px">You Got It Right!</h1>
<hr>
<p>You won!</p>
<p>You got it correct in:</p>
<h2 id="guessesUsed"></h2>
<p>and earned:</p>
<h2 id="pointsEarned"></h2>
<p>Click to play again!</p>
</div>
</div>
<div class="helpBackground" id="losepopup">
<span class="helper"></span>
<div>
<div class="popupCloseButton">×</div>
<h1 style="font-size:70px">Oh no...</h1>
<hr>
<p>You lost...</p>
<p>The correct answer is:</p>
<h2 id="correctAnswerText"></h2>
<p>and lost:</p>
<h2 id="pointsLost"></h2>
<p>Click to try again!</p>
</div>
</div>
<div class="helpBackground" id="stats">
<span class="helper"></span>
<div>
<div class="popupCloseButton">×</div>
<h1 style="font-size:70px">Stats</h1>
<hr>
<h2>You have:</h2>
<h2 id="totalPointsEarned"></h2>
<hr>
<h2>Guess Distrobution:</h2>
<p id="firstGuess"></p>
<p id="secondGuess"></p>
<p id="thirdGuess"></p>
<p id="forthGuess"></p>
<p id="fifthGuess"></p>
<p id="sixthGuess"></p>
</div>
</div>
<div class="helpBackground" id="cosmeticsMenu">
<span class="helper"></span>
<div>
<div class="popupCloseButton">×</div>
<h1 style="font-size:70px">Elementle Cosmetics</h1>
<hr>
<p>Welcome to the Shop!</p>
<div class="shop">
<div class="shopIcon" id="alkaliMetals">
<h2>Alkali Metals (20 points)</h2>
<img src="img/alkaliPrev.png" alt="preview for alkali metal cosmetic"></img>
</div>
<div class="shopIcon" id="alkaliEarthMetals">
<h2>Alkali Earth Metals (40 points)</h2>
<img src="img/alkaliEPrev.png" alt="preview for alkali earth metal cosmetic"></img>
</div>
<div class="shopIcon" id="transMetals">
<h2>Transition Metals (60 points)</h2>
<img src="img/tMetalsPrev.png" alt="preview for transition metals cosmetic"></img>
</div>
<div class="shopIcon" id="unknown">
<h2>Unknown (80 points)</h2>
<img src="img/unknownPrev.png" alt="preview for unknown cosmetic"></img>
</div>
<div class="shopIcon" id="metals">
<h2>Metals (100 points)</h2>
<img src="img/metalPrev.png" alt="preview for metal cosmetic"></img>
</div>
<div class="shopIcon" id="metalloids">
<h2>Metalloids (150 points)</h2>
<img src="img/metalloidPrev.png" alt="preview for metalloid cosmetic"></img>
</div>
<div class="shopIcon" id="nonMetals">
<h2>Non-Metals (200 points)</h2>
<img src="img/nMetalPrev.png" alt="preview for non-metal cosmetic"></img>
</div>
<div class="shopIcon" id="nobleGases">
<h2>Noble Gases (400 points)</h2>
<img src="img/nGasPrev.png" alt="preview for noble gas cosmetic"></img>
</div>
<div class="shopIcon" id="cardboardRank">
<h2>Cardboard (10 points)</h2>
<p>(Ranked Cosmetic)</p>
</div>
<div class="shopIcon" id="bronzeRank">
<h2>Bronze (100 points)</h2>
<p>(Ranked Cosmetic)</p>
</div>
<div class="shopIcon" id="silverRank">
<h2>Silver (500 points)</h2>
<p>(Ranked Cosmetic)</p>
</div>
<div class="shopIcon" id="goldRank">
<h2>Gold (1000 points)</h2>
<p>(Ranked Cosmetic)</p>
</div>
<div class="shopIcon" id="championRank">
<h2>Champion (5000 points)</h2>
<p>(Ranked Cosmetic)</p>
</div>
</div>
</div>
</div>
<header>
<div id="heading">
<h1 class="center">Elementle</h1>
</div>
</header>
<hr>
<div id="clues">
CLUE HERE
</div>
<div id="guesses" style="text-align:center;">
</div>
<div id="body">
<!--<button width="200px" height="200px" id="lbttn">Go left</button>-->
<img src="img/74837-200.png" width="50px" height="50px" id="lbttn"/>
<div id="periods">
<div id="p1" class="row">
<img src="img/hydrogen.png" width="50px" height="50px" id="h" class="elementButton"/>
<img src="img/helium.png" width="50px" height="50px" id="he" class="elementButton"/>
</div>
<div id="p2" class="row">
<img src="img/lithium.png" width="50px" height="50px" id="li" class="elementButton"/>
<img src="img/beryllium.png" width="50px" height="50px" id="be" class="elementButton"/>
<img src="img/boron.png" width="50px" height="50px" id="b" class="elementButton"/>
<img src="img/carbon.png" width="50px" height="50px" id="c" class="elementButton"/>
<br>
<img src="img/nitrogen.png" width="50px" height="50px" id="n" class="elementButton"/>
<img src="img/oxygen.png" width="50px" height="50px" id="o" class="elementButton"/>
<img src="img/fluorine.png" width="50px" height="50px" id="f" class="elementButton"/>
<img src="img/neon.png" width="50px" height="50px" id="ne" class="elementButton"/>
</div>
<div id="p3" class="row">
<img src="img/sodium.png" width="50px" height="50px" id="na" class="elementButton"/>
<img src="img/magnesium.png" width="50px" height="50px" id="mg" class="elementButton"/>
<img src="img/aluminium.png" width="50px" height="50px" id="al" class="elementButton"/>
<img src="img/silicon.png" width="50px" height="50px" id="si" class="elementButton"/>
<br>
<img src="img/phosphorus.png" width="50px" height="50px" id="p" class="elementButton"/>
<img src="img/sulfur.png" width="50px" height="50px" id="s" class="elementButton"/>
<img src="img/chlorine.png" width="50px" height="50px" id="cl" class="elementButton"/>
<img src="img/argon.png" width="50px" height="50px" id="ar" class="elementButton"/>
</div>
<div id="p4" class="row">
<img src="img/potassium.png" width="50px" height="50px" id="k" class="elementButton"/>
<img src="img/calcium.png" width="50px" height="50px" id="ca" class="elementButton"/>
<img src="img/scandium.png" width="50px" height="50px" id="sc" class="elementButton"/>
<img src="img/titanium.png" width="50px" height="50px" id="ti" class="elementButton"/>
<br>
<img src="img/vanadium.png" width="50px" height="50px" id="v" class="elementButton"/>
<img src="img/chromium.png" width="50px" height="50px" id="cr" class="elementButton"/>
<img src="img/manganese.png" width="50px" height="50px" id="mn" class="elementButton"/>
<img src="img/iron.png" width="50px" height="50px" id="fe" class="elementButton"/>
<br>
<img src="img/cobalt.png" width="50px" height="50px" id="co" class="elementButton"/>
<img src="img/nickel.png" width="50px" height="50px" id="ni" class="elementButton"/>
<img src="img/zinc.png" width="50px" height="50px" id="zn" class="elementButton"/>
<img src="img/gallium.png" width="50px" height="50px" id="ga" class="elementButton"/>
<br>
<img src="img/germanium.png" width="50px" height="50px" id="ge" class="elementButton"/>
<img src="img/arsenic.png" width="50px" height="50px" id="as" class="elementButton"/>
<img src="img/selenium.png" width="50px" height="50px" id="se" class="elementButton"/>
<img src="img/bromine.png" width="50px" height="50px" id="br" class="elementButton"/>
<br>
<img src="img/krypton.png" width="50px" height="50px" id="kr" class="elementButton"/>
</div>
<div id="p5" class="row">
<img src="img/rubidium.png" width="50px" height="50px" id="rb" class="elementButton"/>
<img src="img/strontium.png" width="50px" height="50px" id="sr" class="elementButton"/>
<img src="img/yttrium.png" width="50px" height="50px" id="y" class="elementButton"/>
<img src="img/zirconium.png" width="50px" height="50px" id="zr" class="elementButton"/>
<br>
<img src="img/niobium.png" width="50px" height="50px" id="nb" class="elementButton"/>
<img src="img/molybdenum.png" width="50px" height="50px" id="mo" class="elementButton"/>
<img src="img/technetium.png" width="50px" height="50px" id="tc" class="elementButton"/>
<img src="img/ruthenium.png" width="50px" height="50px" id="ru" class="elementButton"/>
<br>
<img src="img/rhodium.png" width="50px" height="50px" id="rh" class="elementButton"/>
<img src="img/palladium.png" width="50px" height="50px" id="pd" class="elementButton"/>
<img src="img/silver.png" width="50px" height="50px" id="ag" class="elementButton"/>
<img src="img/cadmium.png" width="50px" height="50px" id="cd" class="elementButton"/>
<br>
<img src="img/indium.png" width="50px" height="50px" id="in" class="elementButton"/>
<img src="img/tin.png" width="50px" height="50px" id="sn" class="elementButton"/>
<img src="img/antimony.png" width="50px" height="50px" id="sb" class="elementButton"/>
<img src="img/tellurium.png" width="50px" height="50px" id="te" class="elementButton"/>
<br>
<img src="img/iodine.png" width="50px" height="50px" id="i" class="elementButton"/>
<img src="img/xenon.png" width="50px" height="50px" id="xe" class="elementButton"/>
</div>
<div id="p6" class="row">
<img src="img/caesium.png" width="50px" height="50px" id="cs" class="elementButton"/>
<img src="img/barium.png" width="50px" height="50px" id="ba" class="elementButton"/>
<img src="img/hafnium.png" width="50px" height="50px" id="hf" class="elementButton"/>
<img src="img/tantalum.png" width="50px" height="50px" id="ta" class="elementButton"/>
<br>
<img src="img/tungsten.png" width="50px" height="50px" id="w" class="elementButton"/>
<img src="img/rhenium.png" width="50px" height="50px" id="re" class="elementButton"/>
<img src="img/osmium.png" width="50px" height="50px" id="os" class="elementButton"/>
<img src="img/iridium.png" width="50px" height="50px" id="ir" class="elementButton"/>
<br>
<img src="img/platinum.png" width="50px" height="50px" id="pt" class="elementButton"/>
<img src="img/gold.png" width="50px" height="50px" id="au" class="elementButton"/>
<img src="img/mercury.png" width="50px" height="50px" id="hg" class="elementButton"/>
<img src="img/thallium.png" width="50px" height="50px" id="tl" class="elementButton"/>
<img src="img/lead.png" width="50px" height="50px" id="pb" class="elementButton"/>
<img src="img/bismuth.png" width="50px" height="50px" id="bi" class="elementButton"/>
<img src="img/polonium.png" width="50px" height="50px" id="po" class="elementButton"/>
<br>
<img src="img/astatine.png" width="50px" height="50px" id="at" class="elementButton"/>
<img src="img/radon.png" width="50px" height="50px" id="rn" class="elementButton"/>
</div>
<div id="p7" class="row">
<img src="img/francium.png" width="50px" height="50px" id="fr" class="elementButton"/>
<img src="img/radium.png" width="50px" height="50px" id="ra" class="elementButton"/>
<img src="img/rutherfordium.png" width="50px" height="50px" id="rf" class="elementButton"/>
<img src="img/dubnium.png" width="50px" height="50px" id="db" class="elementButton"/>
<br>
<img src="img/seaborgium.png" width="50px" height="50px" id="sg" class="elementButton"/>
<img src="img/bohrium.png" width="50px" height="50px" id="bh" class="elementButton"/>
<img src="img/hassium.png" width="50px" height="50px" id="hs" class="elementButton"/>
<img src="img/meitnerium.png" width="50px" height="50px" id="mt" class="elementButton"/>
<br>
<img src="img/darmstadtium.png" width="50px" height="50px" id="ds" class="elementButton"/>
<img src="img/roentgenium.png" width="50px" height="50px" id="rg" class="elementButton"/>
<img src="img/copernicium.png" width="50px" height="50px" id="cn" class="elementButton"/>
<img src="img/nihonium.png" width="50px" height="50px" id="nh" class="elementButton"/>
<br>
<img src="img/flerovium.png" width="50px" height="50px" id="fl" class="elementButton"/>
<img src="img/moscovium.png" width="50px" height="50px" id="mc" class="elementButton"/>
<img src="img/livermorium.png" width="50px" height="50px" id="lv" class="elementButton"/>
<img src="img/tennessine.png" width="50px" height="50px" id="ts" class="elementButton"/>
<img src="img/oganesson.png" width="50px" height="50px" id="og" class="elementButton"/>
</div>
<div id="p8" class="row">
<p>Placeholder6</p>
</div>
<div id="p9" class="row">
<p>Placeholder7</p>
</div>
</div>
<img src="img/74837-200 (1).png" width="50px" height="50px" id="rbttn"/>
<!--<button width="200px" height="200px" id="rbttn">Go Right</button>-->
</div>
<div id="stupid-center-align-div-because-html-is-so-fucking-dumb" style="text-align:center; padding: 7px;">
<button id="enter">Submit Answer</button>
<br>
<button class="left" id="statsBttn">Stats</button>
<button class="right" id="helpBttn">Help</button>
<button id="cosmeticsBttn">Cosmetics</button>
</div>
<footer>
<p style="text-align:center;">©Braidon Singh and FireTree Games 2022</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="js/clues.js"></script>
<script src="js/getElementFromSymbol.js"></script>
<script src="js/statsStorage.js"></script>
<script src="js/main.js"></script>
</body>
</html>