-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
995 lines (923 loc) · 77.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>灵蛇叠瑞 - 繁简字匹配游戏 | Cladonia 2025</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" href="/styles/style.css">
<script src="./confetti.browser.min.js" defer></script>
<link rel="preload" as="image" href="/src/symbol_timer.svg">
<link rel="preload" as="image" href="/src/symbol_exclamation.svg">
<link rel="preload" as="image" href="/src/symbol_right.svg">
<link rel="preload" as="image" href="/src/symbol_wrong.svg">
<link rel="preload" as="image" href="/src/symbol_pause.svg">
<link rel="preload" as="image" href="/src/chn-bg.svg">
<link rel="preload" as="image" href="/src/time-over.svg">
<link rel="preload" as="image" href="/src/game-over.svg">
<link rel="preload" as="image" href="/src/select-wrong.svg">
<link rel="preload" as="image" href="/src/red-packet.png">
<link rel="preconnect" href="https://fonts.loli.net">
<link rel="preconnect" href="https://gstatic.loli.net" crossorigin>
<link href="https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@200..900&display=swap" rel="stylesheet">
</head>
<body>
<svg class="cladonia-25-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="236.8125" height="17.00079345703125" viewBox="0 0 236.8125 17.00079345703125" fill="none">
<g opacity="0.75">
<path
d="M108.969 16.9703L112.012 16.3668L112.012 0.358527L109.112 0.358527L109.112 12.1183L100.84 0L97.6765 0.6573L97.6765 16.6655L100.577 16.6655L100.577 4.84675L108.969 16.9703ZM11.4711 5.63547C11.0177 4.45747 10.0313 3.82193 10.0313 3.82193C9.0453 3.18673 7.66205 3.18554 7.66205 3.18554C6.59668 3.18554 5.72381 3.57992 5.72381 3.57992C4.85112 3.97259 4.23714 4.70032 4.23714 4.70032C3.62513 5.42791 3.28709 6.4332 3.28709 6.4332C2.94707 7.43796 2.94694 8.68594 2.94694 8.68594C2.94694 9.93324 3.28709 10.9237 3.28709 10.9237C3.6271 11.917 4.2606 12.6238 4.2606 12.6238C4.89529 13.3282 5.79125 13.7083 5.79125 13.7083C6.68661 14.0894 7.79693 14.0877 7.79693 14.0877C10.1439 14.0877 11.3514 12.6246 11.6324 11.5034L14.4825 11.5034C14.3012 12.7507 13.7143 13.7531 13.7143 13.7531C13.1249 14.7579 12.2276 15.474 12.2276 15.474C11.3322 16.1901 10.1428 16.5825 10.1428 16.5825C8.95272 16.9752 7.57115 16.9769 7.57115 16.9769C5.87109 16.9769 4.47759 16.3853 4.47759 16.3853C3.08355 15.7963 2.08485 14.7241 2.08485 14.7241C1.08749 13.6501 0.542472 12.1368 0.542472 12.1368C-0.00154487 10.6238 0 8.77557 0 8.77557C0 6.90463 0.554201 5.34865 0.554201 5.34865C1.10955 3.78953 2.10831 2.66568 2.10831 2.66568C3.10567 1.54542 4.50105 0.923834 4.50105 0.923834C5.89509 0.300186 7.57115 0.2994 7.57115 0.2994C8.88585 0.2994 10.0431 0.690792 10.0431 0.690792C11.1991 1.08346 12.0927 1.78729 12.0927 1.78729C12.9881 2.49178 13.5999 3.47535 13.5999 3.47535C14.2119 4.45702 14.4385 5.63547 14.4385 5.63547L11.4711 5.63547ZM20.082 16.6064L22.982 16.6064L31.1074 16.6064L32.1718 13.7202L22.982 13.7202L22.982 0.2994L20.082 0.2994L20.082 16.6064ZM36.9189 16.6064L39.9655 16.6064L44.7026 4.23838L49.4397 16.6064L52.4863 16.6064L46.2406 0.2994L43.1646 0.2994L36.9189 16.6064ZM57.9075 16.6064L64.1122 16.6064C64.1122 16.6064 66.0758 16.6058 67.3905 16.0746C67.3905 16.0746 68.7047 15.5449 69.6454 14.5747C69.6454 14.5747 70.5843 13.3625 71.1057 12.0113C71.6186 10.6822 71.5946 9.55689 71.572 8.49296L71.5719 8.49174L71.5719 8.44095C71.549 7.36127 71.5101 6.35092 71.0001 4.93037C71.0001 4.93037 70.4923 3.50831 69.5516 2.48044C69.5516 2.48044 68.611 1.45348 67.2849 0.876031C67.2849 0.876031 65.7216 0.2994 64.1122 0.2994L57.9075 0.2994L57.9075 16.6064ZM91.8129 11.9874C91.8129 11.9874 92.3789 10.4382 92.3789 8.59033C92.3789 8.59033 92.3796 6.76558 91.8129 5.24109C91.8129 5.24109 91.2441 3.71801 90.2354 2.62086C90.2354 2.62086 89.2275 1.52398 87.8221 0.911883C87.8221 0.911883 86.4169 0.2994 84.7168 0.2994C84.7168 0.2994 83.0165 0.299785 81.5998 0.911883C81.5998 0.911883 80.1823 1.5241 79.1396 2.63281C79.1396 2.63281 78.099 3.74051 77.521 5.265C77.521 5.265 76.9404 6.78868 76.9404 8.59033C76.9404 8.59033 76.943 10.4159 77.521 11.9635C77.521 11.9635 78.0969 13.5113 79.1396 14.6315C79.1396 14.6315 80.1831 15.7527 81.5998 16.3763C81.5998 16.3763 83.0168 17.0008 84.7168 17.0008C84.7168 17.0008 86.6278 17 88.0332 16.3763C88.0332 16.3763 89.2065 15.7522 90.2266 14.6435C90.2266 14.6435 91.2462 13.535 91.8129 11.9874ZM121.95 16.6064L119.05 16.6064L119.05 0.2994L121.95 0.2994L121.95 16.6064ZM128.429 16.6064L131.476 16.6064L136.213 4.23838L140.95 16.6064L143.996 16.6064L137.751 0.2994L134.675 0.2994L128.429 16.6064ZM88.9305 6.45411C88.9305 6.45411 89.2706 7.45796 89.2706 8.65905C89.2706 8.65905 89.2705 9.86221 88.9305 10.867C88.9305 10.867 88.5928 11.8723 87.9922 12.5999C87.9922 12.5999 87.3911 13.3276 86.5524 13.7203C86.5524 13.7203 85.7134 14.1116 84.6933 14.1116C84.6933 14.1116 83.6726 14.1129 82.8226 13.7203C82.8226 13.7203 81.9743 13.3275 81.3623 12.5999C81.3623 12.5999 80.7497 11.8717 80.421 10.867C80.421 10.867 80.0897 9.86233 80.0897 8.63814C80.0897 8.63814 80.0923 7.41445 80.421 6.42125C80.421 6.42125 80.7499 5.42792 81.3505 4.70032C81.3505 4.70032 81.9516 3.9726 82.7903 3.57992C82.7903 3.57992 83.6293 3.18554 84.6494 3.18554C84.6494 3.18554 85.6672 3.18766 86.5172 3.59187C86.5172 3.59187 87.3684 3.99363 87.9804 4.72123C87.9804 4.72123 88.5905 5.44934 88.9305 6.45411ZM64.0008 13.6964L60.8075 13.6964L60.8075 3.18554L64.0008 3.18554C64.0008 3.18554 66.2706 3.18671 67.37 4.42246C68.4693 5.65821 68.8244 6.42274 68.8244 8.44095C68.8244 10.4592 68.5862 11.3119 67.4755 12.564C66.3648 13.8161 64.0008 13.6964 64.0008 13.6964Z"
fill-rule="evenodd" style="mix-blend-mode:normal" fill="#FAD07F">
</path>
</g>
<g opacity="0.5">
<path stroke="rgba(236, 207, 165, 1)" stroke-width="1.5" stroke-linecap="round" d="M159 4L159 13">
</path>
</g>
<path
d="M177.335 16.418L177.335 14.5211Q177.335 13.2969 177.777 12.4036C178.079 11.808 178.475 11.2897 178.965 10.8485C179.461 10.4 180.001 9.99934 180.584 9.64642Q181.469 9.11704 182.344 8.63178C182.934 8.30092 183.473 7.95903 183.963 7.60612C184.452 7.24585 184.844 6.84146 185.139 6.39296C185.442 5.93711 185.593 5.40038 185.593 4.78278C185.593 3.97401 185.312 3.31597 184.751 2.80865C184.197 2.30133 183.445 2.04767 182.495 2.04767C181.473 2.04767 180.652 2.34177 180.033 2.92996C179.414 3.51816 179.065 4.30119 178.986 5.27907L177 5.27907Q177.032 3.90049 177.669 2.76453Q178.306 1.61756 179.537 0.933779C180.357 0.477927 181.368 0.25 182.57 0.25C183.614 0.25 184.52 0.441165 185.291 0.823492C186.061 1.19847 186.654 1.72784 187.072 2.41162Q187.709 3.42625 187.709 4.78278C187.709 5.60625 187.561 6.31209 187.266 6.90028C186.971 7.48848 186.579 7.99947 186.089 8.43327Q185.366 9.07293 184.502 9.58025C183.927 9.91846 183.347 10.2456 182.764 10.5618C182.182 10.8706 181.649 11.1978 181.167 11.5433Q180.444 12.0507 180.001 12.7124C179.706 13.1535 179.558 13.6792 179.558 14.2895L179.558 14.6093L187.795 14.6093L187.795 16.418L177.335 16.418ZM198.748 16.6604C196.872 16.6604 195.384 15.9767 194.283 14.6091C193.183 13.2343 192.633 11.2013 192.633 8.51037C192.633 6.69434 192.886 5.1724 193.393 3.94456C193.899 2.71671 194.612 1.794 195.53 1.1764C196.448 0.558799 197.529 0.25 198.772 0.25C200.632 0.25 202.112 0.944799 203.213 2.33439C204.321 3.71663 204.875 5.76426 204.875 8.47728Q204.875 12.5248 203.225 14.5981Q201.574 16.6604 198.748 16.6604ZM209.769 16.418L209.769 14.5211C209.769 13.705 209.917 12.9991 210.212 12.4036C210.514 11.808 210.91 11.2897 211.399 10.8485C211.896 10.4 212.436 9.99933 213.019 9.64641C213.609 9.2935 214.195 8.95528 214.778 8.63178Q215.663 8.13549 216.398 7.60611Q217.132 7.06571 217.574 6.39296C217.876 5.93711 218.028 5.40038 218.028 4.78278C218.028 3.97401 217.747 3.31597 217.186 2.80865C216.631 2.30133 215.879 2.04767 214.929 2.04767C213.908 2.04767 213.087 2.34177 212.468 2.92996C211.849 3.51816 211.5 4.30119 211.421 5.27907L209.435 5.27907C209.456 4.36001 209.679 3.52183 210.104 2.76453C210.529 1.99988 211.151 1.38963 211.972 0.933778C212.792 0.477927 213.803 0.25 215.005 0.25C216.048 0.25 216.955 0.441165 217.725 0.823492C218.495 1.19847 219.089 1.72784 219.506 2.41162C219.931 3.08804 220.143 3.87843 220.143 4.78278C220.143 5.60625 219.996 6.31208 219.701 6.90028C219.406 7.48847 219.013 7.99947 218.524 8.43326C218.042 8.8597 217.513 9.24203 216.937 9.58024C216.362 9.91845 215.782 10.2456 215.199 10.5618C214.616 10.8706 214.084 11.1978 213.602 11.5433C213.119 11.8816 212.731 12.2712 212.436 12.7124C212.141 13.1535 211.993 13.6792 211.993 14.2895L211.993 14.6093L220.23 14.6093L220.23 16.418L209.769 16.418ZM231.145 16.7501C230.181 16.7501 229.288 16.5773 228.468 16.2317C227.648 15.8862 226.942 15.4046 226.352 14.787C225.769 14.1694 225.341 13.4599 225.068 12.6585L226.795 11.9195C227.054 12.5224 227.378 13.0592 227.766 13.5297C228.162 14.0003 228.63 14.3679 229.17 14.6326C229.709 14.8972 230.321 15.0296 231.005 15.0296C232.113 15.0296 233.002 14.7024 233.671 14.0481C234.348 13.3863 234.686 12.4894 234.686 11.3571C234.686 10.6512 234.528 10.0373 234.211 9.51528C233.894 8.9859 233.466 8.57414 232.926 8.28006C232.394 7.98597 231.804 7.83892 231.156 7.83892C230.731 7.83892 230.336 7.87937 229.968 7.96023C229.601 8.03376 229.238 8.18081 228.878 8.4014C228.518 8.62195 228.141 8.95649 227.745 9.40499C227.702 9.42705 227.669 9.43807 227.648 9.43807C227.626 9.43072 227.59 9.41602 227.54 9.39394L225.856 8.85355L226.557 0.56L235.873 0.56L235.819 2.3246L228.263 2.3246L227.863 7.47495C228.382 6.98234 228.947 6.6331 229.558 6.42723C230.177 6.21403 230.846 6.10742 231.566 6.10742C232.509 6.10742 233.376 6.30591 234.168 6.70297C234.967 7.09263 235.607 7.67349 236.089 8.44549C236.571 9.21015 236.812 10.1586 236.812 11.2909Q236.812 12.9452 236.111 14.1694Q235.409 15.3936 234.135 16.0773C233.286 16.5258 232.289 16.7501 231.145 16.7501ZM198.772 14.8959Q200.612 14.8959 201.55 13.396Q202.5 11.8851 202.5 8.48831Q202.5 5.02535 201.539 3.50342C200.905 2.48144 199.979 1.97045 198.76 1.97045C197.549 1.97045 196.615 2.48511 195.958 3.51444C195.308 4.53642 194.984 6.19438 194.984 8.48831C194.984 10.7455 195.308 12.3777 195.958 13.385C196.607 14.3922 197.545 14.8959 198.772 14.8959Z"
fill-rule="evenodd" fill="#FAD07F">
</path>
</svg>
<div id="loadingScreen" class="screen" style="opacity: 0;">
<div id="loader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="0" />
</svg>
</div>
<p class="loadingTitle" style="font-weight: 600;">正在加载图片及字体资源</p>
<p class="loadingTips">请耐心等候... <a href="#" class="skip-link" onclick="skipLoading(event)">跳过加载</a>可能导致游玩体验不佳
</p>
</div>
<div id="startScreen" class="screen" style="display: none; opacity: 0;">
<svg class="lsdy-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="164"
viewBox="0 0 379 381" fill="none">
<path
d="M129.829 190.226L114.689 204.786L116.245 204.666L34.4445 216.131L36.1477 221.237L110.277 210.807C107.607 212.988 104.21 215.546 100.176 218.146C96.379 218.266 92.0116 218.539 87.1521 219.062C87.1521 219.062 68.6997 221.048 41.636 228.233L41.4469 231.069C41.4469 231.069 58.5729 230.231 74.7171 231.239C70.4642 233.114 65.722 235.082 60.751 236.931C60.751 236.931 42.9608 243.549 24.7923 248.277L25.5493 250.735C25.5493 250.735 44.2458 248.933 64.3104 244.794L59.1145 250.286L12.1122 256.975L13.8155 261.891L57.612 255.755C56.1315 257.966 54.2007 260.634 51.851 263.436C50.732 263.436 49.5659 263.456 48.3547 263.499C48.3547 263.499 35.0121 263.972 15.1403 268.509L14.7618 271.346C14.7618 271.346 27.6312 272.481 38.7973 275.411C38.7973 275.411 39.0007 275.465 39.3739 275.565C35.7484 278.594 31.0483 282.246 25.8332 285.622C25.8332 285.622 14.0047 293.281 0.756836 299.142L1.70311 301.601C1.70311 301.601 11.804 299.078 23.6433 294.992C23.0174 296.021 22.2448 297.075 21.2911 298.103C21.2911 298.103 16.4651 303.302 11.5444 305.95C11.5444 305.95 6.62375 308.597 3.50106 312.946C3.50106 312.946 0.378325 317.295 1.70311 322.968C1.70311 322.968 3.21716 328.83 8.98945 330.153C8.98945 330.153 14.7618 331.477 20.0609 328.452C20.0609 328.452 25.1708 325.426 28.6721 319.47C28.6721 319.47 32.1734 313.513 32.5519 305.099C32.5519 305.099 32.6115 303.774 32.4234 301.551L119.877 289.23L111.282 301.222L68.1319 307.273L41.0684 300.844L41.0684 370.254L3.40643 375.535L4.92047 380.641L172.412 357.194C172.412 357.194 176.954 356.437 177.711 353.412C177.711 353.412 174.683 350.953 170.898 348.401C170.898 348.401 167.113 345.848 163.706 343.484C163.706 343.484 160.299 341.121 158.028 339.608L155.757 338.095L143.645 355.87L139.86 356.4L139.86 305.004C139.86 305.004 143.645 303.681 145.538 302.452C145.538 302.452 146.124 302.071 146.807 301.472C146.675 302.84 146.504 304.365 146.295 305.761L147.808 306.706C147.808 306.706 154.243 302.924 161.624 297.251C161.624 297.251 169.005 291.579 173.737 287.041C173.737 287.041 176.765 286.284 178.374 285.622C178.374 285.622 179.982 284.961 181.118 283.448L160.999 267.535C161.021 267.42 161.04 267.303 161.057 267.186C161.057 267.186 161.624 263.215 158.596 259.15C158.596 259.15 157.71 257.96 155.745 256.495C160.056 253.06 165.399 248.366 169.762 243.171C169.762 243.171 172.98 242.415 174.683 241.659C174.683 241.659 176.386 240.902 177.332 239.39L155.947 224.64L142.807 238.519L135.721 239.514C136.22 239.207 136.692 238.853 137.116 238.444C137.116 238.444 140.049 235.608 139.481 231.542C139.481 231.542 138.913 227.477 133.614 223.884C133.614 223.884 131.838 222.68 128.138 221.353C133.139 218.34 138.492 214.718 143.267 210.648C143.267 210.648 149.701 209.513 151.404 206.866L129.829 190.226ZM101.11 234.272C92.8316 237.297 84.7687 239.684 78.7675 241.316L92.7352 251.302C91.221 253.95 85.3541 254.895 85.3541 254.895C81.9091 259.485 77.7362 263.687 73.988 267.065C78.6732 269.237 80.7173 271.63 80.7173 271.63C84.0293 275.506 83.5563 279.382 83.5563 279.382C83.0832 283.259 79.9604 285.811 79.9604 285.811C76.8378 288.364 71.9171 287.986 71.9171 287.986C67.1856 284.961 58.5745 281.651 58.5745 281.651C57.5744 281.267 56.5402 280.888 55.4927 280.518C44.9339 286.656 35.0121 290.728 35.0121 290.728C33.6007 291.307 32.1771 291.869 30.7549 292.413C31.1445 293.806 31.4506 295.13 31.6914 296.359L145.637 280.306L149.119 276.265C149.006 276.265 148.944 276.262 148.944 276.262C144.78 273.048 137.021 269.739 137.021 269.739C136.655 269.583 136.284 269.428 135.908 269.274C126.954 273.99 119.42 277.019 119.42 277.019C103.901 283.259 87.2467 287.608 87.2467 287.608L86.1113 285.339C98.4128 279.666 109.863 272.197 109.863 272.197C113.965 269.521 117.776 266.687 120.977 264.152C119.767 263.794 119.042 263.593 119.042 263.593C108.822 260.757 96.8989 259.622 96.8989 259.622L97.2774 256.975C115.824 251.87 128.41 251.113 128.41 251.113C130.951 250.96 133.276 250.935 135.369 250.991C137.602 248.484 139.463 246.103 140.924 244.094L93.8706 250.735L92.1673 245.63L127.005 240.738C119.165 237.85 107.876 235.513 107.876 235.513C105.69 235.061 103.404 234.647 101.11 234.272ZM147.57 285.328L126.723 288.266L147.023 298.994C147.105 297.937 147.146 297.251 147.146 297.251C147.43 292.524 147.525 287.891 147.525 287.891C147.543 286.977 147.558 286.118 147.57 285.328ZM113.175 360.142L113.175 345.232L66.4286 351.833L66.4286 366.698L113.175 360.142ZM66.4286 346.538L113.175 339.937L113.175 326.512L66.4286 333.113L66.4286 346.538ZM66.4286 327.818L113.175 321.217L113.175 306.328L66.4286 312.757L66.4286 327.818ZM61.1176 250.001C61.1255 249.986 61.1295 249.979 61.1295 249.979L60.6017 250.074L61.1176 250.001Z"
fill-rule="evenodd" fill="url(#linear_fill_10_10)">
</path>
<path
d="M331.307 198.81C331.307 198.81 332.632 197.392 332.822 195.501L303.298 197.203L303.298 247.258L288.725 249.291L288.725 218.57C288.725 218.57 292.51 217.436 294.024 216.112C294.024 216.112 295.538 214.789 295.727 213.087L265.447 214.41L265.447 251.332C264.87 252.061 263.102 254.324 261.851 256.2L284.372 264.709L290.05 254.498L288.725 254.687L288.725 254.585L340.77 247.326L340.77 252.039L344.745 251.472C344.745 251.472 346.943 251.209 349.781 250.562L341.906 261.872L330.89 263.434C330.903 263.418 330.916 263.401 330.929 263.385L297.431 268.112C297.431 268.112 297.431 268.134 297.43 268.177L259.201 273.596L260.715 278.701L297.206 273.564C297.143 274.517 297.061 275.573 296.958 276.716C296.958 276.716 296.484 281.916 295.917 287.21C295.917 287.21 295.581 290.338 295.168 293.674L287.4 294.774L262.608 288.345L262.608 381L266.014 380.622C266.014 380.622 270.935 379.865 275.572 377.785C275.572 377.785 280.208 375.705 283.142 373.531C283.142 373.531 286.075 371.356 286.075 370.221L286.075 300.258L292.888 299.293L292.888 366.818L296.106 366.251C296.106 366.251 302.919 365.305 306.893 362.941C306.893 362.941 310.868 360.578 310.868 360.011L310.868 296.748L317.492 295.81L317.492 358.12L320.709 357.741C320.709 357.741 327.712 356.796 331.686 354.527C331.686 354.527 335.66 352.258 335.85 351.501L335.85 347.152C336.744 347.456 337.687 347.909 338.31 348.57C338.31 348.57 339.824 350.178 340.581 352.636C340.581 352.636 341.527 355.283 341.717 359.538C341.717 359.538 341.906 363.793 341.906 369.654C341.906 369.654 353.072 367.007 358.371 363.036C358.371 363.036 363.67 359.065 365.279 353.298C365.279 353.298 366.887 347.531 366.887 339.4L366.887 292.694C366.887 292.694 369.726 291.56 371.524 290.236C371.524 290.236 373.322 288.912 374.079 287.589L351.369 273.974L340.975 287.191L329.247 288.851L317.492 290.425L317.492 290.515L310.868 291.453L310.868 291.37L304.992 292.236C306.8 290.51 309.065 288.283 311.436 285.792C311.436 285.792 316.924 280.025 322.034 274.069C322.034 274.069 323.723 272.1 325.878 269.528L370.862 263.196C370.862 263.196 375.404 262.44 376.161 259.414C376.161 259.414 371.997 256.2 366.793 252.796C366.793 252.796 362.452 249.957 358.816 247.592C359.745 247.205 360.681 246.786 361.494 246.367C361.494 246.367 364.427 244.854 364.427 244.098L364.427 208.549C364.427 208.549 368.402 207.225 369.821 205.712C369.821 205.712 371.241 204.199 371.43 202.119L340.77 203.821L340.77 242.032L326.576 244.011L326.576 201.363C326.576 201.363 329.983 200.229 331.307 198.81ZM335.85 293.211L335.85 343.939C336.847 343.848 337.742 343.749 337.742 343.749C339.445 343.56 340.392 343.37 340.392 343.37C341.906 343.182 342.379 342.331 342.379 342.331C342.852 341.48 342.852 340.156 342.852 340.156L342.852 292.22L335.85 293.211ZM245.385 210.061L243.114 208.549L230.813 227.079L195.043 231.996L196.557 237.101L213.401 234.733L213.401 284.057L196.368 286.454L197.882 291.56L213.401 289.395L213.401 342.299C212.313 342.759 211.235 343.213 210.184 343.654C210.184 343.654 199.585 348.098 193.908 350.178L208.291 377.785C208.291 377.785 212.266 376.083 213.212 371.356C213.212 371.356 230.813 355.472 242.641 343.182C242.641 343.182 254.47 330.89 261.472 322.949L260.904 321.247C260.904 321.247 250.563 326.126 239.14 331.196L239.14 285.804L256.173 283.429C256.173 283.429 260.336 282.861 260.904 279.647C260.904 279.647 258.444 276.621 254.753 273.123C254.753 273.123 251.063 269.625 248.319 266.978L245.574 264.331L239.14 276.231L239.14 231.114L259.769 228.214C259.769 228.214 264.311 227.647 265.068 224.432L258.255 219.327C258.255 219.327 254.47 216.49 251.063 214.032C251.063 214.032 247.656 211.574 245.385 210.061Z"
fill-rule="evenodd" fill="#FFFFFF">
</path>
<path
d="M135.507 0L123.016 15.5055L124.909 15.3164L124.909 15.3599L23.4677 29.4983L25.171 34.6036L124.909 20.6593L124.909 43.3665L30.0918 56.5382L31.795 61.6438L124.909 48.6663L124.909 71.1154L23.2784 85.2802L24.9818 90.3855L124.909 76.4149L124.909 85.2802L129.829 84.5237C129.829 84.5237 134.561 83.9566 140.144 81.9711C140.144 81.9711 145.727 79.9857 149.796 77.811C149.796 77.811 153.865 75.6364 153.865 74.8801L153.865 20.9891C153.865 20.9891 156.893 19.8546 158.691 18.5309C158.691 18.5309 160.489 17.2073 161.246 15.8837L135.507 0ZM98.1109 101.449C98.3776 97.8851 98.6253 93.9166 98.7916 89.8185C98.7916 89.8185 102.009 89.0619 103.523 87.5493C103.523 87.5493 105.037 86.0365 105.416 83.7674L69.0783 85.8473C69.0783 85.8473 68.8892 99.8401 68.3214 112.036C68.3214 112.036 67.7535 124.233 64.82 135.484C64.82 135.484 61.8866 146.735 54.7896 157.135C54.7896 157.135 47.6924 167.535 34.4446 177.746C34.4446 177.746 21.1966 187.957 0 198.546L1.13554 200.815C1.13554 200.815 29.3346 191.36 47.3139 181.622C47.3139 181.622 65.2933 171.884 75.5131 161.578C75.5131 161.578 85.7329 151.273 90.4642 140.022C90.4642 140.022 95.0617 129.09 96.6429 116.825C97.1199 120.302 97.6761 123.831 98.3183 127.164C98.3183 127.164 101.252 142.386 107.876 153.164C107.876 153.164 114.5 163.942 126.328 170.277C126.328 170.277 138.157 176.611 157.082 178.124C157.082 178.124 158.218 166.211 163.99 158.931C163.99 158.931 169.763 151.651 180.171 147.68L180.171 145.222C180.171 145.222 157.839 146.357 142.51 143.993C142.51 143.993 127.18 141.629 117.622 135.295C117.622 135.295 116.44 134.511 114.693 133.031C117.779 131.494 121.533 129.577 125.287 127.542C125.287 127.542 134.182 122.72 142.415 117.898C142.415 117.898 150.647 113.076 157.272 108.727C157.272 108.727 160.678 108.727 162.287 107.877C162.287 107.877 163.896 107.026 164.652 105.513L134.182 88.3056C134.182 88.3056 131.533 94.1675 126.801 102.487C126.801 102.487 122.07 110.807 116.676 119.316C116.676 119.316 113.855 123.767 110.361 128.876C107.819 126.122 105.111 122.547 103.144 118.276C103.144 118.276 100.147 111.768 98.1109 101.449ZM50.1529 122.437C50.1529 122.437 50.7205 113.076 47.6924 102.109L45.4213 102.298C45.4213 102.298 44.2859 107.404 40.7846 112.415C40.7846 112.415 37.2833 117.426 32.9304 121.397C32.9304 121.397 28.5776 125.368 24.7925 127.826C24.7925 127.826 19.6826 131.418 17.033 136.524C17.033 136.524 14.3834 141.629 16.4653 147.302C16.4653 147.302 18.1686 151.462 22.1429 153.069C22.1429 153.069 26.1173 154.677 30.7542 153.826C30.7542 153.826 35.3909 152.975 38.608 149.949C38.608 149.949 43.3396 145.789 46.4622 138.793C46.4622 138.793 49.585 131.796 50.1529 122.437Z"
fill-rule="evenodd" fill="#FFFFFF">
</path>
<path
d="M324.305 12.2711C324.305 12.2711 317.113 9.05652 303.676 8.86743L302.162 10.002C302.162 10.002 304.623 13.4056 306.515 17.9438C306.515 17.9438 308.408 22.482 309.448 27.5875C309.448 27.5875 310.49 32.6929 310.3 37.9876C310.3 37.9876 315.41 41.9585 320.615 41.4856C320.615 41.4856 325.819 41.013 329.604 37.7039C329.604 37.7039 333.389 34.3948 334.809 29.762C334.809 29.762 336.228 25.1293 333.863 20.3074C333.863 20.3074 331.497 15.4856 324.305 12.2711ZM252.388 20.5911C252.388 20.5911 253.713 19.0784 253.902 17.1874L223.999 18.8893L223.999 57.2292L222.296 57.4639L201.289 51.9802L201.289 132.533L204.317 132.155C204.317 132.155 208.67 131.399 212.55 129.697C212.55 129.697 216.429 127.995 218.89 126.104C218.89 126.104 221.35 124.213 221.35 123.268L221.35 119.252L224.567 118.796L224.567 157.949C220.47 158.968 215.885 160.093 211.698 161.086C211.698 161.086 200.532 163.733 194.286 165.246L206.588 192.664C206.588 192.664 210.562 191.151 212.266 187.18C212.266 187.18 231.57 174.322 244.723 165.057C244.723 165.057 250.326 161.11 256.481 156.528C256.574 157.314 256.662 158.111 256.741 158.911C256.741 158.911 257.498 166.569 256.93 174.133C256.93 174.133 261.661 178.671 266.393 178.482C266.393 178.482 271.124 178.293 274.72 174.89C274.72 174.89 278.316 171.486 279.735 165.813C279.735 165.813 281.155 160.141 279.262 153.522C279.262 153.522 277.37 146.904 271.124 140.569C271.124 140.569 264.879 134.235 252.956 129.129L250.874 130.264C250.874 130.264 252.956 136.504 254.47 143.879C254.47 143.879 254.982 146.373 255.559 149.967C253.117 150.613 250.367 151.338 247.467 152.097L247.467 115.55L251.252 115.014L251.252 122.7L254.659 122.133C254.659 122.133 258.066 121.755 261.945 120.148C261.945 120.148 265.825 118.54 268.664 116.933C268.664 116.933 271.503 115.326 271.503 114.759L271.503 75.5517C272.294 76.6793 273.597 78.1008 275.477 78.8312C275.477 78.8312 278.884 80.1548 282.669 79.3041C282.669 79.3041 286.454 78.453 288.914 75.9947C288.914 75.9947 289.295 75.5853 289.861 74.7746L289.861 162.22C289.861 162.22 289.861 170.73 292.132 175.173C292.132 175.173 294.403 179.617 300.08 180.562C300.08 180.562 305.758 181.508 315.978 180.184L333.957 177.537C333.957 177.537 349.665 175.457 358.56 172.526C358.56 172.526 367.455 169.595 371.146 165.813C371.146 165.813 374.836 162.031 374.836 156.737C374.836 156.737 374.836 153.333 373.038 151.253C373.038 151.253 371.24 149.173 366.32 147.66L365.563 123.835L363.67 124.024C363.67 124.024 360.832 132.533 358.371 139.151C358.371 139.151 355.911 145.77 354.018 148.417C354.018 148.417 352.883 149.93 351.653 150.591C351.653 150.591 350.422 151.253 348.53 151.631C348.53 151.631 346.637 152.199 343.515 152.671C343.515 152.671 340.392 153.144 336.796 153.522L321.845 155.602C321.845 155.602 317.87 156.17 316.546 155.319C316.546 155.319 315.221 154.468 315.221 152.01L315.221 121.223C319.166 119.158 324.815 116.105 330.74 112.584C330.74 112.584 341.717 106.06 351.558 99.3477C351.558 99.3477 361.399 92.6348 367.834 87.1511C367.834 87.1511 372.755 87.5295 373.89 85.4493L345.691 71.6457C345.691 71.6457 341.906 78.2638 335.66 87.5295C335.66 87.5295 329.415 96.7949 322.318 105.871C322.318 105.871 319.254 109.789 315.221 114.461L315.221 73.9148C315.221 73.9148 321.088 72.213 321.466 68.0529L292.639 69.4327C293.542 67.0725 294.325 64.086 294.592 60.4893C294.592 60.4893 294.848 57.0363 293.946 51.543L346.406 44.1813C346.313 45.1622 346.201 46.2562 346.07 47.4419C346.07 47.4419 345.502 52.5475 344.934 57.5584C344.934 57.5584 344.366 62.5695 343.798 66.3512L345.313 67.1074C345.313 67.1074 351.369 62.9476 359.033 56.8021C359.033 56.8021 366.698 50.6565 371.808 45.7402C371.808 45.7402 374.836 45.1731 376.35 44.5112C376.35 44.5112 377.865 43.8494 379 42.5258L357.425 24.9402L344.747 39.1196L292.864 46.4001C292.135 43.5528 291.109 40.3943 289.671 37.0421L287.022 37.4202C287.022 37.4202 287.589 40.8238 286.075 44.5112C286.075 44.5112 284.561 48.1985 282.29 51.5075C282.29 51.5075 280.019 54.8166 277.938 56.8965C277.938 56.8965 273.952 59.5515 271.503 63.6957L271.503 58.7875C271.503 58.7875 273.963 57.842 275.666 56.5184C275.666 56.5184 277.37 55.1948 278.127 54.4385L258.823 42.3366L249.549 53.6819L250.522 53.574L247.278 54.0212L247.278 23.2384C247.278 23.2384 251.063 22.1038 252.388 20.5911ZM227.785 62.0524L221.35 62.9476L221.35 113.958L227.785 113.046L227.785 62.0524ZM244.25 110.712L251.252 109.719L251.252 58.7875L244.25 59.7616L244.25 110.712Z"
fill-rule="evenodd" fill="url(#linear_fill_10_13)">
</path>
<defs>
<radialGradient id="linear_fill_10_10" cx="0" cy="0" r="1"
gradientTransform="translate(0.7568359375 380.6407470703125) rotate(40.09259269085326) scale(169.4049123016846, 179.00393094097493)"
gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#FDE7BA" />
<stop offset="1" stop-color="#FAD07F" />
</radialGradient>
<radialGradient id="linear_fill_10_13" cx="0" cy="0" r="1"
gradientTransform="translate(369.83642578125 18.2392578125) rotate(-134.18336923042267) scale(189.70951030162144, 188.93201972522965)"
gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#FFFFFF" stop-opacity="0.5" />
<stop offset="1" stop-color="#FFFFFF" />
</radialGradient>
</defs>
</svg>
<h1>繁简字匹配</h1>
<h2>挑战下你能认多少个繁体字</h2>
<p id="welcomeTips">共 N/A 题,从 6 个繁体字中选出正确的<br>N/A 秒不下手就算输喽</p>
<div class="button-group">
<button onclick="startGame()" class="big-button">开始游戏</button>
</div>
</div>
<div id="pauseScreen" class="screen pause-screen" style="display: none; opacity: 0;">
<div class="button-group" style="flex-direction: column;">
<button onclick="resumeGame()" class="big-button">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48"
height="48" viewBox="0 0 48 48" fill="none">
<path
d="M43.01 23.9974C43.01 25.4374 42.65 26.7674 41.93 28.0074C41.22 29.2474 40.24 30.2174 39 30.9274L18 43.0574C16.76 43.7674 15.42 44.1274 14 44.1274C12.57 44.1274 11.23 43.7674 10 43.0574C8.76 42.3374 7.78 41.3574 7.07 40.1174C6.36 38.8774 6 37.5474 6 36.1174L6 11.8774C6 10.4474 6.36 9.11744 7.07 7.87744C7.78 6.63744 8.76 5.65744 10 4.94744C11.23 4.23744 12.57 3.87744 14 3.87744C15.42 3.87744 16.76 4.23744 18 4.94744L39 17.0674C40.24 17.7774 41.22 18.7574 41.93 19.9874C42.65 21.2274 43.01 22.5674 43.01 23.9974Z"
fill="#000000">
</path>
</svg>
继续游戏
</button>
<!-- <button onclick="restartGame()" class="big-button"> -->
<button onclick="quickRestart()" class="big-button">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48"
height="48" viewBox="0 0 48 48" fill="none">
<path
d="M37.95 9.78C39.7 11.58 41.06 13.64 42.01 15.97C43 18.37 43.5 20.89 43.5 23.53C43.5 26.16 43 28.68 42.01 31.09C41.06 33.42 39.7 35.48 37.95 37.28C36.2 39.08 34.19 40.47 31.91 41.46C29.55 42.49 27.08 43 24.5 43C21.92 43 19.45 42.49 17.09 41.46C14.81 40.47 12.8 39.08 11.05 37.28C9.3 35.48 7.94 33.42 6.99 31.09C6 28.68 5.5 26.16 5.5 23.53C5.5 20.89 6 18.37 6.99 15.97C7.94 13.64 9.3 11.57 11.06 9.76C11.3189 9.49821 11.5828 9.24487 11.8519 9L6.5 9C6.43 9 6.37 9 6.3 8.99C6.24 8.98 6.17 8.97 6.11 8.96C6.05 8.95 5.98 8.93 5.92 8.91C5.86 8.89 5.8 8.87 5.73 8.85C5.67 8.82 5.61 8.79 5.56 8.76C5.5 8.73 5.44 8.7 5.39 8.66C5.33 8.63 5.28 8.59 5.23 8.55C5.18 8.5 5.13 8.46 5.09 8.41C5.04 8.37 5 8.32 4.95 8.27C4.91 8.22 4.87 8.17 4.84 8.11C4.8 8.06 4.77 8 4.74 7.94C4.71 7.89 4.68 7.83 4.65 7.77C4.63 7.7 4.61 7.64 4.59 7.58C4.57 7.52 4.55 7.45 4.54 7.39C4.53 7.33 4.52 7.26 4.51 7.2C4.5 7.13 4.5 7.07 4.5 7C4.5 6.93 4.5 6.87 4.51 6.8C4.52 6.74 4.53 6.67 4.54 6.61C4.55 6.55 4.57 6.48 4.59 6.42C4.61 6.36 4.63 6.3 4.65 6.23C4.68 6.17 4.71 6.11 4.74 6.06C4.77 6 4.8 5.94 4.84 5.89C4.87 5.83 4.91 5.78 4.95 5.73C5 5.68 5.04 5.63 5.09 5.59C5.13 5.54 5.18 5.5 5.23 5.45C5.28 5.41 5.33 5.37 5.39 5.34C5.44 5.3 5.5 5.27 5.56 5.24C5.61 5.21 5.67 5.18 5.73 5.15C5.8 5.13 5.86 5.11 5.92 5.09C5.98 5.07 6.05 5.05 6.11 5.04C6.17 5.03 6.24 5.02 6.3 5.01C6.37 5 6.43 5 6.5 5L14.5 5C15.04 5 15.56 5.11 16.06 5.32C16.54 5.52 16.96 5.81 17.33 6.17C17.69 6.54 17.98 6.96 18.18 7.44C18.39 7.94 18.5 8.46 18.5 9L18.5 17C18.5 17.07 18.5 17.13 18.49 17.2C18.48 17.26 18.47 17.33 18.46 17.39C18.45 17.45 18.43 17.52 18.41 17.58C18.39 17.64 18.37 17.7 18.35 17.77C18.32 17.83 18.29 17.89 18.26 17.94C18.23 18 18.2 18.06 18.16 18.11C18.13 18.17 18.09 18.22 18.05 18.27C18 18.32 17.96 18.37 17.91 18.41C17.87 18.46 17.82 18.5 17.77 18.55C17.72 18.59 17.67 18.63 17.61 18.66C17.56 18.7 17.5 18.73 17.44 18.76C17.39 18.79 17.33 18.82 17.27 18.85C17.2 18.87 17.14 18.89 17.08 18.91C17.02 18.93 16.95 18.95 16.89 18.96C16.83 18.97 16.76 18.98 16.7 18.99C16.63 19 16.57 19 16.5 19C16.43 19 16.37 19 16.3 18.99C16.24 18.98 16.17 18.97 16.11 18.96C16.05 18.95 15.98 18.93 15.92 18.91C15.86 18.89 15.8 18.87 15.73 18.85C15.67 18.82 15.61 18.79 15.56 18.76C15.5 18.73 15.44 18.7 15.39 18.66C15.33 18.63 15.28 18.59 15.23 18.55C15.18 18.5 15.13 18.46 15.09 18.41C15.04 18.37 15 18.32 14.95 18.27C14.91 18.22 14.87 18.17 14.84 18.11C14.8 18.06 14.77 18 14.74 17.94C14.71 17.89 14.68 17.83 14.65 17.77C14.63 17.7 14.61 17.64 14.59 17.58C14.57 17.52 14.55 17.45 14.54 17.39C14.53 17.33 14.52 17.26 14.51 17.2C14.5 17.13 14.5 17.07 14.5 17L14.5 12.001C14.2969 12.1874 14.0969 12.3803 13.9 12.58C12.52 14 11.45 15.64 10.68 17.49C9.89 19.41 9.5 21.42 9.5 23.53C9.5 25.64 9.9 27.65 10.69 29.57C11.45 31.42 12.52 33.06 13.91 34.49C15.3 35.91 16.89 37.01 18.68 37.79C20.53 38.6 22.47 39 24.5 39C26.53 39 28.47 38.6 30.32 37.79C32.11 37.01 33.7 35.91 35.09 34.49C36.48 33.06 37.55 31.42 38.31 29.57C39.1 27.65 39.5 25.64 39.5 23.53C39.5 21.42 39.11 19.41 38.32 17.49C37.55 15.64 36.48 14 35.09 12.56C34.38 11.85 33.62 11.21 32.81 10.65C32.7 10.57 32.6 10.49 32.51 10.39C32.42 10.3 32.34 10.2 32.27 10.09C32.2 9.98 32.14 9.86 32.09 9.74C32.04 9.62 32 9.49 31.98 9.36C31.95 9.23 31.94 9.1 31.95 8.97C31.95 8.84 31.96 8.71 31.99 8.58C32.02 8.45 32.06 8.33 32.11 8.21C32.16 8.09 32.22 7.97 32.3 7.87C32.33 7.81 32.37 7.76 32.42 7.71C32.46 7.66 32.5 7.61 32.55 7.57C32.6 7.52 32.65 7.48 32.7 7.44C32.75 7.4 32.8 7.36 32.86 7.32C32.91 7.29 32.97 7.25 33.03 7.22C33.08 7.19 33.14 7.17 33.21 7.14L33.39 7.08C33.45 7.06 33.52 7.05 33.58 7.03C33.65 7.02 33.71 7.01 33.78 7.01C33.84 7 33.91 7 33.97 7C34.04 7 34.1 7.01 34.17 7.01C34.23 7.02 34.3 7.03 34.36 7.04C34.43 7.06 34.49 7.07 34.55 7.09C34.61 7.11 34.68 7.14 34.74 7.16C34.8 7.19 34.85 7.22 34.91 7.25C34.97 7.28 35.03 7.32 35.08 7.35L33.53 9.61L35.09 7.36C36.1 8.06 37.06 8.87 37.95 9.78Z"
fill="#000000">
</path>
</svg>
重新开始
</button>
<button onclick="returnHome()" class="big-button">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48"
height="48" viewBox="0 0 48 48" fill="none">
<path
d="M20 39.9954L20 32.9954C20 30.7954 21.79 28.9954 24 28.9954C26.21 28.9954 28 30.7954 28 32.9954L28 39.9954C28 42.2054 29.79 43.9954 32 43.9954L36.5 43.9954C39.81 43.9954 42.5 41.3154 42.5 37.9954L42.5 19.9054C42.5 17.4554 41.37 15.1554 39.45 13.6354L27.72 4.37545C25.54 2.65545 22.46 2.65545 20.28 4.38545L8.55 13.6254C6.63 15.1554 5.5 17.4655 5.5 19.9054L5.5 37.9954C5.5 41.3154 8.19 43.9954 11.5 43.9954L16 43.9954C18.21 43.9954 20 42.2054 20 39.9954Z"
fill-rule="evenodd" fill="#000000">
</path>
</svg>
返回主页
</button>
</div>
</div>
<div id="gameScreen" class="screen" style="display: none; opacity: 0;">
<div id="level"></div>
<div id="question"></div>
<div class="game-controls">
<div id="timer">10S</div>
<button id="pauseBtn" class="control-btn"></button>
</div>
<div id="options"></div>
<div id="result"></div>
</div>
<div id="endScreen" class="screen" style="display: none; opacity: 0;">
<div id="endGameTitle" class="game-over-img" aria-label="游戏结束"></div>
<p id="finalScore"></p>
<div class="button-group">
<button onclick="restartGame()" id="restartGameBtn" class="big-button">再来一局</button>
</div>
</div>
<dialog id="redPacketDialog">
<button class="close-btn" onclick="closeDialog()">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10"
viewBox="0 0 36.00341796875 36.010009765625" fill="none">
<path
d="M0.348968 34.3972C0.391899 34.4831 0.442838 34.5708 0.501784 34.6603C0.543783 34.7268 0.600699 34.8049 0.672531 34.8947L0.672543 34.8947L0.707125 34.9379L0.746294 34.9771C0.750536 34.9814 0.761807 34.9937 0.780106 35.014C0.80812 35.0451 0.833288 35.0724 0.855609 35.0957C0.92283 35.1713 1.00718 35.2497 1.10866 35.3308L1.10869 35.3309C1.19796 35.4023 1.27462 35.4593 1.3387 35.502L1.33874 35.5021L1.35849 35.5153L1.37887 35.5275L1.3789 35.5275C1.38374 35.5304 1.39384 35.5367 1.40919 35.5462C1.47336 35.586 1.52977 35.6189 1.57842 35.6449C1.67069 35.6982 1.7639 35.7425 1.85805 35.7778C1.9216 35.8053 1.99557 35.8326 2.07997 35.8598C2.09318 35.8641 2.10226 35.867 2.10721 35.8687C2.15756 35.8855 2.22023 35.9028 2.29522 35.9207C2.3181 35.9262 2.33258 35.9298 2.33867 35.9315L2.39313 35.9471L2.44899 35.9564L2.44907 35.9559L2.45743 35.9578L2.55243 35.9728L2.63901 35.9864L2.64743 35.9878L2.72063 36L2.79841 36C2.80307 36.0003 2.8125 36.001 2.82671 36.0021C2.89558 36.0074 2.95448 36.01 3.00339 36.01C3.04897 36.01 3.1062 36.0074 3.17507 36.0021C3.18822 36.001 3.19752 36.0003 3.20298 36L3.26446 36L3.33481 35.9899L3.33474 35.9895L3.34172 35.9889L3.44173 35.9739L3.53479 35.96L3.54173 35.959L3.62407 35.9472L3.69414 35.9238C3.69863 35.9227 3.70501 35.9213 3.71327 35.9194C3.78745 35.9023 3.84955 35.8854 3.89957 35.8687C3.99499 35.8369 4.07801 35.8052 4.14862 35.7737C4.21891 35.7464 4.29955 35.71 4.39052 35.6645L4.39059 35.6644C4.48104 35.6192 4.57354 35.5651 4.66809 35.502L4.7042 35.478L4.73806 35.4509C4.74279 35.4471 4.75729 35.4364 4.78154 35.4188C4.83061 35.3831 4.86946 35.3538 4.89809 35.3309C4.99642 35.2522 5.07866 35.1762 5.14481 35.1028L18.0032 22.24L30.1808 34.4176L30.1758 34.4226L30.8829 35.1297C30.946 35.1928 31.0026 35.2461 31.0528 35.2896L31.59 35.8268L31.7051 35.7117C31.7593 35.737 31.8092 35.7586 31.8548 35.7763C31.9254 35.8078 32.0084 35.8395 32.1038 35.8713C32.1837 35.898 32.2826 35.9214 32.4005 35.9415C32.513 35.9693 32.6246 35.9858 32.7355 35.9909C32.8119 35.9987 32.9001 36.0026 33 36.0026C33.1011 36.0026 33.1907 35.9988 33.2688 35.9912C33.3843 35.9864 33.4972 35.9696 33.6073 35.9407C33.706 35.924 33.794 35.9035 33.8715 35.8793C33.9766 35.8486 34.0718 35.814 34.1571 35.7755C34.227 35.7483 34.307 35.7121 34.3972 35.667L34.4316 35.6499L34.4645 35.6301C34.4887 35.6156 34.5228 35.5943 34.5669 35.5663C34.5962 35.5476 34.6154 35.5356 34.6245 35.5301L34.6449 35.5178L34.6647 35.5046C34.7288 35.4619 34.8055 35.4048 34.8947 35.3335C34.9265 35.308 34.9663 35.2738 35.014 35.2309C35.0329 35.2138 35.0432 35.2047 35.0447 35.2035L35.1315 35.1341L35.2009 35.0473C35.2021 35.0458 35.2112 35.0355 35.2283 35.0166C35.2712 34.9689 35.3054 34.9291 35.3309 34.8973C35.4023 34.808 35.4593 34.7314 35.502 34.6673L35.5153 34.6475L35.5275 34.6271C35.533 34.618 35.545 34.5988 35.5636 34.5696C35.5917 34.5254 35.613 34.4912 35.6275 34.4671L35.6473 34.4342L35.6644 34.3998C35.7095 34.3097 35.7456 34.2298 35.7728 34.1601C35.8113 34.0746 35.846 33.9792 35.8767 33.8739C35.901 33.7965 35.9214 33.7085 35.9381 33.6098C35.967 33.4997 35.9838 33.3869 35.9886 33.2714C35.9962 33.1933 36 33.1037 36 33.0026C36 32.9027 35.9961 32.8145 35.9883 32.7382C35.9832 32.6273 35.9667 32.5156 35.9389 32.4031C35.9188 32.2852 35.8954 32.1863 35.8687 32.1064C35.8369 32.011 35.8052 31.928 35.7737 31.8574C35.756 31.8118 35.7344 31.7619 35.7091 31.7077L35.8242 31.5926L35.287 31.0554C35.2435 31.0052 35.1902 30.9486 35.1271 30.8855L34.42 30.1784L34.415 30.1834L22.2368 18.0052L35.0956 5.14207C35.1397 5.10258 35.1867 5.05604 35.2366 5.00247C35.2495 4.98857 35.2575 4.98012 35.2605 4.97711L35.2997 4.93794L35.3343 4.8947C35.3904 4.82461 35.4441 4.74835 35.4955 4.66591C35.5494 4.58877 35.6035 4.4959 35.6578 4.38729C35.6611 4.3808 35.6675 4.3684 35.6772 4.35009C35.7167 4.27556 35.7484 4.21017 35.7725 4.15392L35.7889 4.11569L35.8021 4.0763L35.8021 4.07622L35.8621 3.89623C35.9031 3.77328 35.9323 3.65935 35.9498 3.55443L35.9512 3.54595L35.9662 3.45096L35.9798 3.36444L35.9798 3.36431L35.9812 3.35596L35.9817 3.35293L35.9834 3.3414C35.9967 3.24783 36.0034 3.13403 36.0034 3C36.0034 2.86597 35.9967 2.75217 35.9834 2.6586L35.9833 2.65854L35.9817 2.64707L35.9812 2.64404L35.9798 2.6356L35.9662 2.54905L35.9512 2.45405L35.9498 2.44563L35.9498 2.44557C35.9323 2.34065 35.9031 2.22672 35.8621 2.10377C35.8579 2.0911 35.8503 2.06682 35.8392 2.03093C35.8235 1.98015 35.8112 1.9411 35.8021 1.91374L35.7796 1.84635L35.7478 1.78276L35.7477 1.78262C35.707 1.70126 35.6721 1.63481 35.6429 1.58325C35.599 1.49782 35.5553 1.42266 35.5118 1.35778C35.452 1.25556 35.3788 1.15829 35.2922 1.06596C35.2346 0.996533 35.1784 0.935886 35.1237 0.88402C35.0892 0.846937 35.0499 0.807878 35.0059 0.766843C34.992 0.75392 34.9836 0.745939 34.9805 0.742899L34.9413 0.70373L34.8981 0.66915L34.8981 0.669131C34.828 0.613075 34.7518 0.55932 34.6693 0.507866C34.5922 0.454006 34.4993 0.399915 34.3907 0.345592L34.3906 0.345572L34.2106 0.255572L34.147 0.22379L34.0796 0.201317L33.8996 0.141317C33.7767 0.100331 33.6627 0.0710937 33.5578 0.053605L33.5463 0.051695L33.5417 0.05104L33.5348 0.050027L33.4417 0.036064L33.3464 0.021762L33.3417 0.021064C33.2501 0.00702133 33.1373 0 33.0034 0C32.8693 -1.55221e-10 32.7555 0.00668367 32.662 0.020051L32.6505 0.021695L32.6432 0.022905L32.5524 0.037238L32.4623 0.051464L32.4574 0.052237C32.3547 0.0680197 32.238 0.0977133 32.1072 0.141318C32.0945 0.145529 32.0702 0.153162 32.0343 0.164218C31.9836 0.179831 31.9445 0.192198 31.9172 0.201318L31.8498 0.22379L31.7862 0.255573L31.7861 0.255592C31.7047 0.296301 31.6382 0.331287 31.5866 0.360548C31.4991 0.40546 31.4224 0.450216 31.3565 0.494816C31.2787 0.541123 31.1961 0.59923 31.1087 0.669136L31.0655 0.70373L31.0263 0.742884C31.022 0.747172 31.0097 0.758441 30.9894 0.776702C30.9431 0.818431 30.9054 0.853829 30.8763 0.882898L29.1692 2.59L29.1792 2.59L18.0004 13.7688L5.14213 0.910519C5.10264 0.866424 5.05609 0.8194 5.00248 0.769447C4.98861 0.75653 4.98016 0.748546 4.97711 0.745495L4.93794 0.706331L4.8947 0.671732C4.80731 0.601826 4.72473 0.543721 4.64694 0.497416C4.581 0.452819 4.50428 0.408064 4.41678 0.363153C4.36517 0.333884 4.29865 0.298892 4.21722 0.258176L4.21721 0.258174L4.13409 0.21661L4.04472 0.191077C4.01198 0.181723 3.96248 0.166004 3.89623 0.143919C3.77327 0.102932 3.65933 0.073695 3.5544 0.056207L3.54596 0.054838L3.45096 0.039838L3.36018 0.025504L3.35293 0.024295L3.34142 0.022651C3.24785 0.00928433 3.13405 0.002601 3 0.002601C2.86595 0.002601 2.75215 0.00928433 2.65858 0.022651L2.65857 0.022652L2.64707 0.024295L2.63981 0.025504L2.54904 0.039838L2.45404 0.054838L2.4456 0.056207C2.34067 0.073695 2.22673 0.102932 2.10377 0.143917C2.03752 0.166003 1.98802 0.181722 1.95528 0.191077L1.86591 0.21661L1.78279 0.258174C1.70136 0.29889 1.63483 0.333883 1.58321 0.363153C1.49572 0.408065 1.419 0.452819 1.35306 0.497416C1.27527 0.543721 1.19269 0.601826 1.1053 0.671732L1.06206 0.706331L1.02289 0.745494C1.01984 0.748544 1.01139 0.756528 0.997522 0.769447C0.954369 0.809656 0.915789 0.847968 0.881782 0.884383C0.845367 0.91839 0.807055 0.95697 0.766846 1.00012C0.753926 1.01399 0.745942 1.02245 0.742893 1.02549L0.70373 1.06466L0.669131 1.10791C0.599226 1.19529 0.541121 1.27787 0.494817 1.35566C0.450219 1.4216 0.405464 1.49832 0.360552 1.58581C0.331283 1.63742 0.29629 1.70395 0.255574 1.78538L0.255573 1.78539L0.214009 1.86852L0.141317 2.10637C0.100332 2.22933 0.0710947 2.34327 0.053606 2.4482L0.052237 2.45664L0.037237 2.55164L0.022903 2.64242L0.021695 2.64967L0.020051 2.66118C0.00668367 2.75475 0 2.86855 0 3.0026C0 3.13665 0.00668367 3.25045 0.020051 3.34402L0.020051 3.34403L0.021695 3.35553L0.022903 3.36278L0.037237 3.45356L0.052237 3.54856L0.053606 3.557C0.071094 3.66193 0.100331 3.77587 0.141316 3.89883C0.163403 3.96509 0.179123 4.01459 0.188476 4.04732L0.214009 4.13669L0.255572 4.21981C0.296289 4.30124 0.331283 4.36777 0.360553 4.41939C0.405464 4.50688 0.450218 4.5836 0.494815 4.64954C0.54112 4.72733 0.599225 4.80991 0.669131 4.89729L0.70373 4.94054L0.742894 4.97971C0.745941 4.98276 0.753925 4.99121 0.766846 5.00508C0.8168 5.05869 0.863825 5.10524 0.907922 5.14474L13.7662 18.003L0.886293 30.8829C0.857233 30.912 0.821837 30.9497 0.7801 30.996C0.761835 31.0163 0.750564 31.0286 0.746288 31.0329L0.707125 31.0721L0.672519 31.1153L0.672501 31.1153C0.600668 31.2051 0.54376 31.2832 0.501777 31.3497C0.442826 31.4392 0.39189 31.5269 0.348968 31.6128L0.258968 31.7928L0.227186 31.8564L0.204712 31.9238L0.144712 32.1038L0.13784 32.1244L0.131871 32.1453C0.13005 32.1516 0.127036 32.162 0.122829 32.1763C0.0907877 32.2855 0.0684157 32.3812 0.055713 32.4633C0.0423403 32.5438 0.031917 32.6099 0.024443 32.6616C0.010411 32.7536 0.003395 32.8697 0.003395 33.01C0.003395 33.1439 0.010416 33.2567 0.024458 33.3483L0.025152 33.353L0.039459 33.4483L0.053421 33.5414L0.054435 33.5483L0.05509 33.5529L0.057002 33.5644C0.0688433 33.6355 0.0901043 33.7229 0.120785 33.8268C0.125938 33.8443 0.129633 33.8569 0.131871 33.8647L0.13784 33.8856L0.144712 33.9062L0.204712 34.0862L0.227186 34.1536L0.258968 34.2172L0.348968 34.3972Z"
fill-rule="evenodd" fill="#FF9D96">
</path>
</svg>
</button>
<div class="dialog-content">
<h2>领取红包封面</h2>
<img src="./src/red-packet.png" alt="红包封面" class="red-packet-preview">
<div class="dialog-buttons">
<button id="jumpButton" onclick="window.location.href='https://wx.qq.com/'">前往领取</button>
<button id="copyButton" onclick="copyLink()">复制链接</button>
</div>
</div>
</dialog>
<script>
const restartGameBtn = document.getElementById('restartGameBtn');
// 简体字和对应的繁体字数组
const chineseCharacters = [
{
simplified: "卫",
correct: "衛",
options: ["衛", "保", "护", "防", "守", "安"]
},
{
simplified: "历",
correct: "曆",
options: ["曆", "史", "日", "月", "年", "表"]
},
{
simplified: "态",
correct: "態",
options: ["態", "度", "姿", "情", "状", "势"]
},
{
simplified: "医",
correct: "醫",
options: ["醫", "生", "院", "药", "治", "疗"]
},
{
simplified: "确",
correct: "確",
options: ["確", "定", "实", "真", "准", "信"]
},
{
simplified: "宝",
correct: "寶",
options: ["寶", "贝", "玉", "珍", "贵", "藏"]
},
{
simplified: "证",
correct: "證",
options: ["證", "明", "据", "物", "人", "词"]
},
{
simplified: "质",
correct: "質",
options: ["質", "量", "本", "性", "疑", "问"]
},
{
simplified: "总",
correct: "總",
options: ["總", "共", "计", "括", "之", "体"]
},
{
simplified: "击",
correct: "擊",
options: ["擊", "打", "敲", "攻", "破", "中"]
},
{
simplified: "宪",
correct: "憲",
options: ["憲", "法", "章", "规", "律", "令"]
},
{
simplified: "仅",
correct: "僅",
options: ["僅", "只", "单", "独", "唯", "一"]
},
{
simplified: "务",
correct: "務",
options: ["務", "必", "事", "任", "职", "业"]
},
{
simplified: "阅",
correct: "閱",
options: ["閱", "读", "览", "看", "查", "检"]
},
{
simplified: "归",
correct: "歸",
options: ["歸", "回", "返", "还", "到", "来"]
},
{
simplified: "临",
correct: "臨",
options: ["臨", "近", "到", "面", "上", "时"]
},
{
simplified: "剧",
correct: "劇",
options: ["劇", "情", "本", "场", "演", "出"]
},
{
simplified: "联",
correct: "聯",
options: ["聯", "合", "系", "络", "邦", "盟"]
},
{
simplified: "顾",
correct: "顧",
options: ["顧", "看", "望", "回", "照", "念"]
},
{
simplified: "仓",
correct: "倉",
options: ["倉", "库", "储", "藏", "粮", "物"]
},
{
simplified: "洁",
correct: "潔",
options: ["潔", "净", "清", "纯", "白", "亮"]
},
{
simplified: "烛",
correct: "燭",
options: ["燭", "光", "火", "蜡", "芯", "焰"]
},
{
simplified: "担",
correct: "擔",
options: ["擔", "负", "挑", "扛", "承", "当"]
},
{
simplified: "伤",
correct: "傷",
options: ["傷", "害", "痛", "悲", "哀", "苦"]
},
{
simplified: "预",
correct: "預",
options: ["預", "先", "备", "计", "测", "知"]
},
{
simplified: "阴",
correct: "陰",
options: ["陰", "阳", "天", "云", "雨", "暗"]
},
{
simplified: "队",
correct: "隊",
options: ["隊", "伍", "列", "行", "团", "组"]
},
{
simplified: "节",
correct: "節",
options: ["節", "日", "气", "约", "省", "制"]
},
{
simplified: "监",
correct: "監",
options: ["監", "督", "察", "看", "审", "管"]
},
{
simplified: "属",
correct: "屬",
options: ["屬", "于", "类", "种", "家", "族"]
},
{
simplified: "艺",
correct: "藝",
options: ["藝", "术", "文", "技", "才", "能"]
},
{
simplified: "环",
correct: "環",
options: ["環", "绕", "圈", "链", "境", "球"]
},
{
simplified: "觉",
correct: "覺",
options: ["覺", "醒", "知", "感", "悟", "察"]
},
{
simplified: "购",
correct: "購",
options: ["購", "买", "进", "置", "得", "求"]
},
{
simplified: "损",
correct: "損",
options: ["損", "失", "害", "耗", "伤", "减"]
},
{
simplified: "随",
correct: "隨",
options: ["隨", "从", "伴", "跟", "着", "行"]
},
{
simplified: "寻",
correct: "尋",
options: ["尋", "找", "觅", "求", "探", "索"]
},
{
simplified: "获",
correct: "獲",
options: ["獲", "得", "取", "收", "赢", "赚"]
},
{
simplified: "奋",
correct: "奮",
options: ["奮", "斗", "发", "力", "起", "勇"]
},
{
simplified: "围",
correct: "圍",
options: ["圍", "绕", "包", "圈", "困", "堵"]
},
{
simplified: "断",
correct: "斷",
options: ["斷", "开", "绝", "裂", "续", "截"]
},
{
simplified: "创",
correct: "創",
options: ["創", "造", "新", "伤", "建", "作"]
},
{
simplified: "梦",
correct: "夢",
options: ["夢", "想", "幻", "境", "游", "乡"]
},
{
simplified: "苏",
correct: "蘇",
options: ["蘇", "醒", "联", "维", "公", "州"]
},
{
simplified: "适",
correct: "適",
options: ["適", "当", "合", "应", "宜", "用"]
},
{
simplified: "条",
correct: "條",
options: ["條", "件", "子", "纹", "形", "例"]
},
{
simplified: "万",
correct: "萬",
options: ["萬", "千", "一", "亿", "数", "众"]
},
{
simplified: "双",
correct: "雙",
options: ["雙", "对", "单", "只", "两", "翼"]
},
{
simplified: "体",
correct: "體",
options: ["體", "育", "身", "积", "重", "质"]
},
{
simplified: "亿",
correct: "億",
options: ["億", "万", "千", "数", "财", "富"]
},
{
simplified: "样",
correct: "樣",
options: ["樣", "式", "品", "本", "模", "子"]
},
{
simplified: "严",
correct: "嚴",
options: ["嚴", "格", "厉", "谨", "肃", "密"]
},
{
simplified: "义",
correct: "義",
options: ["義", "务", "正", "道", "意", "举"]
},
{
simplified: "执",
correct: "執",
options: ["執", "行", "掌", "政", "法", "笔"]
},
{
simplified: "装",
correct: "裝",
options: ["裝", "扮", "饰", "修", "载", "填"]
},
{
simplified: "次",
correct: "次",
options: ["次", "序", "第", "回", "数", "等"]
},
{
simplified: "系",
correct: "系",
options: ["系", "统", "联", "列", "关", "属"]
},
{
simplified: "杂",
correct: "雜",
options: ["雜", "乱", "交", "志", "货", "草"]
},
{
simplified: "赞",
correct: "贊",
options: ["贊", "美", "扬", "助", "成", "同"]
},
{
simplified: "谢",
correct: "謝",
options: ["謝", "谢", "恩", "辞", "礼", "答"]
},
{
simplified: "住",
correct: "住",
options: ["住", "房", "宿", "所", "处", "居"]
},
{
simplified: "征",
correct: "徵",
options: ["徵", "求", "战", "服", "收", "税"]
},
{
simplified: "志",
correct: "誌",
options: ["誌", "向", "愿", "气", "记", "标"]
},
{
simplified: "众",
correct: "眾",
options: ["眾", "多", "人", "民", "群", "公"]
},
{
simplified: "尊",
correct: "尊",
options: ["尊", "敬", "重", "严", "崇", "贵"]
},
{
simplified: "办",
correct: "辦",
options: ["辦", "事", "公", "法", "理", "处"]
},
{
simplified: "备",
correct: "備",
options: ["備", "用", "准", "考", "储", "预"]
},
{
simplified: "宾",
correct: "賓",
options: ["賓", "客", "主", "馆", "迎", "请"]
},
{
simplified: "产",
correct: "產",
options: ["產", "生", "业", "品", "量", "值"]
},
{
simplified: "初",
correct: "初",
options: ["初", "始", "级", "中", "步", "原"]
},
{
simplified: "单",
correct: "單",
options: ["單", "独", "位", "一", "简", "纯"]
},
{
simplified: "等",
correct: "等",
options: ["等", "级", "同", "待", "于", "候"]
},
{
simplified: "福",
correct: "福",
options: ["福", "禄", "寿", "幸", "祥", "祉"]
},
{
simplified: "个",
correct: "個",
options: ["個", "人", "一", "两", "三", "几"]
},
{
simplified: "和",
correct: "和",
options: ["和", "平", "谐", "好", "睦", "气"]
},
{
simplified: "几",
correct: "幾",
options: ["幾", "何", "个", "乎", "许", "多"]
},
{
simplified: "介",
correct: "介",
options: ["介", "绍", "质", "入", "于", "乎"]
},
{
simplified: "决",
correct: "決",
options: ["決", "定", "心", "断", "议", "裂"]
},
{
simplified: "况",
correct: "況",
options: ["況", "且", "情", "状", "景", "实"]
},
{
simplified: "理",
correct: "理",
options: ["理", "由", "解", "想", "论", "智"]
},
{
simplified: "令",
correct: "令",
options: ["令", "命", "指", "牌", "旨", "条"]
},
{
simplified: "难",
correct: "難",
options: ["難", "易", "题", "关", "度", "处"]
}
];
let timer;
let timeLeft;
let currentQuestionIndex;
let currentLevel = 1;
let usedIndices = [];
const TOTAL_LEVELS = 10;
const TIME_LEFT = 10;
let isPaused = false;
const endGameTitle = document.getElementById('endGameTitle');
function showScreen(screenId) {
// 先将所有screen设为隐藏
document.getElementById('startScreen').style.display = 'none';
document.getElementById('gameScreen').style.display = 'none';
document.getElementById('endScreen').style.display = 'none';
// 显示目标screen并设置透明度
const targetScreen = document.getElementById(screenId);
targetScreen.style.display = 'flex';
// 使用setTimeout确保display生效后再改变透明度,实现平滑过渡
setTimeout(() => {
targetScreen.style.opacity = '1';
}, 50);
}
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}
function startTimer() {
if (!isPaused) {
timeLeft = TIME_LEFT;
document.getElementById('timer').textContent = `${timeLeft}S`;
clearInterval(timer);
const timerElement = document.getElementById('timer');
timer = setInterval(() => {
if (!isPaused) {
timeLeft--;
timerElement.textContent = `${timeLeft}S`;
if (timeLeft <= 3) {
timerElement.classList.add('timer-warning');
} else {
timerElement.classList.remove('timer-warning');
}
if (timeLeft <= 0) {
endGameTitle.className = 'game-over-img time-over-img';
endGameTitle.alt = '时间到';
endGame(`本题「${chineseCharacters[currentQuestionIndex].simplified}」的正确答案是<strong>「${chineseCharacters[currentQuestionIndex].correct}」</strong><br>你的成绩定格在了第 ${currentLevel} 关,再接再厉`);
}
}
}, 1000);
}
}
function generateQuestion() {
let newIndex;
do {
newIndex = Math.floor(Math.random() * chineseCharacters.length);
} while (usedIndices.includes(newIndex));
usedIndices.push(newIndex);
currentQuestionIndex = newIndex;
const currentQuestion = chineseCharacters[currentQuestionIndex];
document.getElementById('level').innerHTML = `<strong>第 ${currentLevel} 关</strong> 共 ${TOTAL_LEVELS} 关`;
document.getElementById('question').innerHTML = `${currentQuestion.simplified}`;
document.getElementById('result').innerHTML = '';
// Reset timer warning class
document.getElementById('timer').classList.remove('timer-warning');
const optionsDiv = document.getElementById('options');
optionsDiv.innerHTML = '';
const shuffledOptions = shuffleArray([...currentQuestion.options]);
shuffledOptions.forEach((option) => {
const button = document.createElement('button');
button.innerHTML = option;
button.addEventListener('click', () => checkAnswer(option));
optionsDiv.appendChild(button);
});
startTimer();
}
function checkAnswer(selectedOption) {
clearInterval(timer);
const currentQuestion = chineseCharacters[currentQuestionIndex];
const optionsDiv = document.getElementById('options');
const buttons = optionsDiv.getElementsByTagName('button');
if (selectedOption === currentQuestion.correct) {
if (currentLevel < TOTAL_LEVELS) {
currentLevel++;
// document.getElementById('result').innerHTML = '回答正确!进入下一关';
Array.from(buttons).forEach(button => {
if (button.innerHTML === selectedOption) {
button.classList.add('right-answer');
}
});
setTimeout(() => {
generateQuestion();
}, 1500);
} else {
endGameTitle.className = 'game-over-img';
endGameTitle.alt = '游戏结束';
Array.from(buttons).forEach(button => {
if (button.innerHTML === selectedOption) {
button.classList.add('right-answer');
}
});
if (currentLevel === TOTAL_LEVELS) {
const existingRedPacketBtn = document.querySelector('.red-packet-btn');
if (!existingRedPacketBtn) {
const redPacketBtn = document.createElement('button');
redPacketBtn.className = 'big-button red-packet-btn';
redPacketBtn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" viewBox="0 0 48 48" fill="none"><path d="M36.11 44.37C37.07 43.96 37.92 43.39 38.66 42.66C39.39 41.92 39.96 41.07 40.37 40.11C40.79 39.12 41 38.08 41 37L41 11C41 9.92 40.79 8.88 40.37 7.89C39.96 6.93 39.39 6.08 38.66 5.34C37.92 4.61 37.07 4.04 36.11 3.63C35.12 3.21 34.08 3 33 3L15 3C13.92 3 12.88 3.21 11.89 3.63C10.93 4.04 10.08 4.61 9.34 5.34C8.61 6.08 8.04 6.93 7.63 7.89C7.21 8.88 7 9.92 7 11L7 37C7 38.08 7.21 39.12 7.63 40.11C8.04 41.07 8.61 41.92 9.34 42.66C10.08 43.39 10.93 43.96 11.89 44.37C12.88 44.79 13.92 45 15 45L33 45C34.08 45 35.12 44.79 36.11 44.37ZM30.9203 21.0734C30.8344 21.6408 30.6784 22.193 30.45 22.73C30.09 23.56 29.59 24.3 28.95 24.95C28.3 25.59 27.56 26.09 26.73 26.45C25.86 26.82 24.95 27 24 27C23.05 27 22.14 26.82 21.27 26.45C20.44 26.09 19.7 25.59 19.05 24.95C18.41 24.3 17.91 23.56 17.55 22.73C17.3208 22.191 17.1645 21.6367 17.0787 21.067C16.1974 20.8087 15.3478 20.4964 14.53 20.13C13.2466 19.5538 12.07 18.8556 11 18.0355L11 37C11 37.54 11.1 38.06 11.31 38.55C11.52 39.03 11.8 39.46 12.17 39.83C12.54 40.2 12.97 40.48 13.45 40.69C13.94 40.9 14.46 41 15 41L33 41C33.54 41 34.06 40.9 34.55 40.69C35.03 40.48 35.46 40.2 35.83 39.83C36.2 39.46 36.48 39.03 36.69 38.55C36.9 38.06 37 37.54 37 37L37 18.0455C35.9301 18.8656 34.7534 19.5638 33.47 20.14C32.6522 20.5048 31.8024 20.8159 30.9203 21.0734ZM22.83 22.77C23.2 22.92 23.59 23 24 23C24.41 23 24.8 22.92 25.17 22.77C25.52 22.61 25.84 22.4 26.12 22.12C26.4 21.84 26.61 21.52 26.77 21.17C26.92 20.8 27 20.41 27 20C27 19.59 26.92 19.2 26.77 18.83C26.61 18.48 26.4 18.16 26.12 17.88C25.84 17.6 25.52 17.39 25.17 17.23C24.8 17.08 24.41 17 24 17C23.59 17 23.2 17.08 22.83 17.23C22.48 17.39 22.16 17.6 21.88 17.88C21.6 18.16 21.39 18.48 21.23 18.83C21.08 19.2 21 19.59 21 20C21 20.41 21.08 20.8 21.23 21.17C21.39 21.52 21.6 21.84 21.88 22.12C22.16 22.4 22.48 22.61 22.83 22.77ZM11 12.364L11 11C11 10.46 11.1 9.94 11.31 9.45C11.52 8.97 11.8 8.54 12.17 8.17C12.54 7.8 12.97 7.52 13.45 7.31C13.94 7.1 14.46 7 15 7L33 7C33.54 7 34.06 7.1 34.55 7.31C35.03 7.52 35.46 7.8 35.83 8.17C36.2 8.54 36.48 8.97 36.69 9.45C36.9 9.94 37 10.46 37 11L37 12.3838C35.6949 14.1694 33.9749 15.533 31.84 16.49C31.3612 16.704 30.8667 16.895 30.3566 17.0633C30.0053 16.3166 29.5364 15.6455 28.95 15.05C28.3 14.41 27.56 13.91 26.73 13.55C25.86 13.18 24.95 13 24 13C23.05 13 22.14 13.18 21.27 13.55C20.44 13.91 19.7 14.41 19.05 15.05C18.4665 15.6427 17.9993 16.3102 17.6485 17.0525C17.1398 16.884 16.6469 16.6931 16.17 16.48C14.0258 15.523 12.3051 14.151 11 12.364Z" fill-rule="evenodd" fill="#000000"></path></svg>领取红包封面';
redPacketBtn.onclick = function () {
showRedPacketDialog();
};
document.querySelector('#endScreen .button-group').insertBefore(redPacketBtn, document.querySelector('#endScreen .button-group button'));
}
}
setTimeout(() => {
setTimeout(() => {
confetti({
particleCount: 100,
spread: 180,
ticks: 120
})
}, 150);
confetti({
particleCount: 200,
spread: 270,
ticks: 180
})
restartGameBtn.innerHTML = '再来一局';
endGame(`恭喜你通关了<br>居然整整 ${TOTAL_LEVELS} 关全都答对了<br>快去领取红包封面吧`);
}, 1500);
}
} else {
// 为所有按钮添加相应的类名
Array.from(buttons).forEach(button => {
if (button.innerHTML === selectedOption) {
button.classList.add('select');
}
if (button.innerHTML === currentQuestion.correct) {
button.classList.add('right-answer');
}
});
// 1.5秒后显示游戏结束页面
setTimeout(() => {
endGameTitle.className = 'game-over-img select-wrong-img';
endGameTitle.alt = '选错啦';
endGame(`本题「${currentQuestion.simplified}」的正确答案是<strong>「${currentQuestion.correct}」</strong><br>你的成绩定格在了第 ${currentLevel} 关,再接再厉`);
}, 1500);
}
}
function startGame() {
currentLevel = 1;
usedIndices = [];
isPaused = false; // 重置暂停状态
// 重置暂停按钮状态
const pauseBtn = document.getElementById('pauseBtn');
// pauseBtn.textContent = '暂停';
// 重置选项区域的点击状态
document.getElementById('options').style.pointerEvents = 'auto';
showScreen('gameScreen');
generateQuestion();
}
function endGame(message) {
clearInterval(timer);
const finalScoreDiv = document.getElementById('finalScore');
finalScoreDiv.innerHTML = `${message}`;
showScreen('endScreen');
}
function restartGame() {
// 重置所有screen的透明度
document.querySelectorAll('.screen').forEach(screen => {
screen.style.opacity = '0';
});
// 重置游戏状态
currentLevel = 1;
usedIndices = [];
isPaused = false; // 重置暂停状态
// document.getElementById('pauseBtn').textContent = '暂停'; // 重置暂停按钮文本
const redPacketBtn = document.querySelector('.red-packet-btn');
restartGameBtn.innerHTML = '再来一局';
if (redPacketBtn) {
redPacketBtn.remove();
}
// 显示欢迎页面
showScreen('startScreen');
}
function quickRestart() {
// 重置所有screen的透明度
document.querySelectorAll('.screen').forEach(screen => {
screen.style.opacity = '0';
});
// 重置游戏状态
currentLevel = 1;
usedIndices = [];
isPaused = false;
const redPacketBtn = document.querySelector('.red-packet-btn');
if (redPacketBtn) {
redPacketBtn.remove();
}
// 直接开始新游戏
showScreen('gameScreen');
// 重置游戏相关状态
document.getElementById('level').textContent = currentLevel;
// 触发新一轮游戏
startGame();
}
document.addEventListener('DOMContentLoaded', () => {
const welcomeTips = document.getElementById('welcomeTips');
welcomeTips.innerHTML = `共 ${TOTAL_LEVELS} 题,从 6 个繁体字中选出正确的<br>${TIME_LEFT} 秒不下手就算输喽`
const loadingScreen = document.getElementById('loadingScreen');
const startScreen = document.getElementById('startScreen');
loadingScreen.style.opacity = '1';
document.addEventListener("readystatechange", (event) => {
// console.log(document.readyState);
if (document.readyState == "complete") {
loadingScreen.style.opacity = '0';
loadingScreen.style.transition = 'opacity 0.5s ease';
setTimeout(() => {
loadingScreen.style.display = 'none';
startScreen.style.display = 'flex';
setTimeout(() => {
startScreen.style.opacity = '1';
}, 50);
}, 500);
}
});
});
function skipLoading(e) {
e.preventDefault();
loadingScreen.style.opacity = '0';
loadingScreen.style.transition = 'opacity 0.5s ease';
setTimeout(() => {
loadingScreen.style.display = 'none';
document.getElementById('startScreen').style.display = 'flex';
document.getElementById('startScreen').style.opacity = '1';
}, 500);
}
function isWeixinBrowser() {
const ua = navigator.userAgent.toLowerCase();
return ua.indexOf('micromessenger') !== -1;
}
const dialog = document.getElementById('redPacketDialog');
function showRedPacketDialog() {
const jumpButton = document.querySelector('#jumpButton');
if (window.innerWidth >= 428) {
// Copy URL automatically
navigator.clipboard.writeText(window.location.href);
// Create toast notification
const toast = document.createElement('div');
toast.className = 'desktop-toast';
toast.innerHTML = '领取链接已复制,请切换至手机领取红包封面';
document.body.appendChild(toast);
// Remove toast after animation
setTimeout(() => {
toast.classList.add('fade-out');
setTimeout(() => toast.remove(), 300);
}, 3000);
} else {
// 检查是否为微信浏览器
if (isWeixinBrowser()) {
jumpButton.style.display = '';
} else {
jumpButton.style.display = 'none';
}
dialog.showModal();
}
}
function closeDialog() {
dialog.style.animation = 'dialog-close-animate 0.75s cubic-bezier(0.45, 0, 0.2, 1) forwards';
setTimeout(() => {
dialog.close();
// 重置动画,以便下次打开
dialog.style.animation = 'dialog-open-animate 0.75s cubic-bezier(0.45, 0, 0.2, 1) forwards';
}, 750); // 等待动画完成
}
function closeDialog() {
dialog.classList.add('closing');
dialog.style.animation = 'dialog-close-animate 0.75s cubic-bezier(0.45, 0, 0.2, 1) forwards';
setTimeout(() => {
dialog.close();
dialog.classList.remove('closing');
dialog.style.animation = 'dialog-open-animate 0.75s cubic-bezier(0.45, 0, 0.2, 1) forwards';
}, 750);
}
function copyLink() {
navigator.clipboard.writeText('https://wx.qq.com/')
.then(() => alert('链接已复制'));
}
// 暂停功能
function togglePause() {
isPaused = !isPaused;
const pauseScreen = document.getElementById('pauseScreen');
if (isPaused) {
clearInterval(timer);
pauseScreen.style.display = 'flex';
setTimeout(() => {
pauseScreen.style.opacity = '1';
}, 50);
}
}
function resumeGame() {
isPaused = false;
const pauseScreen = document.getElementById('pauseScreen');
pauseScreen.style.opacity = '0';
setTimeout(() => {
pauseScreen.style.display = 'none';
}, 500);
startTimer();
}
// 返回主页功能
function returnHome() {
// if (confirm('确定要返回主页吗?当前进度将丢失')) {
clearInterval(timer);
document.getElementById('pauseScreen').style.display = 'none';
restartGame();
// }
}
// 添加事件监听
document.getElementById('pauseBtn').addEventListener('click', togglePause);
// document.getElementById('homeBtn').addEventListener('click', returnHome);
// 调试用工具
document.addEventListener('DOMContentLoaded', () => {
// 检查是否有重复的 simplified 值
function hasDuplicateSimplified() {
var simplifiedSet = new Set();
for (var i = 0; i < chineseCharacters.length; i++) {
var simplified = chineseCharacters[i].simplified;
if (simplifiedSet.has(simplified)) {
return true; // 发现重复值
}
simplifiedSet.add(simplified);
}
return false; // 没有发现重复值
}
// 调用函数检查是否有重复的 simplified 值
// if (hasDuplicateSimplified()) {
// console.log("chineseCharacters 数组中存在重复的 simplified 值。");
// } else {
// console.log("chineseCharacters 数组中没有重复的 simplified 值。");
// }
// var count = chineseCharacters.length;
// console.log("chineseCharacters 数组中共有 " + count + " 个数组。");
})
</script>
</body>
</html>