-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
580 lines (534 loc) · 22.9 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
<html>
<title>Yellowstone Codera</title>
<style>
:root {
--ybrown: rgb(84,87,68);
--yyellow: rgb(245,220,52);
--yblue: rgb(73,129,177);
--yaqua: rgb(108,191,220);
--ygreen: rgb(113, 133, 73);
--ywhite: rgb(248,249,252);
}
body {
background-color:var(--ywhite);
}
text.location {
font-size: x-large;
fill: black;
}
g.location {
font-family: Arial, Helvetica, sans-serif;
font-size: x-large;
fill: black;
}
text.menutext, span.inputtext, span.menutext, table.menutext, input.menutext {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-large;
fill: black;
}
g.intersection {
fill: black;
}
path.mapinterior {
stroke : black;
stroke-width : 2;
fill : var(--ygreen)
}
rect.mapexterior {
stroke : var(--ybrown);
stroke-width : 5;
fill : var(--yblue);
}
path.roads {
stroke : black;
stroke-width : 2;
fill : transparent
}
</style>
<body>
<svg width=0 height=0>
<g id="symbols">
<symbol id=instSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=instBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=8 y=6 width = 90 height = 90 href="images/inst.png"></image>
</g>
</symbol>
<symbol id=westSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=westBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=8 y=6 width = 90 height = 90 href="images/west.png"></image>
</g>
</symbol>
<symbol id=madiSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=madiBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 100 height = 100 href="images/madi.png"></image>
</g>
</symbol>
<symbol id=norrSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=norrBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 100 height = 100 href="images/norr.png"></image>
</g>
</symbol>
<symbol id=rangSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=rangBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=15 y=15 width = 75 height = 75 href="images/rang.png"></image>
</g>
</symbol>
<symbol id=mammSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=mammBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 100 height = 100 href="images/mamm.png"></image>
</g>
</symbol>
<symbol id=roosSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=roosBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=10 y=10 width = 80 height = 80 href="images/roos.png"></image>
</g>
</symbol>
<symbol id=lamaSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=lamaBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=6 y=6 width = 90 height = 90 href="images/lama.png"></image>
</g>
</symbol>
<symbol id=toweSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=toweBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=15 y=10 width = 85 height = 85 href="images/towe.png"></image>
</g>
</symbol>
<symbol id=canySymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=canyBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=10 y=10 width = 85 height = 85 href="images/cany.png"></image>
</g>
</symbol>
<symbol id=fishSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=fishBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=12 y=12 width = 80 height = 80 href="images/fish.png"></image>
</g>
</symbol>
<symbol id=thumSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=thumBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 95 height = 95 href="images/thum.png"></image>
</g>
</symbol>
<symbol id=tetoSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=tetoBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=10 y=5 width = 85 height = 85 href="images/teto.png"></image>
</g>
</symbol>
<symbol id=granSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=granBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 85 height = 85 href="images/gran.png"></image>
</g>
</symbol>
<symbol id=oldfSymbol width=108 height=108 viewBox = "0 0 108 108">
<g id=oldfBadge>
<circle cx = 54 cy = 54 r = 54 style="fill : var(--yyellow)"></circle>
<circle cx = 54 cy = 54 r = 50 style="fill : var(--yaqua);"></circle>
<image x=4 y=4 width = 100 height = 100 href="images/oldf.png"></image>
</g>
</symbol>
</g>
</svg>
<table>
<tr>
<td id="map">
<svg width="1400" height="1400">
<g id="basemap">
<rect x=0 y=0 width=1400 height=1400 class="mapexterior"></rect>
<path class="mapinterior" d="
M 75,110
L 75,1325
L 1150,1325
L 1150,110
L 75,110
">
</path>
<path class="roads" d="
M 460,110
L 470,200
L 475,520
L 315,635
L 335,890
L 590,945
L 500,1325
M 475,520
L 665,515
L 740,265
M 470,200
L 740,265
L 1150,140
M 665,515
L 780,740
L 590,945
M 780,740
L 1150,840
M 315,635
L 75,615
" >
</path>
<g class="location">
<text x= 80 y= 610>West Entrance</text>
<text x= 335 y= 640>Madison</text>
<text x= 485 y= 510>Norris</text>
<text x= 480 y= 200>Mammoth</text>
<text x= 460 y= 100>North Entrance</text>
<text x=1160 y= 140>Northeast Entrance</text>
<text x= 745 y= 290>Tower</text>
<text x= 675 y= 515>Canyon</text>
<text x= 790 y= 730>Fishing Bridge</text>
<text x= 605 y= 950>West Thumb</text>
<text x= 505 y=1350>South Entrance</text>
<text x= 345 y= 885>Old Faithful</text>
<text x=1160 y= 840>East Entrance</text>
</g>
<g class="intersection">
<circle cx= 75 cy= 615 r=10>West Entrance</circle>
<circle cx= 315 cy= 635 r=10>Madison</circle>
<circle cx= 475 cy= 520 r=10>Norris</circle>
<circle cx= 470 cy= 200 r=10>Mammoth</circle>
<circle cx= 460 cy= 110 r=10>North Entrance</circle>
<circle cx=1150 cy= 140 r=10>Northeast Entrance</circle>
<circle cx= 740 cy= 265 r=10>Tower</circle>
<circle cx= 665 cy= 515 r=10>Canyon</circle>
<circle cx= 780 cy= 740 r=10>Fishing Bridge</circle>
<circle cx= 590 cy= 945 r=10>West Thumb</circle>
<circle cx= 500 cy=1325 r=10>South Entrance</circle>
<circle cx= 335 cy= 890 r=10>Old Faithful</circle>
<circle cx=1150 cy= 840 r=10>East Entrance</circle>
</g>
</g>
<g id = "use-map-symbols">
<use href="#instSymbol" x=1000 y=1200 width=100 height=100 id="instMapSymbol" opacity=0></use>
<use href="#westSymbol" x=70 y=625 width=100 height=100 id="westMapSymbol" opacity=0></use>
<use href="#madiSymbol" x=330 y=650 width=100 height=100 id="madiMapSymbol" opacity=0></use>
<use href="#norrSymbol" x=450 y=530 width=100 height=100 id="norrMapSymbol" opacity=0></use>
<use href="#rangSymbol" x=350 y=400 width=100 height=100 id="rangMapSymbol" opacity=0></use>
<use href="#mammSymbol" x=350 y=200 width=100 height=100 id="mammMapSymbol" opacity=0></use>
<use href="#roosSymbol" x=340 y=60 width=100 height=100 id="roosMapSymbol" opacity=0></use>
<use href="#lamaSymbol" x=1000 y=120 width=100 height=100 id="lamaMapSymbol" opacity=0></use>
<use href="#toweSymbol" x=665 y=130 width=100 height=100 id="toweMapSymbol" opacity=0></use>
<use href="#canySymbol" x=760 y=465 width=100 height=100 id="canyMapSymbol" opacity=0></use>
<use href="#fishSymbol" x=950 y=825 width=100 height=100 id="fishMapSymbol" opacity=0></use>
<use href="#thumSymbol" x=550 y=775 width=100 height=100 id="thumMapSymbol" opacity=0></use>
<use href="#tetoSymbol" x=390 y=1225 width=100 height=100 id="tetoMapSymbol" opacity=0></use>
<use href="#granSymbol" x=600 y=980 width=100 height=100 id="granMapSymbol" opacity=0></use>
<use href="#oldfSymbol" x=235 y=885 width=100 height=100 id="oldfMapSymbol" opacity=0></use>
</g>
</svg>
</td>
<td id="answers">
<table class="menutext">
<colgroup>
<col style="width : 100px">
<col style="width : 400px">
<col style="width : 200px">
<col style="width : 100px">
</colgroup>
<tr>
<td colspan="2"><p style="font-size:140%; font-weight:bold">Yellowstone Codera</p></b></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day00-inst/story-00.html"><use href="#instSymbol" x = 0 y = 0 width=80 height=80 id="instTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day00-inst/story-00.html">Day 00 - Instructions</a></td>
<td><input type="text" id="instAnswer" class="menutext"></td>
<td><span id="instResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day01-west/story-01.html"><use href="#westSymbol" x = 0 y = 0 width=80 height=80 id="westTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day01-west/story-01.html">Day 01 - West Entrance</a></td>
<td><input type="text" id="westAnswer" class="menutext"></td>
<td><span id="westResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day02-madi/story-02.html"><use href="#madiSymbol" x = 0 y = 0 width=80 height=80 id="madiTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day02-madi/story-02.html">Day 02 - Madison</a></td>
<td><input type="text" id="madiAnswer" class="menutext"></td>
<td><span id="madiResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day03-norr/story-03.html"><use href="#norrSymbol" x = 0 y = 0 width=80 height=80 id="norrTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day03-norr/story-03.html">Day 03 - Norris</a></td>
<td><input type="text" id="norrAnswer" class="menutext"></td>
<td><span id="norrResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day04-rang/story-04.html"><use href="#rangSymbol" x = 0 y = 0 width=80 height=80 id="rangTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day04-rang/story-04.html">Day 04 - Ranger Museum</a></td>
<td><input type="text" id="rangAnswer" class="menutext"></td>
<td><span id="rangResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day05-mamm/story-05.html"><use href="#mammSymbol" x = 0 y = 0 width=80 height=80 id="mammTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day05-mamm/story-05.html">Day 05 - Mammoth</a></td>
<td><input type="text" id="mammAnswer" class="menutext"></td>
<td><span id="mammResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day06-roos/story-06.html"><use href="#roosSymbol" x = 0 y = 0 width=80 height=80 id="roosTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day06-roos/story-06.html">Day 06 - Roosevelt Arch</a></td>
<td><input type="text" id="roosAnswer" class="menutext"></td>
<td><span id="roosResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day07-lama/story-07.html"><use href="#lamaSymbol" x = 0 y = 0 width=80 height=80 id="lamaTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day07-lama/story-07.html">Day 07 - Lamar Valley</a></td>
<td><input type="text" id="lamaAnswer" class="menutext"></td>
<td><span id="lamaResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day08-towe/story-08.html"><use href="#toweSymbol" x = 0 y = 0 width=80 height=80 id="toweTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day08-towe/story-08.html">Day 08 - Tower Falls</a></td>
<td><input type="text" id="toweAnswer" class="menutext"></td>
<td><span id="toweResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day09-cany/story-09.html"><use href="#canySymbol" x = 0 y = 0 width=80 height=80 id="canyTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day09-cany/story-09.html">Day 09 - Canyon</a></td>
<td><input type="text" id="canyAnswer" class="menutext"></td>
<td><span id="canyResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day10-fish/story-10.html"><use href="#fishSymbol" x = 0 y = 0 width=80 height=80 id="fishTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day10-fish/story-10.html">Day 10 - Fishing Bridge</a></td>
<td><input type="text" id="fishAnswer" class="menutext"></td>
<td><span id="fishResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day11-thum/story-11.html"><use href="#thumSymbol" x = 0 y = 0 width=80 height=80 id="thumTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day11-thum/story-11.html">Day 11 - West Thumb</a></td>
<td><input type="text" id="thumAnswer" class="menutext"></td>
<td><span id="thumResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day12-teto/story-12.html"><use href="#tetoSymbol" x = 0 y = 0 width=80 height=80 id="tetoTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day12-teto/story-12.html">Day 12 - Grand Tetons</a></td>
<td><input type="text" id="tetoAnswer" class="menutext"></td>
<td><span id="tetoResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day13-gran/story-13.html"><use href="#granSymbol" x = 0 y = 0 width=80 height=80 id="granTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day13-gran/story-13.html">Day 13 - Grant</a></td>
<td><input type="text" id="granAnswer" class="menutext"></td>
<td><span id="granResult" class="menutext"> </span></td>
</tr>
<tr>
<td><svg height=80 width=80><a href="day14-oldf/story-14.html"><use href="#oldfSymbol" x = 0 y = 0 width=80 height=80 id="oldfTableSymbol" opacity="0"></use></a></svg></td>
<td><span class="menutext"><a href="day14-oldf/story-14.html">Day 14 - Old Faithful</a></td>
<td><input type="text" id="oldfAnswer" class="menutext"></td>
<td><span id="oldfResult" class="menutext"> </span></td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<button onclick="deleteStoredAnswers()">Delete stored answers</button>
<br/>
<span id="attributions">
<h3>Icon attributions</h3>
<table>
<tr>
<th>Day</th>
<th>Title</th>
<th>Author</th>
<th>Source</th>
<th>License</th>
</tr>
<tr>
<td>0</td>
<td>Instructions</td>
<td>Atif Arshad</td>
<td><a href="thenounproject.com">Noun Project</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>1</td>
<td>Car</td>
<td></td>
<td><a href="thenounproject.com">Noun Project</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>2</td>
<td>Clock</td>
<td>Aranjuez Medina</td>
<td><a href="https://thenounproject.com/search/?q=clock&i=3994501">clock</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>3</td>
<td>Steamboat</td>
<td>Tooora khan, PK </td>
<td><a href="https://thenounproject.com/search/?q=steamboat&i=2854914">Steamboat</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>4</td>
<td>Water</td>
<td>Made x Made</td>
<td><a href="https://thenounproject.com/christian933/collection/patterns/">Patterns Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>5</td>
<td>sundae</td>
<td>Made x Made</td>
<td><a href="https://thenounproject.com/made.somewhere/collection/ice-cream">Ice Cream Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>6</td>
<td>Antelope</td>
<td>Valerie Lamm</td>
<td><a href="https://thenounproject.com/my__valerie/collection/creatures-drawn-thin">Creatures Drawn Thin Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>7</td>
<td>buffalo</td>
<td>Iconic</td>
<td><a href="https://thenounproject.com/iconproducer/collection/buffalo/">Buffalo Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>8</td>
<td>wagon</td>
<td>lastspark</td>
<td><a href="https://thenounproject.com/lastspark/collection/bad-boys-outline/">Bad Boys Outline Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>9</td>
<td>Waterfall</td>
<td>everydayicoons</td>
<td><a href="https://thenounproject.com/everydayicoons/collection/map-interface-pack/">Map Interface pack</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>10</td>
<td>dragon</td>
<td>Eucalyp</td>
<td><a href="https://thenounproject.com/eucalyp/collection/fairy-tale">Fairy Tale Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>11</td>
<td>Fish</td>
<td>Muhammad Auns</td>
<td><a href="https://thenounproject.com/cscience268/collection/cooking">Cooking Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>12</td>
<td>Mountain</td>
<td></td>
<td><a href="thenounproject.com">Noun Project</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>13</td>
<td>Camping</td>
<td>Lagot Design</td>
<td><a href="https://thenounproject.com/lagotdesign/collection/adventure">Adventure Collection</a></td>
<td>Creative Commons CCBY</td>
</tr>
<tr>
<td>14</td>
<td>Yellowstone</td>
<td>Chanut is Industries</td>
<td><a href="https://thenounproject.com/chanut-is/collection/usa-elements-patriotic-and-freedom">USA elements - Patriotic and Freedom</a></td>
<td>Creative Commons CCBY</td>
</tr>
</table>
</span>
<script>
days = [
["emVybw==", "inst"],
["MTc5Nw==", "west"],
["MDY6MTk6MTA6NDU=", "madi"],
["MDY6MDQ6MjAyMToxMDozMw==", "norr"],
["MTEyOA==", "rang"],
["NDQ0", "mamm"],
["MTI0", "roos"],
["NDMxMDA=", "lama"],
["NzI5MDA=", "towe"],
["MzY5MTA1MQ==", "cany"],
["MTk5MzM3MDA=", "fish"],
["MzQ=", "thum"],
["NTk1MDY3MDEyMzI1MA==", "teto"],
["MzQyNTc=", "gran"],
["T0ZCR0dHUkdDR0RH", "oldf"],
]
pairs = []
days.forEach(element => {
nickname = element[1];
answerHash = element[0]
answer = document.querySelector("#" + nickname + "Answer")
answer.addEventListener("change", checkAnswers)
result = document.querySelector("#" + nickname + "Result")
pairs.push([answer, result, answerHash, nickname])
savedValue = localStorage.getItem("codera-" + nickname)
if (savedValue) {
answer.value = savedValue
}
checkAnswers()
});
function checkAnswers() {
pairs.forEach(element => {
var [answer, result, answerHash, nickname] = element
mapSymbol = document.querySelector("#" + nickname + "MapSymbol");
tableSymbol = document.querySelector("#" + nickname + "TableSymbol");
localStorage.setItem("codera-" + nickname, answer.value);
if (btoa(answer.value) == answerHash) {
result.innerText = String.fromCharCode("0x2705")
mapSymbol.style = "opacity : 1;"
tableSymbol.style = "opacity : 1;"
}
else if (answer.value == "") {
result.innerText = ""
mapSymbol.style = "opacity : 0;"
tableSymbol.style = "opacity : 0;"
}
else {
result.innerText =String.fromCharCode("0x274C")
mapSymbol.style = "opacity : 0;"
tableSymbol.style = "opacity : 0;"
}
});
}
function deleteStoredAnswers() {
pairs.forEach(element => {
var [answer, result, answerHash, nickname] = element
localStorage.removeItem("codera-" + nickname)
});
}
</script>
</body>
Copyright 2022 Robin A. Reynolds-Haertle
</html>