-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
3281 lines (3214 loc) ยท 93.6 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
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- https://www.youtube.com/watch?v=ZwC74uv3zic -->
<head>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>๐</text></svg>"/>
<link rel="icon" href="data:image/png,<png xmlns='http://www.w3.org/2000/png' viewBox='0 0 100 100'><text y='.9em' font-size='90'>๐</text></png>"/>
<title>walktourdle - guess the video location</title>
<meta name="description" content="Test and improve your geography knowledge by solving the daily video challenge.">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VNE6R8FFTG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VNE6R8FFTG');
</script>
<body onload="populate()" onresize="resize()" id="body">
<div class="yt-embed-holder">
<iframe width="720" id="ytvid" height="315" src=""
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media;
gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"></iframe>
<div class="score-container" id="load0" style="bottom: calc(90*6px);">
<span class="emoji" id="emoji0-1">โฌ</span>
<span class="emoji" id="emoji0-2">โฌ</span>
<span class="emoji" id="emoji0-3">โฌ</span>
<span class="emoji" id="emoji0-4">โฌ</span>
<span class="emoji" id="emoji0-5">โฌ</span>
<div class="grid-container" id="grid0">
<span class="new-content hidden" id="county-name0">County Name</span>
<span class="new-content hidden" id="distance0">Distance</span>
<span class="new-content hidden" id="chosen-emoji0">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display0">0%</span>
</div>
<div id="popup" class="popup">
<div id="score" class="score"></div>
<div id="correct-answer" class="correct-answer"></div>
<div id="time-taken" class="time-taken"></div>
</div>
<div class="score-container" id="load1" style="bottom: calc(90*5px);">
<span class="emoji" id="emoji1-1">โฌ</span>
<span class="emoji" id="emoji1-2">โฌ</span>
<span class="emoji" id="emoji1-3">โฌ</span>
<span class="emoji" id="emoji1-4">โฌ</span>
<span class="emoji" id="emoji1-5">โฌ</span>
<div class="grid-container" id="grid1">
<span class="new-content hidden" id="county-name1">County Name</span>
<span class="new-content hidden" id="distance1">Distance</span>
<span class="new-content hidden" id="chosen-emoji1">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display1">0%</span>
</div>
<div class="score-container" id="load2" style="bottom: calc(90*4px);">
<span class="emoji" id="emoji2-1">โฌ</span>
<span class="emoji" id="emoji2-2">โฌ</span>
<span class="emoji" id="emoji2-3">โฌ</span>
<span class="emoji" id="emoji2-4">โฌ</span>
<span class="emoji" id="emoji2-5">โฌ</span>
<div class="grid-container" id="grid2">
<span class="new-content hidden" id="county-name2">County Name</span>
<span class="new-content hidden" id="distance2">Distance</span>
<span class="new-content hidden" id="chosen-emoji2">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display2">0%</span>
</div>
<div class="score-container" id="load3" style="bottom: calc(90*3px);">
<span class="emoji" id="emoji3-1">โฌ</span>
<span class="emoji" id="emoji3-2">โฌ</span>
<span class="emoji" id="emoji3-3">โฌ</span>
<span class="emoji" id="emoji3-4">โฌ</span>
<span class="emoji" id="emoji3-5">โฌ</span>
<div class="grid-container" id="grid3">
<span class="new-content hidden" id="county-name3">County Name</span>
<span class="new-content hidden" id="distance3">Distance</span>
<span class="new-content hidden" id="chosen-emoji3">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display3">0%</span>
</div>
<div class="score-container" id="load4" style="bottom: calc(90*2px);">
<span class="emoji" id="emoji4-1">โฌ</span>
<span class="emoji" id="emoji4-2">โฌ</span>
<span class="emoji" id="emoji4-3">โฌ</span>
<span class="emoji" id="emoji4-4">โฌ</span>
<span class="emoji" id="emoji4-5">โฌ</span>
<div class="grid-container" id="grid4">
<span class="new-content hidden" id="county-name4">County Name</span>
<span class="new-content hidden" id="distance4">Distance</span>
<span class="new-content hidden" id="chosen-emoji4">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display4">0%</span>
</div>
<div class="score-container" id="load5" style="bottom: calc(90*1px);">
<span class="emoji" id="emoji5-1">โฌ</span>
<span class="emoji" id="emoji5-2">โฌ</span>
<span class="emoji" id="emoji5-3">โฌ</span>
<span class="emoji" id="emoji5-4">โฌ</span>
<span class="emoji" id="emoji5-5">โฌ</span>
<div class="grid-container" id="grid5">
<span class="new-content hidden" id="county-name5">County Name</span>
<span class="new-content hidden" id="distance5">Distance</span>
<span class="new-content hidden" id="chosen-emoji5">๐บ๏ธ</span>
</div>
<span class="percentage-display" id="percentage-display5">0%</span>
</div>
</select>
</div>
<div class="guess" id="guess" style="bottom:calc(10px);">
<select id="locations" name="locations" style="width: 50%; height: 100%; border-radius: 12px; padding-left: 10px;">
<option value="none">Pick a location ๐บ๏ธ</option>
<option value="aland islands">๐ฆ๐ฝร
land Islands</option>
<option value="afghanistan">๐ฆ๐ซAfghanistan</option>
<option value="albania">๐ฆ๐ฑAlbania</option>
<option value="algeria">๐ฉ๐ฟAlgeria</option>
<option value="american samoa">๐ฆ๐ธAmerican Samoa</option>
<option value="andorra">๐ฆ๐ฉAndorra</option>
<option value="angola">๐ฆ๐ดAngola</option>
<option value="anguilla">๐ฆ๐ฎAnguilla</option>
<option value="antarctica">๐ฆ๐ถAntarctica</option>
<option value="antigua & barbuda">๐ฆ๐ฌAntigua & Barbuda</option>
<option value="argentina">๐ฆ๐ทArgentina</option>
<option value="armenia">๐ฆ๐ฒArmenia</option>
<option value="aruba">๐ฆ๐ผAruba</option>
<option value="ascension island">๐ฆ๐จAscension Island</option>
<option value="australia">๐ฆ๐บAustralia</option>
<option value="austria">๐ฆ๐นAustria</option>
<option value="azerbaijan">๐ฆ๐ฟAzerbaijan</option>
<option value="bahamas">๐ง๐ธBahamas</option>
<option value="bahrain">๐ง๐ญBahrain</option>
<option value="bangladesh">๐ง๐ฉBangladesh</option>
<option value="barbados">๐ง๐งBarbados</option>
<option value="belarus">๐ง๐พBelarus</option>
<option value="belgium">๐ง๐ชBelgium</option>
<option value="belize">๐ง๐ฟBelize</option>
<option value="benin">๐ง๐ฏBenin</option>
<option value="bermuda">๐ง๐ฒBermuda</option>
<option value="bhutan">๐ง๐นBhutan</option>
<option value="bolivia">๐ง๐ดBolivia</option>
<option value="bosnia & herzegovina">๐ง๐ฆBosnia & Herzegovina</option>
<option value="botswana">๐ง๐ผBotswana</option>
<option value="bouvet island">๐ง๐ปBouvet Island</option>
<option value="brazil">๐ง๐ทBrazil</option>
<option value="british indian ocean territory">๐ฎ๐ดBritish Indian Ocean Territory</option>
<option value="british virgin islands">๐ป๐ฌBritish Virgin Islands</option>
<option value="brunei">๐ง๐ณBrunei</option>
<option value="bulgaria">๐ง๐ฌBulgaria</option>
<option value="burkina faso">๐ง๐ซBurkina Faso</option>
<option value="burundi">๐ง๐ฎBurundi</option>
<option value="cambodia">๐ฐ๐ญCambodia</option>
<option value="cameroon">๐จ๐ฒCameroon</option>
<option value="canada">๐จ๐ฆCanada</option>
<option value="canary islands">๐ฎ๐จCanary Islands</option>
<option value="cape verde">๐จ๐ปCape Verde</option>
<option value="caribbean netherlands">๐ง๐ถCaribbean Netherlands</option>
<option value="cayman islands">๐ฐ๐พCayman Islands</option>
<option value="central african republic">๐จ๐ซCentral African Republic</option>
<option value="ceuta & melilla">๐ช๐ฆCeuta & Melilla</option>
<option value="chad">๐น๐ฉChad</option>
<option value="chile">๐จ๐ฑChile</option>
<option value="china">๐จ๐ณChina</option>
<option value="christmas island">๐จ๐ฝChristmas Island</option>
<option value="clipperton island">๐จ๐ตClipperton Island</option>
<option value="cocos (keeling) islands">๐จ๐จCocos (Keeling) Islands</option>
<option value="colombia">๐จ๐ดColombia</option>
<option value="comoros">๐ฐ๐ฒComoros</option>
<option value="congo - brazzaville">๐จ๐ฌCongo - Brazzaville</option>
<option value="congo - kinshasa">๐จ๐ฉCongo - Kinshasa</option>
<option value="cook islands">๐จ๐ฐCook Islands</option>
<option value="costa rica">๐จ๐ทCosta Rica</option>
<option value="cote dโivoire">๐จ๐ฎCรดte dโIvoire</option>
<option value="croatia">๐ญ๐ทCroatia</option>
<option value="cuba">๐จ๐บCuba</option>
<option value="curacao">๐จ๐ผCuraรงao</option>
<option value="cyprus">๐จ๐พCyprus</option>
<option value="czechia">๐จ๐ฟCzechia</option>
<option value="denmark">๐ฉ๐ฐDenmark</option>
<option value="diego garcia">๐ฉ๐ฌDiego Garcia</option>
<option value="djibouti">๐ฉ๐ฏDjibouti</option>
<option value="dominica">๐ฉ๐ฒDominica</option>
<option value="dominican republic">๐ฉ๐ดDominican Republic</option>
<option value="ecuador">๐ช๐จEcuador</option>
<option value="egypt">๐ช๐ฌEgypt</option>
<option value="el salvador">๐ธ๐ปEl Salvador</option>
<option value="england">๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟEngland</option>
<option value="equatorial guinea">๐ฌ๐ถEquatorial Guinea</option>
<option value="eritrea">๐ช๐ทEritrea</option>
<option value="estonia">๐ช๐ชEstonia</option>
<option value="eswatini">๐ธ๐ฟEswatini</option>
<option value="ethiopia">๐ช๐นEthiopia</option>
<option value="falkland islands">๐ซ๐ฐFalkland Islands</option>
<option value="faroe islands">๐ซ๐ดFaroe Islands</option>
<option value="fiji">๐ซ๐ฏFiji</option>
<option value="finland">๐ซ๐ฎFinland</option>
<option value="france">๐ซ๐ทFrance</option>
<option value="french guiana">๐ฌ๐ซFrench Guiana</option>
<option value="french polynesia">๐ต๐ซFrench Polynesia</option>
<option value="french southern territories">๐น๐ซFrench Southern Territories</option>
<option value="gabon">๐ฌ๐ฆGabon</option>
<option value="gambia">๐ฌ๐ฒGambia</option>
<option value="georgia">๐ฌ๐ชGeorgia</option>
<option value="germany">๐ฉ๐ชGermany</option>
<option value="ghana">๐ฌ๐ญGhana</option>
<option value="gibraltar">๐ฌ๐ฎGibraltar</option>
<option value="greece">๐ฌ๐ทGreece</option>
<option value="greenland">๐ฌ๐ฑGreenland</option>
<option value="grenada">๐ฌ๐ฉGrenada</option>
<option value="guadeloupe">๐ฌ๐ตGuadeloupe</option>
<option value="guam">๐ฌ๐บGuam</option>
<option value="guatemala">๐ฌ๐นGuatemala</option>
<option value="guernsey">๐ฌ๐ฌGuernsey</option>
<option value="guinea">๐ฌ๐ณGuinea</option>
<option value="guinea-bissau">๐ฌ๐ผGuinea-Bissau</option>
<option value="guyana">๐ฌ๐พGuyana</option>
<option value="haiti">๐ญ๐นHaiti</option>
<option value="heard & mcdonald islands">๐ญ๐ฒHeard & McDonald Islands</option>
<option value="honduras">๐ญ๐ณHonduras</option>
<option value="hong kong sar china">๐ญ๐ฐHong Kong SAR China</option>
<option value="hungary">๐ญ๐บHungary</option>
<option value="iceland">๐ฎ๐ธIceland</option>
<option value="india">๐ฎ๐ณIndia</option>
<option value="indonesia">๐ฎ๐ฉIndonesia</option>
<option value="iran">๐ฎ๐ทIran</option>
<option value="iraq">๐ฎ๐ถIraq</option>
<option value="ireland">๐ฎ๐ชIreland</option>
<option value="isle of man">๐ฎ๐ฒIsle of Man</option>
<option value="israel">๐ฎ๐ฑIsrael</option>
<option value="italy">๐ฎ๐นItaly</option>
<option value="jamaica">๐ฏ๐ฒJamaica</option>
<option value="japan">๐ฏ๐ตJapan</option>
<option value="jersey">๐ฏ๐ชJersey</option>
<option value="jordan">๐ฏ๐ดJordan</option>
<option value="kazakhstan">๐ฐ๐ฟKazakhstan</option>
<option value="kenya">๐ฐ๐ชKenya</option>
<option value="kiribati">๐ฐ๐ฎKiribati</option>
<option value="kosovo">๐ฝ๐ฐKosovo</option>
<option value="kuwait">๐ฐ๐ผKuwait</option>
<option value="kyrgyzstan">๐ฐ๐ฌKyrgyzstan</option>
<option value="laos">๐ฑ๐ฆLaos</option>
<option value="latvia">๐ฑ๐ปLatvia</option>
<option value="lebanon">๐ฑ๐งLebanon</option>
<option value="lesotho">๐ฑ๐ธLesotho</option>
<option value="liberia">๐ฑ๐ทLiberia</option>
<option value="libya">๐ฑ๐พLibya</option>
<option value="liechtenstein">๐ฑ๐ฎLiechtenstein</option>
<option value="lithuania">๐ฑ๐นLithuania</option>
<option value="luxembourg">๐ฑ๐บLuxembourg</option>
<option value="macao sar china">๐ฒ๐ดMacao Sar China</option>
<option value="madagascar">๐ฒ๐ฌMadagascar</option>
<option value="malawi">๐ฒ๐ผMalawi</option>
<option value="malaysia">๐ฒ๐พMalaysia</option>
<option value="maldives">๐ฒ๐ปMaldives</option>
<option value="mali">๐ฒ๐ฑMali</option>
<option value="malta">๐ฒ๐นMalta</option>
<option value="marshall islands">๐ฒ๐ญMarshall Islands</option>
<option value="martinique">๐ฒ๐ถMartinique</option>
<option value="mauritania">๐ฒ๐ทMauritania</option>
<option value="mauritius">๐ฒ๐บMauritius</option>
<option value="mayotte">๐พ๐นMayotte</option>
<option value="mexico">๐ฒ๐ฝMexico</option>
<option value="micronesia">๐ซ๐ฒMicronesia</option>
<option value="moldova">๐ฒ๐ฉMoldova</option>
<option value="monaco">๐ฒ๐จMonaco</option>
<option value="mongolia">๐ฒ๐ณMongolia</option>
<option value="montenegro">๐ฒ๐ชMontenegro</option>
<option value="montserrat">๐ฒ๐ธMontserrat</option>
<option value="morocco">๐ฒ๐ฆMorocco</option>
<option value="mozambique">๐ฒ๐ฟMozambique</option>
<option value="myanmar (burma)">๐ฒ๐ฒMyanmar (Burma)</option>
<option value="namibia">๐ณ๐ฆNamibia</option>
<option value="nauru">๐ณ๐ทNauru</option>
<option value="nepal">๐ณ๐ตNepal</option>
<option value="netherlands">๐ณ๐ฑNetherlands</option>
<option value="new caledonia">๐ณ๐จNew Caledonia</option>
<option value="new zealand">๐ณ๐ฟNew Zealand</option>
<option value="nicaragua">๐ณ๐ฎNicaragua</option>
<option value="niger">๐ณ๐ชNiger</option>
<option value="nigeria">๐ณ๐ฌNigeria</option>
<option value="niue">๐ณ๐บNiue</option>
<option value="norfolk island">๐ณ๐ซNorfolk Island</option>
<option value="north korea">๐ฐ๐ตNorth Korea</option>
<option value="north macedonia">๐ฒ๐ฐNorth Macedonia</option>
<option value="northern mariana islands">๐ฒ๐ตNorthern Mariana Islands</option>
<option value="norway">๐ณ๐ดNorway</option>
<option value="oman">๐ด๐ฒOman</option>
<option value="pakistan">๐ต๐ฐPakistan</option>
<option value="palau">๐ต๐ผPalau</option>
<option value="palestinian territories">๐ต๐ธPalestinian Territories</option>
<option value="panama">๐ต๐ฆPanama</option>
<option value="papua new guinea">๐ต๐ฌPapua New Guinea</option>
<option value="paraguay">๐ต๐พParaguay</option>
<option value="peru">๐ต๐ชPeru</option>
<option value="philippines">๐ต๐ญPhilippines</option>
<option value="pitcairn islands">๐ต๐ณPitcairn Islands</option>
<option value="poland">๐ต๐ฑPoland</option>
<option value="portugal">๐ต๐นPortugal</option>
<option value="puerto rico">๐ต๐ทPuerto Rico</option>
<option value="qatar">๐ถ๐ฆQatar</option>
<option value="romania">๐ท๐ดRomania</option>
<option value="russia">๐ท๐บRussia</option>
<option value="rwanda">๐ท๐ผRwanda</option>
<option value="reunion">๐ท๐ชRรฉunion</option>
<option value="samoa">๐ผ๐ธSamoa</option>
<option value="san marino">๐ธ๐ฒSan Marino</option>
<option value="sao tome & principe">๐ธ๐นSรฃo Tomรฉ & Prรญncipe</option>
<option value="saudi arabia">๐ธ๐ฆSaudi Arabia</option>
<option value="scotland">๐ด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟScotland</option>
<option value="senegal">๐ธ๐ณSenegal</option>
<option value="serbia">๐ท๐ธSerbia</option>
<option value="seychelles">๐ธ๐จSeychelles</option>
<option value="sierra leone">๐ธ๐ฑSierra Leone</option>
<option value="singapore">๐ธ๐ฌSingapore</option>
<option value="sint maarten">๐ธ๐ฝSint Maarten</option>
<option value="slovakia">๐ธ๐ฐSlovakia</option>
<option value="slovenia">๐ธ๐ฎSlovenia</option>
<option value="solomon islands">๐ธ๐งSolomon Islands</option>
<option value="somalia">๐ธ๐ดSomalia</option>
<option value="south africa">๐ฟ๐ฆSouth Africa</option>
<option value="south georgia & south sandwich islands">๐ฌ๐ธSouth Georgia & South Sandwich Islands</option>
<option value="south korea">๐ฐ๐ทSouth Korea</option>
<option value="south sudan">๐ธ๐ธSouth Sudan</option>
<option value="spain">๐ช๐ธSpain</option>
<option value="sri lanka">๐ฑ๐ฐSri Lanka</option>
<option value="st. barthรฉlemy">๐ง๐ฑSt. Barthรฉlemy</option>
<option value="st. helena">๐ธ๐ญSt. Helena</option>
<option value="st. kitts & nevis">๐ฐ๐ณSt. Kitts & Nevis</option>
<option value="st. lucia">๐ฑ๐จSt. Lucia</option>
<option value="st. martin">๐ฒ๐ซSt. Martin</option>
<option value="st. pierre & miquelon">๐ต๐ฒSt. Pierre & Miquelon</option>
<option value="st. vincent & grenadines">๐ป๐จSt. Vincent & Grenadines</option>
<option value="sudan">๐ธ๐ฉSudan</option>
<option value="suriname">๐ธ๐ทSuriname</option>
<option value="svalbard & jan mayen">๐ธ๐ฏSvalbard & Jan Mayen</option>
<option value="sweden">๐ธ๐ชSweden</option>
<option value="switzerland">๐จ๐ญSwitzerland</option>
<option value="syria">๐ธ๐พSyria</option>
<option value="taiwan">๐น๐ผTaiwan</option>
<option value="tajikistan">๐น๐ฏTajikistan</option>
<option value="tanzania">๐น๐ฟTanzania</option>
<option value="thailand">๐น๐ญThailand</option>
<option value="timor-leste">๐น๐ฑTimor-Leste</option>
<option value="togo">๐น๐ฌTogo</option>
<option value="tokelau">๐น๐ฐTokelau</option>
<option value="tonga">๐น๐ดTonga</option>
<option value="trinidad & tobago">๐น๐นTrinidad & Tobago</option>
<option value="tristan da cunha">๐น๐ฆTristan Da Cunha</option>
<option value="tunisia">๐น๐ณTunisia</option>
<option value="turkey">๐น๐ทTurkey</option>
<option value="turkmenistan">๐น๐ฒTurkmenistan</option>
<option value="turks & caicos islands">๐น๐จTurks & Caicos Islands</option>
<option value="tuvalu">๐น๐ปTuvalu</option>
<option value="u.s. outlying islands">๐บ๐ฒU.S. Outlying Islands</option>
<option value="u.s. virgin islands">๐ป๐ฎU.S. Virgin Islands</option>
<option value="uganda">๐บ๐ฌUganda</option>
<option value="ukraine">๐บ๐ฆUkraine</option>
<option value="united arab emirates">๐ฆ๐ชUnited Arab Emirates</option>
<option value="united states">๐บ๐ธUnited States</option>
<option value="uruguay">๐บ๐พUruguay</option>
<option value="uzbekistan">๐บ๐ฟUzbekistan</option>
<option value="vanuatu">๐ป๐บVanuatu</option>
<option value="vatican city">๐ป๐ฆVatican City</option>
<option value="venezuela">๐ป๐ชVenezuela</option>
<option value="vietnam">๐ป๐ณVietnam</option>
<option value="wales">๐ด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ๓ งWales</option>
<option value="wallis & futuna">๐ผ๐ซWallis & Futuna</option>
<option value="western sahara">๐ช๐ญWestern Sahara</option>
<option value="yemen">๐พ๐ชYemen</option>
<option value="zambia">๐ฟ๐ฒZambia</option>
<option value="zimbabwe">๐ฟ๐ผZimbabwe</option>
</select>
<button class="submit-btn" id="learn-btn" style="display: none; background-color: white; color:black; bottom: 10px; border-radius: 12px;"></button>
<button class="submit-btn" id="submit-btn" onclick="make_guess()" style="bottom: 10px; border-radius: 12px;">Guess</button>
</div>
</div>
<style>
body{
background-color: black;
font-family: Arial, sans-serif;
}
body{
background-color: black;
font-family: Arial, sans-serif;
}
.yt-embed-holder {
width: 100%;
height: 90%;
overflow: hidden;
pointer-events: none;
#aspect-ratio: 16/9;
}
.yt-embed-holder iframe {
width: 300%;
height: 90%;
margin-left: -100%;
z-index: 100;
}
.grid-container {
display: none; /* Activate grid layout */
}
.score-container {
width: 860px;
height: 80px;
position: absolute;
bottom: 540px;
z-index: 1000;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: space-between; /* Spread out the elements */
background-color: rgba(255, 255, 255, 0.7);
padding: 0 40px; /* Padding to keep elements away from edges */
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.emoji, .new-content {
opacity: 0; /* Initially hidden */
transition: opacity 0.5s ease;
}
.percentage-display {
font-weight: bold;
display: none
}
.hidden {
display: none;
}
.visible {
opacity: 1;
}
.guess select:focus {
border-color: #007BFF;
}
.submit-btn {
width: 48%;
background-color: #007BFF;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
.submit-btn:hover {
background-color: #0056b3;
}
.load {
display: None;
height: 80px;
width:900px;
overflow:hidden;
cursor:pointer;
z-index:100000;
background-color:rgb(239, 52, 52);
position: absolute;
bottom: 180px;
left:calc(50% - 900px / 2);
}
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 20px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 12px;
text-align: center;
z-index: 1000000;
}
.popup .score {
margin-bottom: 10px;
}
.popup .correct-answer {
margin-bottom: 10px;
}
.popup .time-taken {
margin-bottom: 20px;
font-size: smaller;
}
@media screen and (min-width: 700px) {
.guess {
height: 40px;
width: 500px;
position: absolute;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1;
overflow: hidden;
}
.score-container {
width: 660px;
height: 40px;
position: absolute;
bottom: 540px;
z-index: 1000;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: space-between; /* Spread out the elements */
background-color: rgba(255, 255, 255, 0.7);
padding: 0 40px; /* Padding to keep elements away from edges */
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
}
</style>
<script>
function showPopup(scoreArray, correctAnswer) {
const scoreElement = document.getElementById('score');
const correctAnswerElement = document.getElementById('correct-answer');
const timeElement = document.getElementById('time-taken');
scoreElement.innerHTML = scoreArray.map(score => {
let greenSquares = Math.floor(score / 20);
let yellowSquare = score % 20 > 9 ? 1 : 0;
let greySquares = 5 - greenSquares - yellowSquare;
return '๐ฉ'.repeat(greenSquares) + '๐จ'.repeat(yellowSquare) + 'โฌ'.repeat(greySquares);
}).join('<br>');
correctAnswerElement.innerHTML = "Correct Answer: "+ loc_data[correctAnswer]["flag"] + correctAnswer;
timeElement.innerHTML = "time: "+Math.floor((Date.now() - now_full - 3000) / 1000)+" seconds";
document.getElementById('popup').style.display = 'block';
document.getElementById('submit-btn').innerHTML = 'Share';
document.getElementById('submit-btn').onclick = function() { shareScore(); }
document.getElementById('submit-btn').style.backgroundColor = "#008000";
document.getElementById('locations').style.display = 'none';
document.getElementById('learn-btn').style.display = 'block';
document.getElementById('learn-btn').style.height = 'block';
document.getElementById('learn-btn').innerHTML = "<a href=\""+loc_data[correctAnswer]["wiki"]+"\" target=\"_blank\">"+loc_data[correctAnswer]["flag"]+"wiki</a>\
  <a href=\"https://www.youtube.com/watch?v="+loc_data[correctAnswer]["video_id"]+"\" target=\"_blank\">"+loc_data[correctAnswer]["flag"]+"video</a>";
}
function hidePopup() {
document.getElementById('popup').style.display = 'none';
}
function shareScore() {
const scoreElement = document.getElementById('score')
text = "#walktourdle #" + (days+1) + "\n" + scoreElement.innerText + "\n" + document.getElementById('time-taken').innerText + "\nhttps://www.walktourdle.com";
navigator.clipboard.writeText(text);
alert("copied to clipboard");
}
function make_guess(){
i = 0
while(sessionStorage.getItem("guesses"+String(i)+"-"+String(days)) != null && i < 6) {
i+=1;
}
value = document.getElementById("locations").value;
y = calculate_distance(value);
distance = y[0]
angle = y[1]
fake_load(distance,angle,value,i);
guess = value+","+y[0]+","+y[1];
sessionStorage.setItem("guesses"+String(i)+"-"+String(days),guess);
document.getElementById("guess"+String(i)).textContent=guess;
}
function fake_load(distance,angle,value,i) {
let percentage = Math.max(100 - Math.ceil(distance*100 / 13238),0);
if(sessionStorage.getItem("percent"+String(i)+"-"+String(days)) == null) {
sessionStorage.setItem("percent"+String(i)+"-"+String(days),String(percentage))
}
for (let j = 1; j < 6; j++) {
document.getElementById("emoji"+String(i)+"-"+String(j)).style.opacity = 0; // Make the emoji appear
}
document.getElementById('load'+String(i)).style.display = 'flex';
document.getElementById('percentage-display'+String(i)).style.display = 'block'
updateScoreAnimation(percentage,i);
let text = value;
if(window.screen.availWidth >= 700 || ['england', 'scotland', 'wales'].includes(value) == false) {
text = loc_data[value]["flag"]+value;
}
if(window.screen.availWidth < 700) {
document.getElementById("county-name"+String(i)).textContent = text.length > 11 ? text.slice(0, 11) + "..." : text
} else {
document.getElementById("county-name"+String(i)).textContent = text.length > 16 ? text.slice(0, 16) + "..." : text
}
document.getElementById("distance"+String(i)).textContent = Number(distance).toLocaleString('en', {useGrouping:true}) +" km";
if(distance > 0) {
emoji = "โ๏ธ"
if(angle > 77.5 && angle <= 122.5) {
emoji = "โก๏ธ"
}
if(angle > 122.5 && angle <= 167.5) {
emoji = "โ๏ธ"
}
if(angle > 167.5 && angle <= 212.5) {
emoji = "โฌ๏ธ"
}
if(angle > 212.5 && angle <= 257.5) {
emoji = "โ๏ธ"
}
if(angle > 257.5 && angle <= 302.5) {
emoji = "โฌ
๏ธ"
}
if(angle > 302.5 && angle <= 347.5) {
emoji = "โ๏ธ"
}
if(angle > 347.5 || angle <= 32.5) {
emoji = "โฌ๏ธ"
}
if(text.substring(4) == "antarctica") {
emoji = "โฌ๏ธ";
}
} else {
emoji = "โ
"
}
document.getElementById("chosen-emoji"+String(i)).textContent = emoji;
}
function populate(){
loc_data = {
"afghanistan": {
"flag": "๐ฆ๐ซ",
"wiki": "https://en.wikipedia.org/wiki/Afghanistan",
"coords": {
"latitude": 33.93911,
"longitude": 67.709953
},
"video_id":"sOwyFzhstTA"
},
"albania": {
"flag": "๐ฆ๐ฑ",
"wiki": "https://en.wikipedia.org/wiki/Albania",
"coords": {
"latitude": 41.153332,
"longitude": 20.168331
},
"video_id":"bNlkMrE3SbI",
"start_time":3600
},
"algeria": {
"flag": "๐ฉ๐ฟ",
"wiki": "https://en.wikipedia.org/wiki/Algeria",
"coords": {
"latitude": 28.033886,
"longitude": 1.659626
},
"video_id":"5idcIqyyluQ"
},
"american samoa": {
"flag": "๐ฆ๐ธ",
"wiki": "https://en.wikipedia.org/wiki/American_Samoa",
"coords": {
"latitude": -14.270972,
"longitude": -170.132217
},
"video_id":"5Ra3uaWjf7I",
"start_time":1
},
"andorra": {
"flag": "๐ฆ๐ฉ",
"wiki": "https://en.wikipedia.org/wiki/Andorra",
"coords": {
"latitude": 42.546245,
"longitude": 1.601554
},
"video_id":"48aPuMXx-OE",
"start_time":350
},
"angola": {
"flag": "๐ฆ๐ด",
"wiki": "https://en.wikipedia.org/wiki/Angola",
"coords": {
"latitude": -11.202692,
"longitude": 17.873887
},
"video_id":"r6OYc9_vzIo"
},
"anguilla": {
"flag": "๐ฆ๐ฎ",
"wiki": "https://en.wikipedia.org/wiki/Anguilla",
"coords": {
"latitude": 18.220554,
"longitude": -63.068615
},
"video_id":"It4EOQu2ClA"
},
"antarctica": {
"flag": "๐ฆ๐ถ",
"wiki": "https://en.wikipedia.org/wiki/Antarctica",
"coords": {
"latitude": -82.862752,
"longitude": 135
},
"video_id":"TiHpQ2q9ZcI",
"start_time":90
},
"antigua & barbuda": {
"flag": "๐ฆ๐ฌ",
"wiki": "https://en.wikipedia.org/wiki/Antigua_and_Barbuda",
"coords": {
"latitude": 17.060816,
"longitude": -61.796428
},
"video_id":"ZPe-Egf3xdQ",
"start_time":900
},
"argentina": {
"flag": "๐ฆ๐ท",
"wiki": "https://en.wikipedia.org/wiki/Argentina",
"coords": {
"latitude": -38.416097,
"longitude": -63.616672
},
"video_id":"noyVhx-AiUI",
"start_time":160
},
"armenia": {
"flag": "๐ฆ๐ฒ",
"wiki": "https://en.wikipedia.org/wiki/Armenia",
"coords": {
"latitude": 40.069099,
"longitude": 45.038189
},
"video_id": "GUzr2UQXCDA"
},
"aruba": {
"flag": "๐ฆ๐ผ",
"wiki": "https://en.wikipedia.org/wiki/Aruba",
"coords": {
"latitude": 12.52111,
"longitude": -69.968338
},
"video_id":"jvL_-dtn_mE"
},
"ascension island": {
"flag": "๐ฆ๐จ",
"wiki": "https://en.wikipedia.org/wiki/Ascension_Island",
"coords": {
"latitude": -7.9467,
"longitude": -14.3559
},
"video_id":"VXzMn0I9BDo",
"start_time":1
},
"australia": {
"flag": "๐ฆ๐บ",
"wiki": "https://en.wikipedia.org/wiki/Australia",
"coords": {
"latitude": -25.274398,
"longitude": 133.775136
},
"video_id":"MZF7dqhqh4o"
},
"austria": {
"flag": "๐ฆ๐น",
"wiki": "https://en.wikipedia.org/wiki/Austria",
"coords": {
"latitude": 47.516231,
"longitude": 14.550072
},
"video_id":"jlySirVFFxo"
},
"azerbaijan": {
"flag": "๐ฆ๐ฟ",
"wiki": "https://en.wikipedia.org/wiki/Azerbaijan",
"coords": {
"latitude": 40.143105,
"longitude": 47.576927
},
"video_id":"T25HJFV_n3s"
},
"bahamas": {
"flag": "๐ง๐ธ",
"wiki": "https://en.wikipedia.org/wiki/The_Bahamas",
"coords": {
"latitude": 25.03428,
"longitude": -77.39628
},
"video_id":"cN9PqiPShXo"
},
"bahrain": {
"flag": "๐ง๐ญ",
"wiki": "https://en.wikipedia.org/wiki/Bahrain",
"coords": {
"latitude": 26.0667,
"longitude": 50.5577
},
"video_id":"B7RZcqOmsDQ"
},
"bangladesh": {
"flag": "๐ง๐ฉ",
"wiki": "https://en.wikipedia.org/wiki/Bangladesh",
"coords": {
"latitude": 23.684994,
"longitude": 90.356331
},
"video_id": "uRXcw5q_XAs"
},
"barbados": {
"flag": "๐ง๐ง",
"wiki": "https://en.wikipedia.org/wiki/Barbados",
"coords": {
"latitude": 13.193887,
"longitude": -59.543198
},
"video_id":"HMy5mY0GE-Q"
},
"belarus": {
"flag": "๐ง๐พ",
"wiki": "https://en.wikipedia.org/wiki/Belarus",
"coords": {
"latitude": 53.709807,
"longitude": 27.953389
},
"video_id":"ZywpRP_IPto"
},
"belgium": {
"flag": "๐ง๐ช",
"wiki": "https://en.wikipedia.org/wiki/Belgium",
"coords": {
"latitude": 50.503887,
"longitude": 4.469936
},
"video_id":"pia5eIN4IGI"
},
"belize": {
"flag": "๐ง๐ฟ",
"wiki": "https://en.wikipedia.org/wiki/Belize",
"coords": {
"latitude": 17.189877,
"longitude": -88.49765
},
"video_id":"YdLprb75M4I",
"start_time":1
},
"benin": {
"flag": "๐ง๐ฏ",
"wiki": "https://en.wikipedia.org/wiki/Benin",
"coords": {
"latitude": 9.30769,
"longitude": 2.315834
},
"video_id":"8zafbNUe7w8"
},
"bermuda": {
"flag": "๐ง๐ฒ",
"wiki": "https://en.wikipedia.org/wiki/Bermuda",
"coords": {
"latitude": 32.321384,
"longitude": -64.75737
},
"video_id":"LZLU_1pqNqQ",
"start_time":60
},
"bhutan": {
"flag": "๐ง๐น",
"wiki": "https://en.wikipedia.org/wiki/Bhutan",
"coords": {
"latitude": 27.514162,
"longitude": 90.433601
},
"video_id":"UaECFf5wB-A"
},
"bolivia": {
"flag": "๐ง๐ด",
"wiki": "https://en.wikipedia.org/wiki/Bolivia",
"coords": {
"latitude": -16.290154,
"longitude": -63.588653
},
"video_id":"IO0Noz1su0c",
"start_time":300
},
"bosnia & herzegovina": {
"flag": "๐ง๐ฆ",
"wiki": "https://en.wikipedia.org/wiki/Bosnia_and_Herzegovina",
"coords": {
"latitude": 43.915886,
"longitude": 17.679076
},
"video_id":"_KNINBNRneo"
},
"botswana": {
"flag": "๐ง๐ผ",
"wiki": "https://en.wikipedia.org/wiki/Botswana",
"coords": {
"latitude": -22.328474,
"longitude": 24.684866
},
"video_id":"E7gyB6WVGxk"
},
"bouvet island": {
"flag": "๐ง๐ป",
"wiki": "https://en.wikipedia.org/wiki/Bouvet_Island",
"coords": {
"latitude": -54.4208,
"longitude": 3.3464
}
},
"brazil": {
"flag": "๐ง๐ท",
"wiki": "https://en.wikipedia.org/wiki/Brazil",
"coords": {
"latitude": -14.235004,
"longitude": -51.92528
},
"video_id":"deWX0DK5KgY"
},
"british indian ocean territory": {
"flag": "๐ฎ๐ด",
"wiki": "https://en.wikipedia.org/wiki/British_Indian_Ocean_Territory",
"coords": {
"latitude": -6.343194,
"longitude": 71.876519
}
},
"british virgin islands": {
"flag": "๐ป๐ฌ",
"wiki": "https://en.wikipedia.org/wiki/British_Virgin_Islands",
"coords": {
"latitude": 18.420695,
"longitude": -64.639968
},
"video_id": "IWNIrByuvJI",
"start_time":600
},
"brunei": {
"flag": "๐ง๐ณ",
"wiki": "https://en.wikipedia.org/wiki/Brunei",
"coords": {
"latitude": 4.535277,
"longitude": 114.727669
},
"video_id":"tlbmnLd1R5A",
"start_time":20
},
"bulgaria": {
"flag": "๐ง๐ฌ",
"wiki": "https://en.wikipedia.org/wiki/Bulgaria",
"coords": {
"latitude": 42.733883,
"longitude": 25.48583
},
"video_id": "WJTnHbtEtdg"
},
"burkina faso": {
"flag": "๐ง๐ซ",
"wiki": "https://en.wikipedia.org/wiki/Burkina_Faso",
"coords": {
"latitude": 12.238333,
"longitude": -1.561593
},
"video_id":"lN6dHyVkfjA",
"start_time":540
},
"burundi": {
"flag": "๐ง๐ฎ",
"wiki": "https://en.wikipedia.org/wiki/Burundi",
"coords": {
"latitude": -3.373056,
"longitude": 29.918886
},
"video_id":"ic5LTcQbYhg"
},
"cambodia": {
"flag": "๐ฐ๐ญ",
"wiki": "https://en.wikipedia.org/wiki/Cambodia",
"coords": {
"latitude": 12.565679,
"longitude": 104.990963