-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChainReaction.html
More file actions
598 lines (588 loc) · 44.5 KB
/
ChainReaction.html
File metadata and controls
598 lines (588 loc) · 44.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
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
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/styleBlue.css" />
<link rel="stylesheet" href="css/styleGreen.css" />
</head>
<body>
<main>
<div class="intro">
<svg id="introText" width="1138" height="125" viewBox="0 0 1138 125" fill="none"
xmlns="http://www.w3.org/2000/svg">
<mask id="path-1-outside-1" maskUnits="userSpaceOnUse" x="0.450012" y="0.850006" width="1138"
height="124" fill="black">
<rect fill="white" x="0.450012" y="0.850006" width="1138" height="124" />
<path
d="M4.45001 66.65C4.45001 56.45 6.75001 47.3 11.35 39.2C15.95 31 22.2 24.6 30.1 20C38.1 15.4 46.95 13.1 56.65 13.1C68.05 13.1 78 15.85 86.5 21.35C95 26.85 101.2 34.65 105.1 44.75H88.75C85.85 38.45 81.65 33.6 76.15 30.2C70.75 26.8 64.25 25.1 56.65 25.1C49.35 25.1 42.8 26.8 37 30.2C31.2 33.6 26.65 38.45 23.35 44.75C20.05 50.95 18.4 58.25 18.4 66.65C18.4 74.95 20.05 82.25 23.35 88.55C26.65 94.75 31.2 99.55 37 102.95C42.8 106.35 49.35 108.05 56.65 108.05C64.25 108.05 70.75 106.4 76.15 103.1C81.65 99.7 85.85 94.85 88.75 88.55H105.1C101.2 98.55 95 106.3 86.5 111.8C78 117.2 68.05 119.9 56.65 119.9C46.95 119.9 38.1 117.65 30.1 113.15C22.2 108.55 15.95 102.2 11.35 94.1C6.75001 86 4.45001 76.85 4.45001 66.65Z" />
<path
d="M166.219 35.3C172.419 35.3 178.019 36.65 183.019 39.35C188.019 41.95 191.919 45.9 194.719 51.2C197.619 56.5 199.069 62.95 199.069 70.55V119H185.569V72.5C185.569 64.3 183.519 58.05 179.419 53.75C175.319 49.35 169.719 47.15 162.619 47.15C155.419 47.15 149.669 49.4 145.369 53.9C141.169 58.4 139.069 64.95 139.069 73.55V119H125.419V8.00001H139.069V48.5C141.769 44.3 145.469 41.05 150.169 38.75C154.969 36.45 160.319 35.3 166.219 35.3Z" />
<path
d="M216.266 77.6C216.266 69.2 217.966 61.85 221.366 55.55C224.766 49.15 229.416 44.2 235.316 40.7C241.316 37.2 247.966 35.45 255.266 35.45C262.466 35.45 268.716 37 274.016 40.1C279.316 43.2 283.266 47.1 285.866 51.8V36.8H299.666V119H285.866V103.7C283.166 108.5 279.116 112.5 273.716 115.7C268.416 118.8 262.216 120.35 255.116 120.35C247.816 120.35 241.216 118.55 235.316 114.95C229.416 111.35 224.766 106.3 221.366 99.8C217.966 93.3 216.266 85.9 216.266 77.6ZM285.866 77.75C285.866 71.55 284.616 66.15 282.116 61.55C279.616 56.95 276.216 53.45 271.916 51.05C267.716 48.55 263.066 47.3 257.966 47.3C252.866 47.3 248.216 48.5 244.016 50.9C239.816 53.3 236.466 56.8 233.966 61.4C231.466 66 230.216 71.4 230.216 77.6C230.216 83.9 231.466 89.4 233.966 94.1C236.466 98.7 239.816 102.25 244.016 104.75C248.216 107.15 252.866 108.35 257.966 108.35C263.066 108.35 267.716 107.15 271.916 104.75C276.216 102.25 279.616 98.7 282.116 94.1C284.616 89.4 285.866 83.95 285.866 77.75Z" />
<path
d="M329.784 23.45C327.184 23.45 324.984 22.55 323.184 20.75C321.384 18.95 320.484 16.75 320.484 14.15C320.484 11.55 321.384 9.35001 323.184 7.55001C324.984 5.75001 327.184 4.85001 329.784 4.85001C332.284 4.85001 334.384 5.75001 336.084 7.55001C337.884 9.35001 338.784 11.55 338.784 14.15C338.784 16.75 337.884 18.95 336.084 20.75C334.384 22.55 332.284 23.45 329.784 23.45ZM336.384 36.8V119H322.734V36.8H336.384Z" />
<path
d="M399.698 35.3C409.698 35.3 417.798 38.35 423.998 44.45C430.198 50.45 433.298 59.15 433.298 70.55V119H419.798V72.5C419.798 64.3 417.748 58.05 413.648 53.75C409.548 49.35 403.948 47.15 396.848 47.15C389.648 47.15 383.898 49.4 379.598 53.9C375.398 58.4 373.298 64.95 373.298 73.55V119H359.648V36.8H373.298V48.5C375.998 44.3 379.648 41.05 384.248 38.75C388.948 36.45 394.098 35.3 399.698 35.3Z" />
<path
d="M550.635 119L525.735 76.25H509.235V119H495.585V14.45H529.335C537.235 14.45 543.885 15.8 549.285 18.5C554.785 21.2 558.885 24.85 561.585 29.45C564.285 34.05 565.635 39.3 565.635 45.2C565.635 52.4 563.535 58.75 559.335 64.25C555.235 69.75 549.035 73.4 540.735 75.2L566.985 119H550.635ZM509.235 65.3H529.335C536.735 65.3 542.285 63.5 545.985 59.9C549.685 56.2 551.535 51.3 551.535 45.2C551.535 39 549.685 34.2 545.985 30.8C542.385 27.4 536.835 25.7 529.335 25.7H509.235V65.3Z" />
<path
d="M661.845 74.75C661.845 77.35 661.695 80.1 661.395 83H595.695C596.195 91.1 598.945 97.45 603.945 102.05C609.045 106.55 615.195 108.8 622.395 108.8C628.295 108.8 633.195 107.45 637.095 104.75C641.095 101.95 643.895 98.25 645.495 93.65H660.195C657.995 101.55 653.595 108 646.995 113C640.395 117.9 632.195 120.35 622.395 120.35C614.595 120.35 607.595 118.6 601.395 115.1C595.295 111.6 590.495 106.65 586.995 100.25C583.495 93.75 581.745 86.25 581.745 77.75C581.745 69.25 583.445 61.8 586.845 55.4C590.245 49 594.995 44.1 601.095 40.7C607.295 37.2 614.395 35.45 622.395 35.45C630.195 35.45 637.095 37.15 643.095 40.55C649.095 43.95 653.695 48.65 656.895 54.65C660.195 60.55 661.845 67.25 661.845 74.75ZM647.745 71.9C647.745 66.7 646.595 62.25 644.295 58.55C641.995 54.75 638.845 51.9 634.845 50C630.945 48 626.595 47 621.795 47C614.895 47 608.995 49.2 604.095 53.6C599.295 58 596.545 64.1 595.845 71.9H647.745Z" />
<path
d="M674.763 77.6C674.763 69.2 676.462 61.85 679.862 55.55C683.262 49.15 687.913 44.2 693.812 40.7C699.812 37.2 706.463 35.45 713.763 35.45C720.963 35.45 727.213 37 732.513 40.1C737.813 43.2 741.762 47.1 744.362 51.8V36.8H758.162V119H744.362V103.7C741.662 108.5 737.613 112.5 732.213 115.7C726.913 118.8 720.712 120.35 713.612 120.35C706.312 120.35 699.713 118.55 693.812 114.95C687.913 111.35 683.262 106.3 679.862 99.8C676.462 93.3 674.763 85.9 674.763 77.6ZM744.362 77.75C744.362 71.55 743.112 66.15 740.612 61.55C738.112 56.95 734.712 53.45 730.412 51.05C726.212 48.55 721.563 47.3 716.463 47.3C711.363 47.3 706.713 48.5 702.513 50.9C698.313 53.3 694.963 56.8 692.463 61.4C689.963 66 688.713 71.4 688.713 77.6C688.713 83.9 689.963 89.4 692.463 94.1C694.963 98.7 698.313 102.25 702.513 104.75C706.713 107.15 711.363 108.35 716.463 108.35C721.563 108.35 726.212 107.15 730.412 104.75C734.712 102.25 738.112 98.7 740.612 94.1C743.112 89.4 744.362 83.95 744.362 77.75Z" />
<path
d="M776.13 77.75C776.13 69.25 777.83 61.85 781.23 55.55C784.63 49.15 789.33 44.2 795.33 40.7C801.43 37.2 808.38 35.45 816.18 35.45C826.28 35.45 834.58 37.9 841.08 42.8C847.68 47.7 852.03 54.5 854.13 63.2H839.43C838.03 58.2 835.28 54.25 831.18 51.35C827.18 48.45 822.18 47 816.18 47C808.38 47 802.08 49.7 797.28 55.1C792.48 60.4 790.08 67.95 790.08 77.75C790.08 87.65 792.48 95.3 797.28 100.7C802.08 106.1 808.38 108.8 816.18 108.8C822.18 108.8 827.18 107.4 831.18 104.6C835.18 101.8 837.93 97.8 839.43 92.6H854.13C851.93 101 847.53 107.75 840.93 112.85C834.33 117.85 826.08 120.35 816.18 120.35C808.38 120.35 801.43 118.6 795.33 115.1C789.33 111.6 784.63 106.65 781.23 100.25C777.83 93.85 776.13 86.35 776.13 77.75Z" />
<path
d="M888.993 48.05V96.5C888.993 100.5 889.843 103.35 891.543 105.05C893.243 106.65 896.193 107.45 900.393 107.45H910.443V119H898.143C890.543 119 884.843 117.25 881.043 113.75C877.243 110.25 875.343 104.5 875.343 96.5V48.05H864.693V36.8H875.343V16.1H888.993V36.8H910.443V48.05H888.993Z" />
<path
d="M934.032 23.45C931.432 23.45 929.232 22.55 927.432 20.75C925.632 18.95 924.732 16.75 924.732 14.15C924.732 11.55 925.632 9.35001 927.432 7.55001C929.232 5.75001 931.432 4.85001 934.032 4.85001C936.532 4.85001 938.632 5.75001 940.332 7.55001C942.132 9.35001 943.032 11.55 943.032 14.15C943.032 16.75 942.132 18.95 940.332 20.75C938.632 22.55 936.532 23.45 934.032 23.45ZM940.632 36.8V119H926.982V36.8H940.632Z" />
<path
d="M999.746 120.35C992.046 120.35 985.046 118.6 978.746 115.1C972.546 111.6 967.646 106.65 964.046 100.25C960.546 93.75 958.796 86.25 958.796 77.75C958.796 69.35 960.596 61.95 964.196 55.55C967.896 49.05 972.896 44.1 979.196 40.7C985.496 37.2 992.546 35.45 1000.35 35.45C1008.15 35.45 1015.2 37.2 1021.5 40.7C1027.8 44.1 1032.75 49 1036.35 55.4C1040.05 61.8 1041.9 69.25 1041.9 77.75C1041.9 86.25 1040 93.75 1036.2 100.25C1032.5 106.65 1027.45 111.6 1021.05 115.1C1014.65 118.6 1007.55 120.35 999.746 120.35ZM999.746 108.35C1004.65 108.35 1009.25 107.2 1013.55 104.9C1017.85 102.6 1021.3 99.15 1023.9 94.55C1026.6 89.95 1027.95 84.35 1027.95 77.75C1027.95 71.15 1026.65 65.55 1024.05 60.95C1021.45 56.35 1018.05 52.95 1013.85 50.75C1009.65 48.45 1005.1 47.3 1000.2 47.3C995.196 47.3 990.596 48.45 986.396 50.75C982.296 52.95 978.996 56.35 976.496 60.95C973.996 65.55 972.746 71.15 972.746 77.75C972.746 84.45 973.946 90.1 976.346 94.7C978.846 99.3 982.146 102.75 986.246 105.05C990.346 107.25 994.846 108.35 999.746 108.35Z" />
<path
d="M1099.89 35.3C1109.89 35.3 1117.99 38.35 1124.19 44.45C1130.39 50.45 1133.49 59.15 1133.49 70.55V119H1119.99V72.5C1119.99 64.3 1117.94 58.05 1113.84 53.75C1109.74 49.35 1104.14 47.15 1097.04 47.15C1089.84 47.15 1084.09 49.4 1079.79 53.9C1075.59 58.4 1073.49 64.95 1073.49 73.55V119H1059.84V36.8H1073.49V48.5C1076.19 44.3 1079.84 41.05 1084.44 38.75C1089.14 36.45 1094.29 35.3 1099.89 35.3Z" />
</mask>
<path
d="M4.45001 66.65C4.45001 56.45 6.75001 47.3 11.35 39.2C15.95 31 22.2 24.6 30.1 20C38.1 15.4 46.95 13.1 56.65 13.1C68.05 13.1 78 15.85 86.5 21.35C95 26.85 101.2 34.65 105.1 44.75H88.75C85.85 38.45 81.65 33.6 76.15 30.2C70.75 26.8 64.25 25.1 56.65 25.1C49.35 25.1 42.8 26.8 37 30.2C31.2 33.6 26.65 38.45 23.35 44.75C20.05 50.95 18.4 58.25 18.4 66.65C18.4 74.95 20.05 82.25 23.35 88.55C26.65 94.75 31.2 99.55 37 102.95C42.8 106.35 49.35 108.05 56.65 108.05C64.25 108.05 70.75 106.4 76.15 103.1C81.65 99.7 85.85 94.85 88.75 88.55H105.1C101.2 98.55 95 106.3 86.5 111.8C78 117.2 68.05 119.9 56.65 119.9C46.95 119.9 38.1 117.65 30.1 113.15C22.2 108.55 15.95 102.2 11.35 94.1C6.75001 86 4.45001 76.85 4.45001 66.65Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M166.219 35.3C172.419 35.3 178.019 36.65 183.019 39.35C188.019 41.95 191.919 45.9 194.719 51.2C197.619 56.5 199.069 62.95 199.069 70.55V119H185.569V72.5C185.569 64.3 183.519 58.05 179.419 53.75C175.319 49.35 169.719 47.15 162.619 47.15C155.419 47.15 149.669 49.4 145.369 53.9C141.169 58.4 139.069 64.95 139.069 73.55V119H125.419V8.00001H139.069V48.5C141.769 44.3 145.469 41.05 150.169 38.75C154.969 36.45 160.319 35.3 166.219 35.3Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M216.266 77.6C216.266 69.2 217.966 61.85 221.366 55.55C224.766 49.15 229.416 44.2 235.316 40.7C241.316 37.2 247.966 35.45 255.266 35.45C262.466 35.45 268.716 37 274.016 40.1C279.316 43.2 283.266 47.1 285.866 51.8V36.8H299.666V119H285.866V103.7C283.166 108.5 279.116 112.5 273.716 115.7C268.416 118.8 262.216 120.35 255.116 120.35C247.816 120.35 241.216 118.55 235.316 114.95C229.416 111.35 224.766 106.3 221.366 99.8C217.966 93.3 216.266 85.9 216.266 77.6ZM285.866 77.75C285.866 71.55 284.616 66.15 282.116 61.55C279.616 56.95 276.216 53.45 271.916 51.05C267.716 48.55 263.066 47.3 257.966 47.3C252.866 47.3 248.216 48.5 244.016 50.9C239.816 53.3 236.466 56.8 233.966 61.4C231.466 66 230.216 71.4 230.216 77.6C230.216 83.9 231.466 89.4 233.966 94.1C236.466 98.7 239.816 102.25 244.016 104.75C248.216 107.15 252.866 108.35 257.966 108.35C263.066 108.35 267.716 107.15 271.916 104.75C276.216 102.25 279.616 98.7 282.116 94.1C284.616 89.4 285.866 83.95 285.866 77.75Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M329.784 23.45C327.184 23.45 324.984 22.55 323.184 20.75C321.384 18.95 320.484 16.75 320.484 14.15C320.484 11.55 321.384 9.35001 323.184 7.55001C324.984 5.75001 327.184 4.85001 329.784 4.85001C332.284 4.85001 334.384 5.75001 336.084 7.55001C337.884 9.35001 338.784 11.55 338.784 14.15C338.784 16.75 337.884 18.95 336.084 20.75C334.384 22.55 332.284 23.45 329.784 23.45ZM336.384 36.8V119H322.734V36.8H336.384Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M399.698 35.3C409.698 35.3 417.798 38.35 423.998 44.45C430.198 50.45 433.298 59.15 433.298 70.55V119H419.798V72.5C419.798 64.3 417.748 58.05 413.648 53.75C409.548 49.35 403.948 47.15 396.848 47.15C389.648 47.15 383.898 49.4 379.598 53.9C375.398 58.4 373.298 64.95 373.298 73.55V119H359.648V36.8H373.298V48.5C375.998 44.3 379.648 41.05 384.248 38.75C388.948 36.45 394.098 35.3 399.698 35.3Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M550.635 119L525.735 76.25H509.235V119H495.585V14.45H529.335C537.235 14.45 543.885 15.8 549.285 18.5C554.785 21.2 558.885 24.85 561.585 29.45C564.285 34.05 565.635 39.3 565.635 45.2C565.635 52.4 563.535 58.75 559.335 64.25C555.235 69.75 549.035 73.4 540.735 75.2L566.985 119H550.635ZM509.235 65.3H529.335C536.735 65.3 542.285 63.5 545.985 59.9C549.685 56.2 551.535 51.3 551.535 45.2C551.535 39 549.685 34.2 545.985 30.8C542.385 27.4 536.835 25.7 529.335 25.7H509.235V65.3Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M661.845 74.75C661.845 77.35 661.695 80.1 661.395 83H595.695C596.195 91.1 598.945 97.45 603.945 102.05C609.045 106.55 615.195 108.8 622.395 108.8C628.295 108.8 633.195 107.45 637.095 104.75C641.095 101.95 643.895 98.25 645.495 93.65H660.195C657.995 101.55 653.595 108 646.995 113C640.395 117.9 632.195 120.35 622.395 120.35C614.595 120.35 607.595 118.6 601.395 115.1C595.295 111.6 590.495 106.65 586.995 100.25C583.495 93.75 581.745 86.25 581.745 77.75C581.745 69.25 583.445 61.8 586.845 55.4C590.245 49 594.995 44.1 601.095 40.7C607.295 37.2 614.395 35.45 622.395 35.45C630.195 35.45 637.095 37.15 643.095 40.55C649.095 43.95 653.695 48.65 656.895 54.65C660.195 60.55 661.845 67.25 661.845 74.75ZM647.745 71.9C647.745 66.7 646.595 62.25 644.295 58.55C641.995 54.75 638.845 51.9 634.845 50C630.945 48 626.595 47 621.795 47C614.895 47 608.995 49.2 604.095 53.6C599.295 58 596.545 64.1 595.845 71.9H647.745Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M674.763 77.6C674.763 69.2 676.462 61.85 679.862 55.55C683.262 49.15 687.913 44.2 693.812 40.7C699.812 37.2 706.463 35.45 713.763 35.45C720.963 35.45 727.213 37 732.513 40.1C737.813 43.2 741.762 47.1 744.362 51.8V36.8H758.162V119H744.362V103.7C741.662 108.5 737.613 112.5 732.213 115.7C726.913 118.8 720.712 120.35 713.612 120.35C706.312 120.35 699.713 118.55 693.812 114.95C687.913 111.35 683.262 106.3 679.862 99.8C676.462 93.3 674.763 85.9 674.763 77.6ZM744.362 77.75C744.362 71.55 743.112 66.15 740.612 61.55C738.112 56.95 734.712 53.45 730.412 51.05C726.212 48.55 721.563 47.3 716.463 47.3C711.363 47.3 706.713 48.5 702.513 50.9C698.313 53.3 694.963 56.8 692.463 61.4C689.963 66 688.713 71.4 688.713 77.6C688.713 83.9 689.963 89.4 692.463 94.1C694.963 98.7 698.313 102.25 702.513 104.75C706.713 107.15 711.363 108.35 716.463 108.35C721.563 108.35 726.212 107.15 730.412 104.75C734.712 102.25 738.112 98.7 740.612 94.1C743.112 89.4 744.362 83.95 744.362 77.75Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M776.13 77.75C776.13 69.25 777.83 61.85 781.23 55.55C784.63 49.15 789.33 44.2 795.33 40.7C801.43 37.2 808.38 35.45 816.18 35.45C826.28 35.45 834.58 37.9 841.08 42.8C847.68 47.7 852.03 54.5 854.13 63.2H839.43C838.03 58.2 835.28 54.25 831.18 51.35C827.18 48.45 822.18 47 816.18 47C808.38 47 802.08 49.7 797.28 55.1C792.48 60.4 790.08 67.95 790.08 77.75C790.08 87.65 792.48 95.3 797.28 100.7C802.08 106.1 808.38 108.8 816.18 108.8C822.18 108.8 827.18 107.4 831.18 104.6C835.18 101.8 837.93 97.8 839.43 92.6H854.13C851.93 101 847.53 107.75 840.93 112.85C834.33 117.85 826.08 120.35 816.18 120.35C808.38 120.35 801.43 118.6 795.33 115.1C789.33 111.6 784.63 106.65 781.23 100.25C777.83 93.85 776.13 86.35 776.13 77.75Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M888.993 48.05V96.5C888.993 100.5 889.843 103.35 891.543 105.05C893.243 106.65 896.193 107.45 900.393 107.45H910.443V119H898.143C890.543 119 884.843 117.25 881.043 113.75C877.243 110.25 875.343 104.5 875.343 96.5V48.05H864.693V36.8H875.343V16.1H888.993V36.8H910.443V48.05H888.993Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M934.032 23.45C931.432 23.45 929.232 22.55 927.432 20.75C925.632 18.95 924.732 16.75 924.732 14.15C924.732 11.55 925.632 9.35001 927.432 7.55001C929.232 5.75001 931.432 4.85001 934.032 4.85001C936.532 4.85001 938.632 5.75001 940.332 7.55001C942.132 9.35001 943.032 11.55 943.032 14.15C943.032 16.75 942.132 18.95 940.332 20.75C938.632 22.55 936.532 23.45 934.032 23.45ZM940.632 36.8V119H926.982V36.8H940.632Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M999.746 120.35C992.046 120.35 985.046 118.6 978.746 115.1C972.546 111.6 967.646 106.65 964.046 100.25C960.546 93.75 958.796 86.25 958.796 77.75C958.796 69.35 960.596 61.95 964.196 55.55C967.896 49.05 972.896 44.1 979.196 40.7C985.496 37.2 992.546 35.45 1000.35 35.45C1008.15 35.45 1015.2 37.2 1021.5 40.7C1027.8 44.1 1032.75 49 1036.35 55.4C1040.05 61.8 1041.9 69.25 1041.9 77.75C1041.9 86.25 1040 93.75 1036.2 100.25C1032.5 106.65 1027.45 111.6 1021.05 115.1C1014.65 118.6 1007.55 120.35 999.746 120.35ZM999.746 108.35C1004.65 108.35 1009.25 107.2 1013.55 104.9C1017.85 102.6 1021.3 99.15 1023.9 94.55C1026.6 89.95 1027.95 84.35 1027.95 77.75C1027.95 71.15 1026.65 65.55 1024.05 60.95C1021.45 56.35 1018.05 52.95 1013.85 50.75C1009.65 48.45 1005.1 47.3 1000.2 47.3C995.196 47.3 990.596 48.45 986.396 50.75C982.296 52.95 978.996 56.35 976.496 60.95C973.996 65.55 972.746 71.15 972.746 77.75C972.746 84.45 973.946 90.1 976.346 94.7C978.846 99.3 982.146 102.75 986.246 105.05C990.346 107.25 994.846 108.35 999.746 108.35Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
<path
d="M1099.89 35.3C1109.89 35.3 1117.99 38.35 1124.19 44.45C1130.39 50.45 1133.49 59.15 1133.49 70.55V119H1119.99V72.5C1119.99 64.3 1117.94 58.05 1113.84 53.75C1109.74 49.35 1104.14 47.15 1097.04 47.15C1089.84 47.15 1084.09 49.4 1079.79 53.9C1075.59 58.4 1073.49 64.95 1073.49 73.55V119H1059.84V36.8H1073.49V48.5C1076.19 44.3 1079.84 41.05 1084.44 38.75C1089.14 36.45 1094.29 35.3 1099.89 35.3Z"
stroke="white" stroke-width="8" mask="url(#path-1-outside-1)" />
</svg>
</div>
<section class="glass">
<div class="nextButton">Next ➪</div>
<div class="row mainDisplay">
<div class="col-md-3 col-lg-3 scoreBoard"></div>
<div class="col-md-12 col-lg-12 displayBox">
<table id="GameOn">
<tbody>
<tr class="firstWord"></tr>
<tr class="secondWord"></tr>
<tr class="thirdWord"></tr>
<tr class="fourthWord"></tr>
<tr class="fifthWord"></tr>
<tr class="lastWord"></tr>
</tbody>
</table>
<div id="team">
<div class="row">
<div class="teamMsg">
<h2>Teams playing : </h2>
<div class="teamSelect">
<input type="radio" id="team1" name="Team" value="1" checked><label
for="team1">1</label>
<input type="radio" id="team2" name="Team" value="2"><label for="team2">2</label>
<input type="radio" id="team3" name="Team" value="3"><label for="team3">3</label>
<input type="radio" id="team4" name="Team" value="4"><label for="team4">4</label>
</div>
<div id="teamName">
<div class="input-group team1"><span>🐦</span><input class="form-control"
id="teamName1" /></div>
<div class="input-group team2"><span>🐉</span><input class="form-control"
id="teamName2" /></div>
<div class="input-group team3"><span>🐋</span><input class="form-control"
id="teamName3" /></div>
<div class="input-group team4"><span>🐈</span><input class="form-control"
id="teamName4" /></div>
<div id="startGameBtn">
<button class="btn btn-primary">Start Game</button>
</div>
<div class="helpButton">How to Play?</div>
<div id="timeBased">
<input type="checkbox" id="timer" name="timer">
<label for="timer">Time Based</label>
<div id="timerInput">
<input type="text" id="timerVal" class="form-control" placeholder="00:00"
value="01:00" title="minute : second">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 controlPanel">
<div id="checkWordBox">
<div id="curTimer"></div>
<div><span id="teamGuessWord"></span><br><span>Guess Word</span></div>
<div><input id="checkWord" onkeypress="return enterKeyPressed(event)" /></div>
<br />
<div><button class="btn btn-primary checkWordBtn">Check</button></div>
</div>
<div id="teamTurn">
</div>
</div>
</div>
<div class="endGame">End Game</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>
</section>
</main>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
<div id="help" title="How to play game">?</div>
<div class="circle1"></div>
<div class="circle2"></div>
<!-- Modal - Show Game Help-->
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="helpModalTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Chain Reaction - How to Play</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Select number of teams playing. Set each team's name or use default given.</p>
<p>Teams need to complete the word chain by guessing words in it. On your turn, you are asked to
unreveal a letter of the adjacent word to first or last word. </p>
<p>On successful guess of word, the team continue guessing the other words in the chain.</p>
<p>On wrong guess, next team need to unreveal a letter first and then guess the word.</p>
<p>Each correct guess = <b>10 points</b></p>
<p>Last word of the chain = <b>20 points</b></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal - LeaderBoard-->
<div class="modal fade" id="leaderboard" tabindex="-1" role="dialog" aria-labelledby="leaderboardTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Leader Board - Top Teams</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body table-responsive">
None
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="leaderboardIcon">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path d="M7.5 21H2V9h5.5v12zm7.25-18h-5.5v18h5.5V3zM22 11h-5.5v10H22V11z" fill="currentColor" />
</svg>
</div>
</body>
<script>
const list = [["Credit", "Check", "Please", "Hold", "Fast", "Food"], ["Cocoa", "Powder", "Blue", "Moon", "Landing", "Gear"], ["Freezing", "Cold", "Sweat", "Shirt", "Button", "Nose"], ["Crushed", "Ice", "Water", "Garden", "Party", "Animal"], ["Glass", "Bubble", "Bath", "Tub", "Stained", "Teeth"], ["Under", "Water", "Gun", "Down", "Town", "Hall"], ["Fire", "Fly", "Weight", "Training", "Day", "Dream"], ["Certain", "Death", "bed", "head", "Master", "Bathroom"], ["simple", "life", "long", "hair", "raising", "money"], ["bowling", "pin", "code", "red", "cross", "country"], ["user", "friendly", "fire", "escape", "artist", "unknown"], ["funky", "town", "square", "foot", "long", "weekend"], ["hidden", "talent", "scout", "leader", "board", "meeting"], ["nothing", "left", "turn", "around", "town", "house"], ["street", "food", "chain", "reaction", "TIME", "CARD"], ["MONKEY", "BUSINESS", "CLASS", "ROOM", "KEY", "CHAIN"], ["CITY", "HALL", "PASS", "OUT", "COLD", "water"], ["chain", "smoke", "signal", "booster", "seat", "belt"], ["bouncing", "baby", "grand", "piano", "key", "chain"], ["away", "game", "time", "travel", "light", "wave"], ["child", "birth", "day", "after", "school", "shopping"], ["remain", "active", "wear", "out", "cry", "baby"], ["fence", "post", "master", "lock", "jaw", "bone"], ["dirty", "dish", "soap", "box", "spring", "break"], ["sweet", "tooth", "fairy", "dust", "cover", "letter"], ["essential", "oil", "field", "hockey", "team", "leader"], ["lemon", "grass", "stain", "proof", "read", "along"], ["authority", "figure", "head", "band", "member", "services"], ["forbidden", "fruit", "cocktail", "dress", "rehearsal", "dinner"], ["grand", "father", "time", "trial", "run", "around"], ["sliced", "bread", "pudding", "pop", "culture", "clash"], ["bullet", "train", "track", "team", "building", "block"], ["sea", "monster", "movie", "theater", "curtain", "call"]];
var index, indexTrack, maxWordLen, maxWordLen, unhideUnavailableRow, playingTeamCount = 1, teamTurnIndex, team, playingTeam, timerEnabled, timer, controller;
initialValue();
function initialValue() {
index = randomIndex(list.length);
indexTrack = 0;
maxWordLen = 9;
$selectedRow = $('.secondWord');
unhideUnavailableRow = [0, 1, 0, 0, 1];
team = [{ name: "Kookaburra", symbol: "🐦", score: 0, color: '#ffdbd0' }, { name: "Balerion", symbol: '🐉', score: 0, color: '#d0ffd8' }, { name: "Orca", symbol: '🐋', score: 0, color: '#d0eeff' }, { name: "Life of Pie", symbol: '🐈', score: 0, color: '#f8ffd0' }];
playingTeam = [];
$('#teamName1').val(team[0].name);
$('#teamName2').val(team[1].name);
$('#teamName3').val(team[2].name);
$('#teamName4').val(team[3].name);
teamTurnIndex = 0;
timerEnabled = false;
$('#timer').prop('checked', false);
$('#timerInput').hide();
$('#timerVal').val('01:00');
timer = null;
}
$(function () {
setTimeout(() => { // Hide Intro message and Show Team Select
$('#introText').fadeOut(100);
setTimeout(() => {
$('.glass').fadeIn(900);
}, 500);
}, 3000);
$('.unsolved').click(function () {
if (!$('#checkWordBox').is(':visible')) {
$curr = $(this).children().siblings('.unhide');
$currClass = $(this);
var indexAttr = $currClass.attr('index');
if (unhideUnavailableRow[indexAttr] == 1) {
$selectedRow = $currClass;
if ($currClass.children('.unhiddenCard').length < ($currClass.attr('len') - 1)) {
$curr.addClass("unhiddenCard").removeClass('unhide');
$curr.next().addClass('unhide');
$currClass.addClass('currentRow');
}
else {
$curr.addClass('lastBox').removeClass('unhide');
$currClass.removeClass('currentRow');
}
$('#teamTurn').hide();
$('#checkWordBox').show();
$('#checkWord').val('');
if (timerEnabled) // start timer if time enabled
timeControl();
animAvailableRow();
}
}
});
});
$('input[type=radio][name=Team]').change(function () {
playingTeamCount = parseInt(this.value);
switch (this.value) {
case "4":
$('.team4, .team3, .team2, .team1').addClass('displayFlex'); break;
case "3":
$('.team3, .team2, .team1').addClass('displayFlex'); $('.team4').removeClass('displayFlex'); break;
case "2":
$('.team2, .team1').addClass('displayFlex'); $('.team4, .team3').removeClass('displayFlex'); break;
case "1":
$('.team1').addClass('displayFlex'); $('.team4, .team3, .team2').removeClass('displayFlex');
}
});
$('input[type=checkbox][name=timer]').change(function () {
if ($('#timer').is(':checked')) {
$('#timerInput').show();
timerEnabled = true;
}
else {
$('#timerInput').hide();
timerEnabled = false;
}
});
function timeControl() {
let min = parseInt(timer.split(':')[0]) || 0,
sec = parseInt(timer.split(':')[1]);
if (min == NaN && sec == NaN) { //if timer selected and timer input is empty
min = 1;
sec = 0;
}
min = (min > 60 ? 59 : min);
sec = (sec > 60 ? 59 : sec);
if (min || sec) // start timer only if value > 0
controller = setInterval(countDown, 1000);
function countDown() {
min = parseInt(min);
sec = parseInt(sec);
min = (min < 10 ? ('0' + min) : min);
sec = (sec < 10 ? ('0' + sec) : sec);
$('#curTimer').html('<span>' + min + ' : ' + sec + '</span>');
if (min > 0) {
if (sec == 0) { min--; sec = 59; }
else
sec--;
}
else if (min == 0 && sec > 0) {
sec--;
}
else if (sec == 0) {
clearInterval(controller);
controller = null;
$('#curTimer').html('');
$('.checkWordBtn').trigger('click');
}
}
}
$('#startGameBtn button').click(function () {
for (var index = 0; index < playingTeamCount; index++) {
playingTeam.push(team[index]);
var tmp = '#teamName' + (index + 1);
playingTeam[index].name = $(tmp).val().trim() || team[index].name;
}
$('.displayBox').removeClass('col-lg-12 col-md-12').addClass('col-lg-6 col-md-9').css({ 'align-items': 'center' });
$('#team').hide();
$('.controlPanel, .scoreBoard, #GameOn, .nextButton, .endGame').addClass('displayFlex');
gameInitialSetup();
displayScore();
teamTurn();
});
$('.nextButton').click(function () {
if (indexTrack < list.length - 1)
++indexTrack;
gameInitialSetup();
});
function addScore(index, score) {
for (var i = 0; i < playingTeam.length; i++) {
if (team[index].name == playingTeam[i].name) {
playingTeam[i].score += score;
break;
}
}
}
function displayScore() {
$('.scoreBoard').html('');
playingTeam.sort(function (a, b) {
return b.score - a.score;
});
for (var i = 0; i < playingTeamCount; i++) {
$('.scoreBoard').append('<div><span>' + playingTeam[i].symbol + '</span>' + playingTeam[i].name + ' - <span>' + playingTeam[i].score + '</span></div>')
}
}
if (indexTrack < list.length)
gameInitialSetup();
function generateRandomLetter() {
const alphabet = "abcdefghijklmnopqrstuvwxyz"
return alphabet[Math.floor(Math.random() * alphabet.length)]
}
function loopAlphabetStyle(className, currentIndex, word) {
$(className).append('<td></td>');
let aplhabetLoopTimer = null;
let x = 0;
word = (word == undefined ? '' : word);
aplhabetLoopTimer = setInterval(() => {
$(className).children().eq(currentIndex).html(generateRandomLetter());
x++;
if (x >= maxWordLen) {
clearInterval(aplhabetLoopTimer);
aplhabetLoopTimer = null;
$(className).children().eq(currentIndex).html(word);
}
}, 130);
};
function gameInitialSetup() {
var i = index[indexTrack];
unhideUnavailableRow = [0, 1, 0, 0, 1]; //reset row tracker
if (timerEnabled) //check if timer based choice
timer = $('#timerVal').val();
$('.firstWord, .secondWord, .thirdWord, .fourthWord, .fifthWord, .lastWord').html('');
$('#GameOn').removeClass('fullChainForm');
$('.secondWord, .thirdWord, .fourthWord, .fifthWord').addClass('unsolved').removeClass('currentRow');
for (var j = 0; j < list[i].length; j++) {
var newStr = list[i][j].split("");
for (var m = 0; m < maxWordLen; m++) {
switch (j) {
case 0:
loopAlphabetStyle($('.firstWord'), m, newStr[m]);
break;
case 1:
(m >= newStr.length
? $('.secondWord').append('<td></td>')
: $('.secondWord').append(m == 0 ? '<td class="unhide">' + newStr[m] + '</td>' : '<td>' + newStr[m] + '</td>'));
$('.secondWord').attr({ 'len': newStr.length, 'word': list[i][j], 'index': 1 });
break;
case 2:
(m >= newStr.length
? $('.thirdWord').append('<td></td>')
: $('.thirdWord').append(m == 0 ? '<td class="unhide">' + newStr[m] + '</td>' : '<td>' + newStr[m] + '</td>'));
$('.thirdWord').attr({ 'len': newStr.length, 'word': list[i][j], 'index': 2 });
break;
case 3:
(m >= newStr.length
? $('.fourthWord').append('<td></td>')
: $('.fourthWord').append(m == 0 ? '<td class="unhide">' + newStr[m] + '</td>' : '<td>' + newStr[m] + '</td>'));
$('.fourthWord').attr({ 'len': newStr.length, 'word': list[i][j], 'index': 3 });
break;
case 4:
(m >= newStr.length
? $('.fifthWord').append('<td></td>')
: $('.fifthWord').append(m == 0 ? '<td class="unhide">' + newStr[m] + '</td>' : '<td>' + newStr[m] + '</td>'));
$('.fifthWord').attr({ 'len': newStr.length, 'word': list[i][j], 'index': 4 });
break;
case 5:
loopAlphabetStyle($('.lastWord'), m, newStr[m]);
/* (m >= newStr.length
? $('.lastWord').append('<td></td>')
: $('.lastWord').append('<td>' + newStr[m] + '</td>')); */
break;
}
}
}
animAvailableRow('add');
}
function teamTurn() {
$('#teamTurn').html('<div><b>' + team[teamTurnIndex].name + '</b>,<br/> Select A Position</div>');
$('#teamGuessWord').html(team[teamTurnIndex].name + ',');
$('#teamTurn').show();
$('#checkWordBox').hide();
animAvailableRow('add');
}
function animAvailableRow(action) {
for (let i = 0; i < unhideUnavailableRow.length; i++) {
(unhideUnavailableRow[i] == 1 && action == 'add'
? $($('tbody').children()[i]).addClass('availableRow')
: $($('tbody').children()[i]).removeClass('availableRow'));
}
}
function randomIndex(len) {
var returnArr = [];
while (returnArr.length < len) {
var randNum = Math.floor(Math.random() * len);
if ($.inArray(randNum, returnArr) == -1)
returnArr.push(randNum);
}
return returnArr;
}
$('.checkWordBtn').click(function () {
if ($('#checkWord').val().trim().length || (timerEnabled && controller == null)) {
if (timerEnabled) { //reset timer if guessed before timer went off
clearInterval(controller);
$('#curTimer').html('');
}
$currClass.removeClass('currentRow'); //remove animation
var checkWord = $('#checkWord').val().trim().toUpperCase();
if (checkWord == $selectedRow.attr('word').toUpperCase()) {
$selectedRow.children('td').addClass('unhiddenCard').removeClass('lastBox unhide');
$selectedRow.removeClass('unsolved');
let index = $selectedRow.attr('index');
unhideUnavailableRow[index] = 0;
(index == 1 || index == 2
? unhideUnavailableRow[++index] = 1
: unhideUnavailableRow[--index] = 1);
$('#checkWord').val('');
if ($('.unsolved').length == 0) {
addScore(teamTurnIndex, 20);
fullChainForm();
}
else {
addScore(teamTurnIndex, 10);
}
displayScore();
}
else {
$selectedRow.children('.lastBox').removeClass('lastBox').addClass('unhide');
$currClass.addClass('wrongAnswer');
setTimeout(function () { $currClass.removeClass('wrongAnswer'); }, 2000);
if (playingTeamCount - teamTurnIndex == 1)
teamTurnIndex = 0;
else
teamTurnIndex++;
}
teamTurn();
}
});
function fullChainForm() {
$('#GameOn').addClass('fullChainForm');
}
function enterKeyPressed(event) {
if (event.keyCode == 13) {
$('.checkWordBtn').trigger('click');
return true;
}
}
$(".switch input").click(function () { //color theme changer
if ($('.switch input').is(':checked')) {
$('body').addClass('blue');
}
else {
$('body').removeClass('blue');
}
});
$('#leaderboardIcon').click(function () {
leaderBoardCreate();
});
function leaderBoardCreate(value) {
let topTeam = localStorage.getItem('topTeam');
let tmpValue = []; //tmpValue format - [TeamName=Score=Date];
topTeam = (topTeam ? topTeam.split(',') : []); //include stored value
if (value == 'endGame') {
for (let i = 0; i < playingTeamCount; i++) {
if (playingTeam[i].score)
topTeam.push(playingTeam[i].name + '=' + playingTeam[i].score + '=' + currentDateTime().format + '=newRecord');
}
}
if (topTeam.length) {
for (let i = 0; i < topTeam.length; i++) {
let Obj = {
name: (topTeam[i].split('='))[0],
score: (topTeam[i].split('='))[1],
time: (topTeam[i].split('='))[2],
isNewRecord: ((topTeam[i].split('='))[3] == 'newRecord' ? true : false) //to show NEW badge on leaderBoard
};
tmpValue.push(Obj);
}
tmpValue.sort(function (a, b) {
return b.score - a.score;
});
topTeam = []; //reset to store only top 5 values
$('#leaderboard .modal-body').html('<div id="leaderBoardWarnMsg">These are stored locally on your system</div><table class="table"><thead><th>Team</th><th>Score</th><th>When</th></thead><tbody></tbody></table>');
for (let i = 0; i < 5 && i < tmpValue.length; i++) { // display max 5 Top scorer teams
$('#leaderboard .modal-body tbody').append('<tr><td>' + tmpValue[i].name + (tmpValue[i].isNewRecord ? '<span class="newrecord">NEW</span>' : '') + '</td><td>' + tmpValue[i].score + '</td><td>' + tmpValue[i].time + '</td></tr>');
topTeam.push(tmpValue[i].name + '=' + tmpValue[i].score + '=' + tmpValue[i].time);
}
localStorage.setItem('topTeam', topTeam); // store only Top 5 Scorer
}
$('#leaderboard').modal('toggle');
}
$('.endGame').click(function () {
leaderBoardCreate('endGame');
resetGame();
});
function resetGame() {
$('.displayBox').removeClass('col-lg-6 col-md-9').addClass('col-lg-12 col-md-12').css({ 'align-items': 'unset' });
$('#team').show();
$('.controlPanel, .scoreBoard, #GameOn, .nextButton, .endGame').removeClass('displayFlex');
if (timerEnabled) {
clearInterval(controller);
$('#curTimer').html('');
}
initialValue();
}
$('#leaderboard .modal-header button, #leaderboard .modal-footer button').click(function () {
$('#leaderboard').modal('toggle');
})
$('#help, .helpButton, #helpModal .modal-header button, #helpModal .modal-footer button').click(function () {
$('#helpModal').modal('toggle');
});
function currentDateTime() {
let currentDate = new Date();
let cDay = currentDate.getDate()
let cMonth = currentDate.getMonth() + 1
let cYear = currentDate.getFullYear();
let cHour = currentDate.getHours();
let cMinute = currentDate.getMinutes();
let time = (cHour > 12 ? cHour - 12 : cHour) + ":" + (cMinute < 10 ? '0' + cMinute : cMinute) + ((cHour > 12 ? ' PM' : ' AM'));
let day = {
date: cDay,
month: cMonth,
year: cYear,
hour: cHour,
minute: cMinute,
format: (cDay + '/' + cMonth + '/' + cYear + ' ' + time)
}
return day;
}
</script>