forked from ynoproject/forest-orb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
1163 lines (1159 loc) · 72.3 KB
/
index.php
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
<?php
$gameId = substr($_SERVER['REQUEST_URI'], 1, strrpos($_SERVER['REQUEST_URI'], '/', 1) - 1);
$enableBadgeTools = $_GET['badge_tools'] == 'true';
switch ($gameId) {
case "yume":
$gameName = "Yume Nikki";
break;
case "2kki":
$gameName = "Yume 2kki";
break;
case "flow":
$gameName = ".flow";
break;
case "prayers":
$gameName = "Answered Prayers";
break;
case "deepdreams":
$gameName = "Deep Dreams";
break;
case "someday":
$gameName = "Someday";
break;
case "amillusion":
$gameName = "Amillusion";
break;
case "unevendream":
$gameName = "Uneven Dream";
break;
case "braingirl":
$gameName = "Braingirl";
break;
default:
$gameId = "2kki";
$gameName = "Yume 2kki";
break;
}
?>
<!doctype html>
<html lang="en">
<head>
<title>YNOproject - <?php echo $gameName; ?> Online</title>
<meta charset="utf-8">
<meta name="description" content="Play <?php echo $gameName; ?> online with your friends in your browser, no downloads needed.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php if ($gameId == "2kki"): ?>
<meta name="2kkiVersion" content=""> <!-- eg. 0.117g Patch 4 -->
<?php endif ?>
<link rel="stylesheet" href="play.css">
<link rel="stylesheet" href="gamecanvas.css">
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/animations/scale.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/i18next.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/loc-i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
</head>
<body>
<div id="background"></div>
<div id="backgroundOverlay"></div>
<div id="content">
<div id="top"></div>
<div id="header">
<div id="headerLogoContainer">
<button id="nexusButton" class="iconButton unselectable" data-i18n="[title]tooltips.nexus">
<svg height="39" fill="none" viewBox="0 0 102.6 23.4" xmlns="http://www.w3.org/2000/svg">
<path d="m0 0h3.6v7.2h3.6v-7.2h3.6v10.8h-3.6v7.2h-3.6v-7.2h-3.6v-10.8m1.35 1.35h0.9v7.2h6.3v-7.2h0.9v8.1h-3.6v7.2h-0.9v-7.2h-3.6v-8.1m11.25-1.35h10.8v18h-3.6v-14.4h-3.6v14.4h-3.6v-18m1.35 1.35h8.1v15.3h-0.9v-14.4h-6.3v14.4h-0.9v-15.3m23.85 4.05h9v12.6h-5.4v5.4h-3.6v-18m1.35 1.35h6.3v9.9h-5.4v5.4h-0.9v-15.3m0.9 0.9h4.5v8.1h-4.5v-8.1m1.35 1.35h1.8v5.4h-1.8v-5.4m7.2-3.6h7.2v3.6h-3.6v9h-3.6v-12.6m1.35 1.35h4.5v0.9h-3.6v9h-0.9v-9.9m7.65-1.35h9v12.6h-9v-12.6m1.35 1.35h6.3v9.9h-6.3v-9.9m0.9 0.9h4.5v8.1h-4.5v-8.1m1.35 1.35h1.8v5.4h-1.8v-5.4m7.2-9h3.6v3.6h-3.6v-3.6m0.9 0.9h1.8v1.8h-1.8v-1.8m-0.9 4.5h3.6v18h-5.4v-3.6h1.8v-14.4m1.35 1.35h0.9v15.3h-2.7v-0.9h1.8v-14.4m4.05-1.35h9v7.2h-5.4v1.8h5.4v3.6h-9v-12.6m1.35 1.35h6.3v4.5h-0.9v-3.6h-4.5v8.1h5.4v0.9h-6.3v-9.9m2.25 2.25h1.8v2.25h-1.8v-2.25m7.2-3.6h9v5.4h-3.6v-1.8h-1.8v5.4h1.8v-1.8h3.6v5.4h-9v-12.6m1.35 1.35h6.3v2.7h-0.9v-1.8h-4.5v8.1h4.5v-1.8h0.9v2.7h-6.3v-9.9m9.45-4.95h3.6v3.6h3.6v3.6h-3.6v5.4h3.6v3.6h-7.2v-16.2m1.35 1.35h0.9v3.6h3.6v0.9h-3.6v8.1h3.6v0.9h-4.5v-13.5"/>
</svg>
<svg width="30" height="30" fill="none" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path d="m4 0h10v18h-10v-18m1 1h8v16h-8v-16m1 1h6v14h-6v-14m1 2h4v3h-4v-3m1 1h2v1h-2v-1m0 3.5h2v1h-2v-1m-1 2.5h4v3h-4v-3m1 1h2v1h-2v-1m-4-8h1m0 2h-1m0 6h1m0 2h-1m7.5-6h0.5v1h-0.5v-1m-7.5 15.4" />
<path d="m4 0h10v18h-10v-18m1 1h8v16h-8v-16m0.5 16l6.5-4.25v-11.75m-6 1l2-1h3.25v11.25l-5.25 3.25v-13.5m1 1.25l3-1.5v3.25l-3 1.5v-3.25m0.75 0.75l1.5-0.75v1l-1.5 0.75v-1m0 3.75l1.5-0.75v1l-1.5 0.75v-1m-0.75 2.75l3-1.75v3l-3 2v-3.25m0.75 0.75l1.5-1v1l-1.5 1v-1m-3.75-7.25h1m0 2h-1m0 6h1m0 2h-1m6.75-8.25l0.5-0.25v1l-0.5 0.25v-1m-7.5 15.4" />
</svg>
<svg width="48" height="48" fill="none" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path d="m4 0h10v18h-10v-18m1 1h8v16h-8v-16m1 1h6v14h-6v-14m1 2h4v3h-4v-3m1 1h2v1h-2v-1m0 3.5h2v1h-2v-1m-1 2.5h4v3h-4v-3m1 1h2v1h-2v-1m-4-8h1m0 2h-1m0 6h1m0 2h-1m7.5-6h0.5v1h-0.5v-1" />
<path d="m4 0h10v18h-10v-18m1 1h8v16h-8v-16m0.5 16l6.5-4.25v-11.75m-6 1l2-1h3.25v11.25l-5.25 3.25v-13.5m1 1.25l3-1.5v3.25l-3 1.5v-3.25m0.75 0.75l1.5-0.75v1l-1.5 0.75v-1m0 3.75l1.5-0.75v1l-1.5 0.75v-1m-0.75 2.75l3-1.75v3l-3 2v-3.25m0.75 0.75l1.5-1v1l-1.5 1v-1m-3.75-7.25h1m0 2h-1m0 6h1m0 2h-1m6.75-8.25l0.5-0.25v1l-0.5 0.25v-1" />
</svg>
</button>
<div id="gameLogoContainer">
<div id="gameLogo" class="hidden">
<div id="gameLogoOverlay"></div>
</div>
</div>
</div>
<div id="headerIconContainer" class="itemContainer smallItemContainer">
<div id="badgeButton" class="badgeItem item accountRequired unselectable"></div>
<button id="rankingsButton" class="iconButton fillIcon unselectable" data-i18n="[title]tooltips.rankings">
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="m0 18v-11h5.75v11m0.5 0v-16h5.5v16m0.5-6h5.75v6h-5.75v-6" /></svg>
</button>
<button id="loginButton" type="button" class="unselectable" data-i18n="[html]account.login">Login</button>
<button id="logoutButton" type="button" class="unselectable" data-i18n="[html]account.logout">Logout</button>
</div>
</div>
<div id="layout">
<div id="mainContainer" class="container">
<div id="gameContainer">
<div id="controls">
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
<defs id="svgDefs"></defs>
</svg>
<div id="leftControls">
<button id="singlePlayerButton" class="iconButton offToggle unselectable" data-i18n="[title]tooltips.toggleSinglePlayer">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m9 15.5a1 1 0 0 0 0-3 1 1 0 0 0 0 3m-4-4q4-4 8 0m-10.5-3q6.5-5 13 0m-15.5-3q9-7 18 0" /><path d="m-2 16l22-14" /></svg>
</button><button id="uploadButton" class="iconButton unselectable" data-i18n="[title]tooltips.io.upload">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m12.75 18v-3.25h-2.25l3.75-4.25 3.75 4.25h-2.25v3.25h-3m-12.75-16.5q0-1.5 1.5-1.5h11.25l2.25 2.25v9.1m-2.25 5.15h-11.25q-1.5 0-1.5-1.5v-13.5m4.5-1.5v3.75q0 0.75 0.75 0.75h4.5q0.75 0 0.75-0.75v-3.75m-1.75 1v2.5h0.75v-2.5h-0.75m-5.75 15.5v-6.75q0-0.75 0.75-0.75h7.5q0.75 0 0.75 0.75v3.25m0 1.75v1.75m-7.5-6h6m-6 2.25h6m-6 2.25h6" /></svg>
</button><button id="downloadButton" class="iconButton unselectable" data-i18n="[title]tooltips.io.download">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m12.75 10.5v3.75h-2.25l3.75 3.75 3.75-3.75h-2.25v-3.75h-3m-12.75-9q0-1.5 1.5-1.5h11.25l2.25 2.25v8.25m-2.25 6h-11.25q-1.5 0-1.5-1.5v-13.5m4.5-1.5v3.75q0 0.75 0.75 0.75h4.5q0.75 0 0.75-0.75v-3.75m-1.75 1v2.5h0.75v-2.5h-0.75m-5.75 15.5v-6.75q0-0.75 0.75-0.75h7.5q0.75 0 0.75 0.75v4.5m0 1.5v0.75m-7.5-6h6m-6 2.25h6m-6 2.25h6" /></svg>
</button><button id="uiThemeButton" class="iconButton unselectable" data-i18n="[title]tooltips.uiTheme">
<svg viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m4.5 3c4.5-4.5 13.5-3 13.5-0.375m-4.125 6.375c-1.875 0-3.375 1.5-1.875 1.875m3 2.625c3 1.5-4.5 6-10.5 4.5-7.5-3-4.5-12 0-15m9-0.75a1.5 1.5 90 0 0 0 3.75 1.5 1.5 90 0 0 0-3.75m-6 0.75a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m-3.75 4.5a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m1.5 5.25a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m6-0.75a1.5 1.5 90 0 0-0.75 4.5q2.25 0 3-1.875m7.5-14.625q-6 4.5-7.5 10.5l1.5 0.75q4.5-3.75 6-11.25m-7.5 10.5c-3 0-1.5 3-3 4.5 6 0 4.5-3 4.5-3.75m-3.75 2.25c0.75 1.5 1.5 0 1.5 1.275" /></svg>
</button><button id="chatButton" class="iconButton offToggle unselectable" data-i18n="[title]tooltips.toggleChat">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m3 18l6-4.5h6q3 0 3-3v-7.5q0-3-3-3h-12q-3 0-3 3v7.5q0 3 3 3h1.5l-1.5 4.5m11.25-12.75a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3m-5.25 0a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3m-5.25 0a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3"/><path d="m-2 16l22-14" /></svg>
</button><button id="immersionModeButton" class="iconButton offToggle unselectable" data-i18n="[title]tooltips.toggleImmersionMode">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 9c2-3 6-5 9-5s7 1 9 5m-18 0c2 3 6 5 9 5s7-1 9-5m-9-3a1 1 0 0 0 0 6 1 1 0 0 0 0 -6" /><path d="m-2 16l22-14" /></svg>
</button><button id="screenshotButton" class="iconButton unselectable" data-i18n="[title]tooltips.screenshot">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m3 8q0-1 1-1h1.5c1 0 1-2 2-2h3c1 0 1 2 2 2h1.5q1 0 1 1v4q0 1-1 1h-10q-1 0-1-1zm6-0.5a2 2 90 0 0 0 4 2 2 90 0 0 0 -4m-9-2.5v-2q0-1 1-1h2m12 0h2q1 0 1 1v2m0 8v2q0 1-1 1h-2m-12 0h-2q-1 0-1-1v-2"></path></svg>
</button><button id="settingsButton" class="iconButton unselectable" data-i18n="[title]tooltips.settings">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m9 5.5a1 1 90 0 0 0 7 1 1 90 0 0 0 -7m-7 5.5l-2-0.25v-3.5l2-0.25 0.75-1.5-1.25-1.75 2.25-2.25 1.75 1.25 1.5-0.75 0.25-2h3.5l0.25 2 1.5 0.75 1.75-1.25 2.25 2.25-1.25 1.75 0.75 1.5 2 0.25v3.5l-2 0.25-0.75 1.5 1.25 1.75-2.25 2.25-1.75-1.25-1.5 0.75-0.25 2h-3.5l-0.25-2-1.5-0.75-1.75 1.25-2.25-2.25 1.25-1.75-0.75-1.5" /></svg>
</button>
</div>
<div id="rightControls">
<?php if ($gameId == "2kki"): ?>
<div id="mapControls"></div>
<div id="explorerControls"></div>
<?php endif ?>
<div id="eventControls" class="multiplayerOnly accountRequired" style="display: none">
<button id="eventsButton" class="iconButton unselectable" data-i18n="[title]tooltips.events">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 9l6.5-1.5-1.5-2.5 2.5 1.5 1.5-6.5 1.5 6.5 2.5-1.5-1.5 2.5 6.5 1.5-6.5 1.5 1.5 2.5-2.5-1.5-1.5 6.5-1.5-6.5-2.5 1.5 1.5-2.5-6.5-1.5m7.75-6q-4.75 0-4.75 4.75m7.25-4.75q4.75 0 4.75 4.75m-7.25 7.25q-4.75 0-4.75-4.75m7.2656 4.75q4.7344 0 4.7344-4.75m-6-2.75a1 1 90 0 0 0 3 1 1 90 0 0 0 -3" /></svg>
</button>
</div>
<button id="controls-fullscreen" class="iconButton unselectable">
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M13.5 13.5H10m3.5 0V10m0 3.5l-4-4m.5-8h3.5m0 0V5m0-3.5l-4 4M5 1.5H1.5m0 0V5m0-3.5l4 4m-4 4.5v3.5m0 0H5m-3.5 0l4-4"></path></svg>
</button>
</div>
</div>
<div id="canvasContainer">
<canvas id="canvas" tabindex="-1"></canvas>
</div>
<div id="dpad" class="unselectable">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" class="baseColorFill">
<path id="dpad-up" data-key="ArrowUp" data-key-code="38" d="M48,5.8C48,2.5,45.4,0,42,0H29.9C26.6,0,24,2.4,24,5.8V24h24V5.8z" />
<path id="dpad-right" data-key="ArrowRight" data-key-code="39" d="M66.2,24H48v24h18.2c3.3,0,5.8-2.7,5.8-6V29.9C72,26.5,69.5,24,66.2,24z" />
<path id="dpad-down" data-key="ArrowDown" data-key-code="40" d="M24,66.3c0,3.3,2.6,5.7,5.9,5.7H42c3.3,0,6-2.4,6-5.7V48H24V66.3z" />
<path id="dpad-left" data-key="ArrowLeft" data-key-code="37" d="M5.7,24C2.4,24,0,26.5,0,29.9V42c0,3.3,2.3,6,5.7,6H24V24H5.7z" />
<rect id="dpad-center" x="24" y="24" width="24" height="24" />
</svg>
</div>
<div id="apad" class="unselectable">
<div id="apad-escape" class="baseColorBg apadCircBtn apadBtn" data-key="Escape" data-key-code="27"></div>
<div id="apad-enter" class="baseColorBg apadCircBtn apadBtn" data-key="Enter" data-key-code="13"></div>
<?php if ($gameId != "yume"): ?>
<div id="apad-shift" class="baseColorBg apadRectBtn apadBtn" data-key="Shift" data-key-code="16"></div>
<?php endif ?>
<?php if ($gameId == "yume" || $gameId == "prayers" || $gameId == "someday" || $gameId == "braingirl"): ?>
<div id="apad-numbers" class="apadBtnContainer">
<div id="apad-1" class="baseColorBg apadSqBtn apadBtn" data-key="1" data-key-code="49"></div>
<?php if ($gameId == "braingirl"): ?>
<div id="apad-2" class="baseColorBg apadSqBtn apadBtn" data-key="2" data-key-code="50"></div>
<?php endif ?>
<div id="apad-3" class="baseColorBg apadSqBtn apadBtn" data-key="3" data-key-code="51"></div>
<?php if ($gameId != "braingirl"): ?>
<div id="apad-5" class="baseColorBg apadSqBtn apadBtn" data-key="5" data-key-code="53"></div>
<?php endif ?>
<div id="apad-9" class="baseColorBg apadSqBtn apadBtn" data-key="9" data-key-code="57"></div>
</div>
<?php endif ?>
</div>
</div>
</div>
<div id="chatboxContainer" class="container" style="display: none">
<div id="chatbox" class="allChat">
<div id="chatboxInfo">
<div id="onlineInfo" class="info hidden">
<span id="connStatus" class="infoContainer unselectable"><span id="connStatusIcon">●</span>
<label id="connStatusText" class="infoText">Disconnected</label></span><span id="playerCountLabel" class="playerCountLabel infoLabel multiplayerOnly unselectable"></span><span id="mapPlayerCountLabel" class="playerCountLabel infoLabel multiplayerOnly unselectable hidden"></span><span id="immersionModeLabel" class="infoLabel multiplayerOnly unselectable" data-i18n="[html]chatbox.immersionMode">Immersion Mode</span>
</div>
<div id="location" class="info hidden">
<span id="locationLabel" class="infoLabel nowrap" data-i18n="[html]chatbox.location">Location: </span><span id="locationText" class="infoText nofilter"></span>
</div>
</div>
<div id="chatboxContent">
<div id="chatboxTabs">
<div id="chatboxTabChat" class="chatboxTab active" data-tab-section="chat">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.chat">Chat</label>
<div id="unreadMessageCountContainer" class="hidden">
<div id="unreadMessageCount">
<label id="unreadMessageCountLabel">0</label>
</div>
</div>
</div>
<div id="chatboxTabPlayers" class="chatboxTab" data-tab-section="players">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.players">Players</label>
</div>
<div id="chatboxTabParties" class="chatboxTab" data-tab-section="parties">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.parties">Parties</label>
</div>
</div>
<div id="chat" class="chatboxTabSection">
<div id="chatHeader" class="tabHeader">
<div id="chatTabs" class="subTabs">
<div id="chatTabAll" class="chatTab subTab active">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.all">All</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabMap" class="chatTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.map">Map</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabGlobal" class="chatTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.global">Global</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabParty" class="chatTab partySubTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.party">Party</small>
<div class="subTabBg"></div>
</div>
</div>
<div id="chatButtons" class="tabButtons">
<button id="ownGlobalMessageLocationButton" class="iconButton offToggle unselectable" data-i18n="[title]tooltips.chat.toggleOwnGlobalMessageLocation">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m3 5q1-5 6-5t6 5-6 11q-7-6-6-11m6-2a1 1 0 0 0 0 5 1 1 0 0 0 0 -5m-2 11c-1 0-3 1-3 2s2 2 5 2 5-1 5-2-2-2-3-2" /><path d="m-2 16l22-14" />
</svg>
</button>
<button id="clearChatButton" class="iconButton unselectable" data-i18n="[title]tooltips.chat.clearChat">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m3 18l6-4.5h6q3 0 3-3v-7.5q0-3-3-3h-12q-3 0-3 3v7.5q0 3 3 3h1.5l-1.5 4.5m9.5-14.75l-7 7m0-7l7 7" />
</svg>
</button>
</div>
</div>
<div id="messages" class="chatboxTabContent scrollableContainer"></div>
</div>
<div id="players" class="chatboxTabSection hidden">
<div id="playersHeader" class="tabHeader">
<div id="playersTabs" class="subTabs">
<div id="playersTabMap" class="playersTab subTab active">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.players.tab.map">Map</small>
<div class="subTabBg"></div>
</div>
<div id="playersTabParty" class="playersTab partySubTab subTab">
<small class="playersTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.players.tab.party">Party</small>
<div class="subTabBg"></div>
</div>
</div>
<div id="playersButtons" class="tabButtons"></div>
</div>
<div id="playerList" class="playerList chatboxTabContent scrollableContainer"></div>
<div id="partyPlayerList" class="playerList chatboxTabContent scrollableContainer"></div>
</div>
<div id="parties" class="chatboxTabSection hidden">
<div id="partiesHeader" class="tabHeader">
<div id="partiesTabs" class="subTabs"></div>
<div id="partiesButtons" class="tabButtons">
<button id="createPartyButton" class="iconButton unselectable" data-i18n="[title]tooltips.parties.createParty">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 4a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7 1.625 0 2.5313 0.6875 2.75 1.125v0.625h-3v3.5h3v2.25q-3.2344 1.2344-6.75-0.5m0-17a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7 0.375 0 0.5 0 1.25 0.125-0.25 1.625 1.25 3.125 2.5 3.125q0.125 0.25 0.125 0.5c-1.75 0-3.625 1-3.875 4.125q-2.375 0-4-0.875m12-13a1 1 90 0 1 0 5 1 1 90 0 1 0-5m4 11.75c-0.125-3.625-1-5.75-4-5.75-0.375 0-0.5 0-1.25 0.125 0.25 1.625-1.25 3.125-2.5 3.125q-0.125 0.25-0.125 0.5c1.75 0 2.5 0.875 2.625 1v-2h3.5v3h1.75m-2 6.25v-3h3v-3h-3v-3h-3v3h-3v3h3v3h3" />
</svg>
</button>
<button id="disbandPartyButton" class="iconButton unselectable" data-i18n="[title]tooltips.parties.disbandParty">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 4c0.4375 0 1.375 0.1875 1.9062 0.875l-1.9062 1.875-1.9063-1.875c0.6563-0.75 1.4688-0.875 1.9063-0.875m-4 11.25l4-4 3.9375 3.9375s0.0625 0.25 0.0625 1.8125q-4 2-8 0-0.0625-1.5 0-1.75m0-15.25m1.6562 4.4063c2.2813-2.4688-0.4687-5.2813-2.7812-4.1563q-0.5 0.3125-0.7813 0.625l3.5625 3.5313m-5.6562 8.5937c0.5 0.25 0.9375 0.4375 1.25 0.5l4.5-4.5-2.875-2.875c-3.1875 0.5-2.875 6.125-2.875 6.875m10.344-8.5937c-2.2813-2.4688 0.4687-5.2813 2.7812-4.1563q0.5 0.3125 0.7813 0.625l-3.5625 3.5313m5.6562 8.5937c-0.5 0.25-0.9375 0.4375-1.25 0.5l-4.5-4.5 2.875-2.875c3.1875 0.5 2.875 6.125 2.875 6.875m-14-12l6 6 7-7 2 2-7 7 7 7-2 2-7-7-7 7-2-2 7-7-6-6 2-2" />
</svg>
</button>
</div>
</div>
<div id="partyList" class="partyList chatboxTabContent scrollableContainer"></div>
</div>
</div>
<div id="chatInputContainer" class="multiplayerOnly" style="display: none">
<form action="javascript:chatInputActionFired()">
<input id="chatInput" type="text" autocomplete="off" maxlength="150" disabled="true" />
<div id="globalChatInputOverlay"></div>
<div id="chatBorder"></div>
</form>
<div id="globalCooldownIcon" class="icon">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
<circle class="bgCircle" cx="9" cy="9" r="9" />
<circle class="timerCircle" cx="9" cy="9" r="9" />
</svg>
</div>
<button id="globalMessageButton" class="iconButton fadeToggle unselectable" data-i18n="[title]tooltips.toggleGlobalMessage">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
<path d="m9 0a1 1 0 0 0 0 18 1 1 0 0 0 0-18v18q-10-9 0-18 10 9 0 18m-7.5-4q7.5-3 15 0m-15-10q7.5 2 15 0m-16.5 5h18" />
</svg>
</button>
</div>
<div id="ynomojiContainer" class="scrollableContainer multiplayerOnly hidden"></div>
<div id="enterNameContainer" class="multiplayerOnly">
<span id="enterNameInstruction">
<span data-i18n="[html]chatbox.chat.nickname.header">You must set a nickname before you can chat.</span>
<br>
<small>
<span data-i18n="[html]chatbox.chat.nickname.rule.maxLength">* Maximum 12 characters</span>
<br>
<span data-i18n="[html]chatbox.chat.nickname.rule.alphanumeric">* Alphanumeric characters only</span>
</small>
</span>
<form id="enterNameForm" action="javascript:chatNameCheck()">
<input id="nameInput" type="text" autocomplete="off" maxlength="12" />
</form>
</div>
</div>
</div>
<div id="modalContainer" class="hidden">
<div id="loginModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.login.title">Login</h1>
</div>
<div class="modalContent">
<form id="loginForm">
<ul class="formControls">
<li class="formControlRow">
<label for="loginUsername" class="unselectable" data-i18n="[html]modal.login.fields.username">Username</label><input id="loginUsername" name="user" type="text" autocomplete="off" maxlength="12" />
</li>
<li class="formControlRow">
<label for="loginPassword" class="unselectable" data-i18n="[html]modal.login.fields.password">Password</label><input id="loginPassword" name="password" type="password" autocomplete="off" />
</li>
<li id="loginErrorRow" class="formControlRow hidden">
<label id="loginError"></label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.login.submit">Submit</button>
</form>
</div>
<div class="modalFooter">
<span class="infoLabel" data-i18n="[html]modal.login.registerPrompt">Don't have an account? </span><a href="javascript:void(0);" onclick="openModal('registerModal')" data-i18n="[html]modal.login.register">Register</a>
</div>
</div>
<div id="registerModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.register.title">Register</h1>
</div>
<div class="modalContent">
<form id="registerForm">
<ul class="formControls">
<!--<li class="formControlRow">
<label for="registerEmail" class="unselectable" data-i18n="[html]modal.register.fields.email">Email</label><input id="registerEmail" type="text" autocomplete="off" />
</li>-->
<li class="formControlRow">
<label for="registerUsername" class="unselectable" data-i18n="[html]modal.register.fields.username">Username</label><input id="registerUsername" name="user" type="text" autocomplete="off" maxlength="12" />
</li>
<li class="formControlRow">
<label for="registerPassword" class="unselectable" data-i18n="[html]modal.register.fields.password">Password</label><input id="registerPassword" name="password" type="password" autocomplete="off" />
</li>
<li class="formControlRow">
<label for="registerConfirmPassword" class="unselectable" data-i18n="[html]modal.register.fields.confirmPassword">Confirm Password</label><input id="registerConfirmPassword" type="password" autocomplete="off" />
</li>
<li id="registerErrorRow" class="formControlRow hidden">
<label id="registerError"></label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.register.submit">Submit</button>
</form>
</div>
<div class="modalFooter">
<span class="infoLabel" data-i18n="[html]modal.register.loginPrompt">Already have an account? </span><a href="javascript:void(0);" onclick="openModal('loginModal')" data-i18n="[html]modal.register.login">Login</a>
</div>
</div>
<div id="settingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.settings.title">Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label for="lang" class="unselectable" data-i18n="[html]modal.settings.fields.lang">Language</label>
<div>
<label id="translationInstruction" class="nofilter hidden"><a id="translationLink" target="_blank" data-i18n="[html]instruction.translation">Translation Work Needed</a></label>
<div>
<select id="lang">
<option value="en">English</option>
<option value="ja">日本語</option>
<option value="zh">中文</option>
<option value="ko">한국어</option>
<option value="es">Español</option>
<option value="pt">Português</option>
<option value="fr">Français</option>
<option value="de">Deutsch</option>
<option value="ru">Русский</option>
</select>
</div>
<label id="noGameLocInstruction" class="hidden" data-i18n="[html]instruction.noGameLoc">* Game Localization Unsupported</label>
</div>
</li>
<!--<li class="formControlRow">
<label for="locationVisibility" class="unselectable" data-i18n="[html]modal.settings.fields.locationVisibility.label">In-Game Location Visibility</label>
<div>
<select id="locationVisibility">
<option value="0" data-i18n="modal.settings.fields.locationVisibility.values.private">Private</option>
<option value="1" data-i18n="modal.settings.fields.locationVisibility.values.friends">Friends</option>
<option value="2" data-i18n="modal.settings.fields.locationVisibility.values.public">Public</option>
</select>
</div>
</li>-->
<li class="formControlRow">
<label for="nametagButton" class="unselectable" data-i18n="[html]modal.settings.fields.toggleNametags">Nametags</label>
<div>
<button id="nametagButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="playerSoundsButton" class="unselectable" data-i18n="[html]modal.settings.fields.togglePlayerSounds">Player Sounds</label>
<div>
<button id="playerSoundsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow desktopOnly">
<label for="tabToChatButton" class="unselectable" data-i18n="[html]modal.settings.fields.toggleTabToChat">Press Tab to Chat</label>
<div>
<button id="tabToChatButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="toggleRankingsButton" class="unselectable" data-i18n="[html]modal.settings.fields.toggleRankings">Rankings</label>
<div>
<button id="toggleRankingsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="floodProtectionButton" class="unselectable" data-i18n="[html]modal.settings.fields.toggleFloodProtection">Flood Protection</label>
<div>
<button id="floodProtectionButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<span></span>
<button id="notificationSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.notificationSettings" onclick="openModal('notificationSettingsModal', null, 'settingsModal')">Notification Settings</button>
</li>
<li class="formControlRow accountRequired">
<span></span>
<button id="accountSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.accountSettings">Account Settings</button>
</li>
</ul>
</div>
</div>
<div id="notificationSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.notificationSettings.title">Notification Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label for="notificationsButton" class="unselectable" data-i18n="[html]modal.notificationSettings.fields.toggleNotifications">Notifications</label>
<div>
<button id="notificationsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="notificationScreenPosition" class="unselectable" data-i18n="[html]modal.notificationSettings.fields.screenPosition.label">Screen Position</label>
<div>
<select id="notificationScreenPosition">
<option value="bottomLeft" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.bottomLeft">Bottom Left</option>
<option value="bottomRight" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.bottomRight">Bottom Right</option>
<option value="topLeft" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.topLeft">Top Left</option>
<option value="topRight" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.topRight">Top Right</option>
</select>
</div>
</li>
</ul>
</div>
</div>
<div id="accountSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.accountSettings.title">Account Settings</h1>
</div>
<div class="modalContent itemContainer">
<ul class="formControls">
<li class="formControlRow">
<label for="accountBadgeButton" class="unselectable" data-i18n="[html]modal.accountSettings.fields.badge">Badge</label>
<div>
<div id="accountBadgeButton" class="badgeItem item unselectable"></div>
</div>
</li>
<li class="formControlRow">
<label for="saveSyncButton" class="unselectable" data-i18n="[html]modal.accountSettings.fields.toggleSaveSync">Save Sync</label>
<div>
<button id="saveSyncButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li id="saveSyncSlotIdRow" class="formControlRow hidden">
<label for="saveSyncSlotId" class="unselectable" data-i18n="[html]modal.accountSettings.fields.saveSyncSlotId.label">Save Sync Slot ID</label>
<div>
<select id="saveSyncSlotId">
<option value="0" data-i18n="[html]modal.accountSettings.fields.saveSyncSlotId.values.0">None</option>
</select>
</div>
</li>
<li id="saveSyncSlotIdRow" class="formControlRow">
<span></span>
<button id="clearSaveSyncButton" class="unselectable" type="button" data-i18n="[html]modal.accountSettings.fields.clearSaveSync">Clear Save Sync Data</button>
</li>
</ul>
</div>
</div>
<div id="badgesModal" class="modal fullscreenModal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.badges.title">Badge</h1>
<div id="badgeControls" class="uiControls">
<div class="uiControl">
<label for="badgeUnlockStatus" class="unselectable" data-i18n="[html]modal.badges.fields.unlockStatus.label">Unlock Status: </label>
<select id="badgeUnlockStatus">
<option value="" data-i18n="[html]modal.badges.fields.unlockStatus.values.all">All</option>
<option value="0" data-i18n="[html]modal.badges.fields.unlockStatus.values.0">Locked</option>
<option value="1" data-i18n="[html]modal.badges.fields.unlockStatus.values.1">Unlocked</option>
</select>
</div>
<div class="uiControl">
<label for="badgeSearch" class="unselectable" data-i18n="[html]modal.badges.fields.search">Search: </label>
<input id="badgeSearch" type="text" autocomplete="off" />
</div>
</div>
</div>
<div class="modalContent itemContainer"></div>
<div class="modalFooter">
<button id="badgeGalleryButton" class="unselectable" type="button" data-i18n="[html]modal.badges.manageBadgeGallery">Manage Badge Gallery</button>
<?php if ($enableBadgeTools): ?>
<button type="button" onclick="openModal('badgeToolsModal')">Badge Tools</button>
<?php endif ?>
</div>
</div>
<div id="badgeGalleryModal" class="modal semiWideModal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.badgeGallery.title">Manage Badge Gallery</h1>
<div id="badgeGalleryInfoContainer" class="modalInfoContainer">
<label id="totalBc">0 Badges</label>
<label id="totalBp">0 BP</label>
</div>
<div id="badgeGalleryRowProgressContainer" class="badgeGalleryProgressContainer">
<label id="badgeGalleryRowProgressLabel" class="progressBarHeading" data-i18n="[html]modal.badgeGallery.badgeGalleryRowProgress">Next Row Upgrade (BP)</label>
<div id="badgeGalleryRowProgressBarContainer" class="progressBarContainer">
<label id="badgeGalleryRowProgressBarLabel" class="progressBarLabel altText unselectable"></label>
<div id="badgeGalleryRowProgressBar" class="progressBar"></div>
</div>
</div>
<div id="badgeGalleryColProgressContainer" class="badgeGalleryProgressContainer">
<label id="badgeGalleryColProgressLabel" class="progressBarHeading" data-i18n="[html]modal.badgeGallery.badgeGalleryColProgress">Next Column Upgrade (Badges)</label>
<div id="badgeGalleryColProgressBarContainer" class="progressBarContainer">
<label id="badgeGalleryColProgressBarLabel" class="progressBarLabel altText unselectable"></label>
<div id="badgeGalleryColProgressBar" class="progressBar"></div>
</div>
</div>
</div>
<div class="modalContent itemContainer itemRowContainer smallItemContainer"></div>
</div>
<div id="uiThemesModal" class="modal fullscreenModal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.uiTheme.title">UI Theme</h1>
</div>
<div class="modalContent itemContainer"></div>
<div class="modalFooter">
<div class="uiControl">
<label for="fontStyle" class="unselectable" data-i18n="[html]fontStyle.label">Font Style:</label>
<select id="fontStyle" class="fontStyle">
<option value="0" data-i18n="[html]fontStyle.values.style1">Style 1</option>
<option value="1" data-i18n="[html]fontStyle.values.style2">Style 2</option>
<?php if ($gameId !== "someday"): ?>
<option value="2" data-i18n="[html]fontStyle.values.style3">Style 3</option>
<?php endif ?>
<?php if ($gameId !== "deepdreams"): ?>
<option value="3" data-i18n="[html]fontStyle.values.style4">Style 4</option>
<?php endif ?>
<?php if ($gameId == "yume" || $gameId == "2kki" || $gameId == "flow"): ?>
<option value="4" data-i18n="[html]fontStyle.values.style5">Style 5</option>
<option value="5" data-i18n="[html]fontStyle.values.style6">Style 6</option>
<option value="6" data-i18n="[html]fontStyle.values.style7">Style 7</option>
<?php endif ?>
</select>
</div>
</div>
</div>
<div id="createPartyModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle">
<span class="createTitle" data-i18n="[html]modal.createParty.title.create">Create Party</span>
<span class="updateTitle" data-i18n="[html]modal.createParty.title.update">Update Party</span>
</h1>
</div>
<div class="modalContent">
<form id="createPartyForm" class="fullWidth">
<ul class="formControls">
<li class="formControlRow">
<label for="partyName" class="unselectable" data-i18n="[html]modal.createParty.fields.partyName">Party Name</label><input id="partyName" name="name" type="text" autocomplete="off" />
</li>
<li class="formControlRow">
<div class="textareaContainer">
<label for="partyDescription" class="unselectable" data-i18n="[html]modal.createParty.fields.description">Description</label>
<textarea id="partyDescription" name="description" class="autoExpand"></textarea>
</div>
</li>
<li class="formControlRow">
<label for="publicPartyButton" class="unselectable" data-i18n="[html]modal.createParty.fields.public">Public</label>
<div>
<button id="publicPartyButton" class="checkboxButton inverseToggle unselectable" type="button"><span></span></button>
<input type="checkbox" name="public" style="display: none" checked />
</div>
</li>
<li class="formControlRow hidden">
<div>
<a id="showHidePartyPasswordLink" href="javascript:void(0);" class="showHidePasswordLink">
<span data-i18n="[html]modal.createParty.showPassword">Show Password</span>
<span data-i18n="[html]modal.createParty.hidePassword">Hide Password</span>
</a>
<div>
<label for="partyPassword" class="unselectable" data-i18n="[html]modal.createParty.fields.password">Password</label><input id="partyPassword" name="pass" type="password" autocomplete="off" />
</div>
</div>
</li>
<li class="formControlRow">
<label for="partyThemeButton" class="unselectable" data-i18n="[html]modal.createParty.fields.theme">Theme</label>
<div>
<div id="partyThemeButton" class="uiThemeItem item unselectable"></div>
<input id="partyTheme" type="hidden" name="theme" />
</div>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.createParty.submit">Submit</button>
</form>
</div>
</div>
<div id="joinPrivatePartyModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.joinPrivateParty.title">Join Private Party</h1>
</div>
<div class="modalContent">
<form id="joinPrivatePartyForm">
<ul class="formControls">
<li class="formControlRow">
<div>
<a id="showHidePrivatePartyPasswordLink" href="javascript:void(0);" class="showHidePasswordLink">
<span data-i18n="[html]modal.joinPrivateParty.showPassword">Show Password</span>
<span data-i18n="[html]modal.joinPrivateParty.hidePassword">Hide Password</span>
</a>
<div>
<label for="partyPassword" class="unselectable" data-i18n="[html]modal.joinPrivateParty.fields.password">Password</label><input id="privatePartyPassword" name="pass" type="password" autocomplete="off" />
</div>
</div>
</li>
<li id="joinPrivatePartyFailed" class="formControlRow hidden">
<label data-i18n="[html]modal.joinPrivateParty.incorrectPassword">Incorrect Password: Please try again.</label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.joinPrivateParty.submit">Submit</button>
</form>
</div>
</div>
<div id="partyModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle"></h1>
</div>
<div class="modalContent">
<div id="partyModalDescriptionContainer">
<div class="infoIcon icon fillIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0 -18m-2 15.5v-1q1 0 1-1v-4q0-1-1-1v-1h4v6q0 1 1 1v1m-3-9c-1.625 0-2-1.5-2-2s0.375-2 2-2 2 1.5 2 2-0.375 2-2 2" />
</svg>
</div>
<div id="partyModalDescription" class="infoText"></div>
</div>
<div id="partyModalPlayerListContainer" class="scrollableContainer">
<h4 id="partyModalOnlineCount" class="partyModalPlayerCount infoText">Online - 0</h4>
<div id="partyModalOnlinePlayerList" class="playerList"></div>
<h4 id="partyModalOfflineCount" class="partyModalPlayerCount infoText">Offline - 0</h4>
<div id="partyModalOfflinePlayerList" class="playerList"></div>
</div>
</div>
</div>
<div id="eventsModal" class="modal accountRequired hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.events.title">Expeditions</h1>
</div>
<div class="modalContent">
<div id="expRankInfoContainer" class="modalInfoContainer">
<label id="totalExp">0 ExP</label>
<div id="expRankContainer">
<label id="expRank">Rank: Novice</label>
<img id="expRankBadge" class="badge" style="display: none" />
</div>
</div>
<div id="rankExpContainer">
<label id="rankExpLabel" class="progressBarHeading" data-i18n="[html]modal.events.rankExp">Next Rank</label>
<div id="rankExpBarContainer" class="progressBarContainer">
<label id="rankExpBarLabel" class="progressBarLabel altText unselectable"></label>
<div id="rankExpBar" class="progressBar"></div>
</div>
</div>
<div id="eventPeriodInfoContainer">
<h3 id="eventPeriod">Season 1</h3>
<label id="eventPeriodEndDateLabel">Ends</label>
</div>
<label id="weekExpLabel" class="progressBarHeading" data-i18n="[html]modal.events.weekExp">ExP This Week</label>
<div id="weekExpBarContainer" class="progressBarContainer">
<label id="weekExpBarLabel" class="progressBarLabel altText unselectable"></label>
<div id="weekExpBar" class="progressBar"></div>
</div>
<div id="eventTabs" class="subTabs">
<div id="eventTabLocations" class="eventTab subTab active" data-tab-list="locations">
<small class="subTabLabel infoLabel unselectable" data-i18n="[html]modal.events.tabs.locations">Locations</small>
<div class="subTabBg"></div>
</div>
<div id="eventTabVms" class="eventTab subTab" data-tab-list="vms">
<small class="subTabLabel infoLabel unselectable" data-i18n="[html]modal.events.tabs.vms">Vending Machine</small>
<div class="subTabBg"></div>
</div>
</div>
<div id="eventLocationsList" class="eventList scrollableContainer"></div>
<div id="eventVmsList" class="eventList scrollableContainer hidden"></div>
</div>
</div>
<div id="rankingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.rankings.title">Rankings</h1>
</div>
<div class="modalContent">
<div id="rankingCategoryTabs" class="modalTabsContainer"></div>
<div id="rankingSubCategoryTabs" class="subTabs"></div>
<table id="rankingsTable">
<thead>
<tr>
<th>#</th>
<th>Player</th>
<th id="rankingValueHeader"></th>
</tr>
</thead>
<tbody id="rankings"></tbody>
</table>
<div id="rankingsPagination"></div>
</div>
</div>
<?php if ($enableBadgeTools): ?>
<div id="badgeToolsModal" class="modal wideModal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle">
<span>Badge Tools</span>
</h1>
</div>
<div class="modalContent">
<form id="badgeToolsForm" enctype="multipart/form-data" method="post" class="fullWidth" @submit="validateForm">
<h3>Badge</h3>
<div class="modalTabsContainer">
<template :key="b" v-for="(badge, b) in badges">
<div class="modalTab" v-if="!badge.deleted" :class="{ active: b === badgeIndex }" @click="badgeIndex = b">
<label class="modalTabLabel">{{badge.badgeId}} ({{badge.gameName}})</label>
</div>
</template>
<div class="modalTab" @click="addBadge()"><label class="modalTabLabel">+</label></div>
</div>
<template :key="b" v-for="(badge, b) in badges">
<badge v-if="!badge.deleted" v-show="badge.index === badgeIndex" :index="b" />
</template>
<button type="button" @click="exportZip()">Export</button>
</form>
</div>
</div>
<template id="badgeTemplate">
<div>
<ul class="formControls flexFormControls">
<li class="formControlRow fullWidth">
<label class="unselectable">Badge ID</label><input v-model="badgeId" type="text" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Game</label>
<select v-model="gameId">
<option :key="gameOption.key" :value="gameOption.key" v-for="gameOption in gameOptions">{{gameOption.label}}</option>
</select>
</li>
<li class="formControlRow" v-if="groupOptions.length">
<label class="unselectable">Group</label>
<select v-model="group">
<option :key="groupOption.key" :value="groupOption.key" v-for="groupOption in groupOptions">{{groupOption.label}}</option>
</select>
</li>
<li class="formControlRow">
<label class="unselectable">Order</label>
<input v-model="order" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Map Order</label>
<input v-model="mapOrder" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Badge Name</label><input v-model="name" type="text" autocomplete="off" />
</li>
<li class="formControlRow fullWidth">
<div class="textareaContainer">
<label class="unselectable">Description</label>
<textarea v-model="description" class="autoExpand"></textarea>
</div>
</li>
<li class="formControlRow fullWidth">
<div class="textareaContainer">
<label class="unselectable">Condition</label>
<textarea v-model="condition" class="autoExpand"></textarea>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Artist</label><input v-model="art" type="text" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Animated</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: animated }" type="button" @click="animated = !animated"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">BP</label>
<select v-model="bp">
<option :key="i" v-for="i in 11">{{(i - 1) * 5}}</option>
</select>
</li>
<li class="formControlRow fullWidth">
<label class="unselectable">Requirement Type</label>
<select id="badgeGroup" v-model="reqType">
<option value="">None (Mod Granted)</option>
<option value="tag">Tag</option>
<option value="tags">Multiple Tags</option>
<option value="timeTrial">Time Trial</option>
</select>
</li>
<li class="formControlRow" v-if="reqType === 'timeTrial'">
<label class="unselectable">Required Int</label>
<input v-model="reqInt" type="number" min="0" max="99999" autocomplete="off" />
</li>
<li class="formControlRow fullWidth" v-if="reqType === 'tags'">
<label class="unselectable">Tag Requirement Count</label>
<input v-model="reqCount" type="number" min="0" :max="reqStrings.length" autocomplete="off" />
</li>
<li class="formControlRow fullWidth">
<label class="unselectable">Map ID</label>
<input v-model="map" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Secret</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: secret }" type="button" @click="secret = !secret"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Secret Map</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: secretMap }" type="button" @click="secretMap = !secretMap"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Secret Condition</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: secretCondition }" type="button" @click="secretCondition = !secretCondition"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Hidden</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: hidden }" type="button" @click="hidden = !hidden"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Parent Badge ID</label><input v-model="parent" type="text" autocomplete="off" />
</li>
<li class="formControlRow fullWidth">
<label class="unselectable">Overlay</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlay }" type="button" @click="overlay = !overlay"><span></span></button>
</div>
</li>
<template v-if="overlay">
<li class="formControlRow">
<label class="unselectable">Gradient</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlayTypeGradient }" type="button" @click="overlayTypeGradient = !overlayTypeGradient"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Multiply</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlayTypeMultiply }" type="button" @click="overlayTypeMultiply = !overlayTypeMultiply"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Mask</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlayTypeMask }" type="button" @click="overlayTypeMask = !overlayTypeMask"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Dual</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlayTypeDual }" type="button" @click="overlayTypeDual = !overlayTypeDual"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">Location</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: overlayTypeLocation }" type="button" @click="overlayTypeLocation = !overlayTypeLocation"><span></span></button>
</div>
</li>
</template>
<li class="formControlRow">
<label class="unselectable">Batch</label><input v-model="batch" type="number" min="0" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Dev</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: dev }" type="button" @click="dev = !dev"><span></span></button>
</div>
</li>
<li class="formControlRow">
<button type="button" @click="deleteBadge()">Delete</button>
</li>
</ul>
<h3>Tag</h3>
<div class="modalTabsContainer" v-if="reqType === 'tags'">
<template :key="t" v-for="(tag, t) in tags">
<div class="modalTab" v-if="!tag.deleted" :class="{ active: t === tagIndex }" @click="tagIndex = t">
<label class="modalTabLabel">{{tag.tagId}}</label>
</div>
</template>
<div class="modalTab" @click="addTag();"><label class="modalTabLabel">+</label></div>
</div>
<template :key="t" v-for="(tag, t) in tags">
<tag v-if="!tag.deleted" v-show="t === tagIndex" :index="t" />
</template>
</div>
</template>
<template id="tagTemplate">
<ul class="formControls flexFormControls">
<li class="formControlRow fullWidth">
<label class="unselectable">Tag ID</label><input v-model="tagId" type="text" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Map ID</label>
<input v-model="map" type="number" min="0" max="9999" autocomplete="off" />
</li>
<template v-if="trigger !== 'teleport' && trigger !== 'coords'">
<li class="formControlRow" :class="{ fullWidth: mapCoords }">
<label class="unselectable">Map Coords</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: mapCoords }" type="button" @click="mapCoords = !mapCoords"><span></span></button>
</div>
</li>
<template v-if="mapCoords">
<li class="formControlRow">
<label class="unselectable">Map X1</label>
<input v-model="mapX1" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Map Y1</label>
<input v-model="mapY1" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Map X2</label>
<input v-model="mapX2" type="number" min="0" max="9999" autocomplete="off" />
</li>
<li class="formControlRow">
<label class="unselectable">Map Y2</label>
<input v-model="mapY2" type="number" min="0" max="9999" autocomplete="off" />
</li>
</template>
</template>
<li class="formControlRow fullWidth">
<label class="unselectable">Switch Condition</label>
<select v-model="switchMode">
<option :key="switchModeOption.key" :value="switchModeOption.key" v-for="switchModeOption in switchModeOptions">{{switchModeOption.label}}</option>
</select>
</li>
<template v-if="switchMode">
<li class="formControlRow" v-if="switchMode === 'switch'">
<label class="unselectable">Switch</label>
<div>
<label class="unselectable">ID</label>
<input v-model="switchId" type="number" min="0" max="99999" autocomplete="off" />
</div>
<label class="unselectable">Value</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: switchValue }" type="button" @click="switchValue = !switchValue"><span></span></button>
</div>
</li>
<template v-else-if="switchMode === 'switches'">
<li class="formControlRow fullWidth" v-for="(switchId, s) in switchIds">
<label class="unselectable">Switch {{s + 1}}</label>
<div>
<label class="unselectable">ID</label>
<input v-model="switchIds[s]" type="text" autocomplete="off" />
</div>
<label class="unselectable">Value</label>
<div>
<button class="checkboxButton unselectable" :class="{ toggled: switchValues[s] }" type="button" @click="switchValues[s] = !switchValues[s]"><span></span></button>
</div>