Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1047 lines (997 loc) · 85.3 KB
/
Copy pathindex.html
File metadata and controls
1047 lines (997 loc) · 85.3 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
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<!--
////////////////////////////////////////////
/// ///
/// LEGIONCORE REFORGED ///
/// Copyright 2026 Titans-Project ///
/// All Rights Reserved. ///
/// ///
////////////////////////////////////////////
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Reforged Development Tracker</title>
<meta name="description" content="What works, what is in progress and what is still untested in LegionCore — Reforged, the World of Warcraft: Legion 7.3.5 server emulator, and the notes of every release.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
@font-face { font-family: 'Metallophile Sp8'; src: url('fonts/MetallophileSp8-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
:root {
--bg: #f3f2ee; --surface: #ffffff; --surface-2: #f8f7f3; --text: #1b1d21; --muted: #62666e; --line: #e1dfd8;
--accent: #5f8f1c; --accent-strong: #4a7413; --accent-soft: #edf4e1;
--working: #1f8a4c; --partial: #c39300; --progress: #d4661a; --broken: #cc3333; --untested: #c3c6cc;
--working-bg: #e3f3e8; --partial-bg: #fbf2d3; --progress-bg: #fcead9; --broken-bg: #f9e1e1; --untested-bg: #f0f1f3;
--untested-text: #7b8089; --change: #2f6fd6;
--shadow: 0 1px 2px rgba(20,20,30,.05), 0 6px 18px rgba(20,20,30,.06);
--radius: 14px;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0f1112; --surface: #181b1d; --surface-2: #14171a; --text: #e8e9ea; --muted: #9ca0a7; --line: #282c30;
--accent: #9bd34f; --accent-strong: #b6e86f; --accent-soft: #1f2a14;
--working: #4cc47e; --partial: #e3c24d; --progress: #f0914d; --broken: #f06a6a; --untested: #5d626b;
--working-bg: #16301f; --partial-bg: #332b11; --progress-bg: #382313; --broken-bg: #3a1b1b; --untested-bg: #25282d;
--untested-text: #a2a6ae; --change: #79a8ff;
--shadow: none;
}
}
:root[data-theme="dark"] {
--bg: #0f1112; --surface: #181b1d; --surface-2: #14171a; --text: #e8e9ea; --muted: #9ca0a7; --line: #282c30;
--accent: #9bd34f; --accent-strong: #b6e86f; --accent-soft: #1f2a14;
--working: #4cc47e; --partial: #e3c24d; --progress: #f0914d; --broken: #f06a6a; --untested: #5d626b;
--working-bg: #16301f; --partial-bg: #332b11; --progress-bg: #382313; --broken-bg: #3a1b1b; --untested-bg: #25282d;
--untested-text: #a2a6ae; --change: #79a8ff;
--shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-strong); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
/* hero */
.hero { position: relative; overflow: hidden; color: #eef3e6; background: #0b0d0a; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 0;
background: linear-gradient(180deg, rgba(13,15,18,.35) 0%, rgba(13,15,18,.45) 35%, rgba(13,15,18,.75) 70%, #0b0d0f 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.brand { min-width: 0; }
.brand .kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #a9d46b; font-weight: 600; }
.gradient-title { font-family: 'Metallophile Sp8', Georgia, serif; font-weight: 500;
background: linear-gradient(180deg, #769944 0%, #e8e361 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.brand h1 { margin: 6px 0 0; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.08; letter-spacing: .01em; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.brand p { margin: 10px 0 0; color: #dfe6d5; max-width: 640px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hero-links { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.hero-links a { color: #e6f6cf; text-decoration: none; border: 1px solid rgba(185,238,116,.3); background: rgba(255,255,255,.04); padding: 6px 12px; border-radius: 999px; }
.hero-links a:hover { border-color: #b9ee74; background: rgba(185,238,116,.1); }
.hero-links .muted { color: #93a08a; font-size: 13px; }
.lang { display: inline-flex; border: 1px solid rgba(185,238,116,.3); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.3); }
.lang button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; opacity: .6; }
.lang button:hover { opacity: 1; }
.lang .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.lang button[aria-pressed="true"] { background: #8fd13f; opacity: 1; }
/* chinois : les polices du site n'ont pas les caractères chinois, on choisit une police système lisible */
html[lang="zh-CN"] body, html[lang="zh-CN"] button, html[lang="zh-CN"] input { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html[lang="zh-CN"] .gradient-title, html[lang="zh-CN"] h2.era { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; font-weight: 700; }
/* allied races: portrait cards and status table */
/* the portrait of a card rises about 50px above its frame: when the cards wrap (phone), the rows need that much room between them */
.races-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 76px 40px; margin: 62px 0 30px; }
.race { width: 236px; flex: none; text-align: center; }
.rframe { position: relative; width: 200px; height: 258px; margin: 0 auto; background: #111; border: 1px solid rgba(127,178,232,.45); transition: border-color .3s, box-shadow .3s; }
.race.horde .rframe { border-color: rgba(232,127,127,.45); }
.rframe:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(155,211,79,.3); z-index: 5; }
.rclip { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.rback, .rhover { position: absolute; bottom: 0; left: 50%; width: 123.5%; height: 119.25%; background-size: cover; background-position: center; transform: translate(-50%, 0) scale(1); transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.rback { z-index: 1; }
.rhover { z-index: 2; pointer-events: none; }
.rframe:hover .rback, .rframe:hover .rhover { transform: translate(-50%, 0) scale(1.08); }
.rbadge { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.6); z-index: 6; object-fit: contain; }
.rname { margin-top: 28px; font-size: 16px; font-weight: 700; color: var(--accent-strong); transition: color .3s; }
.race:hover .rname { color: var(--text); }
.rlines { list-style: none; margin: 12px 0 0; padding: 0 6px; }
.rlines li { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 4px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.rlines li:last-child { border-bottom: 0; }
.rlines .dot { width: 11px; height: 11px; flex: none; }
.rlines li span:first-child { white-space: nowrap; }
.rstatus { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.rstatus .dot { width: 11px; height: 11px; flex: none; }
/* planned for the release: the category is greyed out, and one big veil covers its content (faintly visible below) */
.cat.planned { filter: grayscale(1); opacity: .55; }
.cat.planned:hover { opacity: .8; }
.view-head.planned img { filter: grayscale(1); opacity: .6; }
/* an entry planned for the release: its content is greyed out, the label saying so is not */
.tile.plannedown.with-icon { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 7px; align-items: center; }
.plannedrow { grid-column: 1 / -1; }
.herocard.plannedown img { filter: grayscale(1); opacity: .6; }
/* the status (or the planned label) sits in the top right corner, so the name has the bottom line to itself */
.herocard .badge, .herocard .plannedline { position: absolute; top: 10px; right: 10px; z-index: 2; }
.herocard .plannedline { color: #e6e8e3; background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.3); }
.tile.plannedown .ticon, .tile.plannedown .name, .tile.plannedown .detail, .tile.plannedown .where,
.feature.plannedown .pic, .feature.plannedown .txt { opacity: .55; filter: grayscale(1); }
.plannedline { display: inline-block; align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.4; max-width: 100%; color: color-mix(in srgb, var(--text) 78%, var(--muted)); background: color-mix(in srgb, var(--text) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--text) 24%, transparent); }
.feature .plannedline { flex: none; align-self: center; font-size: 11.5px; padding: 3px 11px; }
.plannedwrap { position: relative; min-height: 260px; }
.bigveil { position: absolute; inset: -6px; z-index: 5; display: flex; justify-content: center; align-items: flex-start; border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bigveil .msg { position: sticky; top: 38vh; margin-top: 110px; padding: 16px 30px; max-width: 86%; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 26%, transparent); border-radius: var(--radius); box-shadow: var(--shadow), 0 10px 30px rgba(0,0,0,.25); }
/* tabs */
.tabs { display: flex; gap: 4px; margin-top: 26px; }
.tab { border: 0; background: transparent; color: #b9c4ad; padding: 12px 18px 14px; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 12px 12px 0 0; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: #f2fbe6; }
.tab[aria-selected="true"] { background: var(--bg); color: var(--text); }
.tab .pill { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(143,209,63,.18); color: #c4f08a; font-weight: 700; }
.tab[aria-selected="true"] .pill { background: var(--accent-soft); color: var(--accent-strong); }
main { padding: 24px 0 56px; }
/* overview */
.overview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.ov-body { min-width: 0; }
.ov-body .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-body .big { font-size: 17px; }
.ov-body .big b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.ov-body .big span { color: var(--muted); }
.sub b, .big b { font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--untested-bg); }
.bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip b { font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
/* word from the developer: a message bubble coming from the avatar */
.dnote { display: flex; gap: 18px; align-items: flex-start; margin: 22px 0 0; }
.dnote .av { flex: none; line-height: 0; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); box-shadow: var(--shadow); }
.dnote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--bg); }
.dnote .bubble { position: relative; flex: 1; min-width: 0; padding: 14px 18px 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); }
.dnote .bubble::before { content: ""; position: absolute; left: -8px; top: 20px; width: 14px; height: 14px; background: var(--accent-soft); border-left: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); transform: rotate(45deg); }
.dnote .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.dnote .who a { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.dnote .who a:hover { text-decoration: underline; }
.dnote .who .role { font-size: 12.5px; color: var(--muted); }
.dnote .who .tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dnote p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
@media (max-width: 600px) {
.dnote { flex-direction: column; gap: 12px; }
.dnote img { width: 44px; height: 44px; }
.dnote .bubble { width: 100%; border-radius: 16px; }
.dnote .bubble::before { left: 22px; top: -8px; border-left: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
}
.searchrow { margin: 18px 0 6px; }
.search { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 11px 14px 11px 40px; font: inherit;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8f96' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: 14px 50%; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* category cards */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
h2.era { font-family: 'Metallophile Sp8', Georgia, serif; font-weight: 500; font-size: 26px; margin: 30px 0 0; display: flex; align-items: center; gap: 14px; color: var(--accent-strong); }
h2.era::after { content: ""; flex: 1; height: 1px; background: var(--line); }
a.whl { color: inherit; text-decoration: none; }
a.whl:hover { color: var(--accent-strong); text-decoration: underline; }
.herocard.noimg { background: radial-gradient(120% 90% at 30% 20%, #2b3324, #12150f); }
.cat { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow);
transition: transform .12s ease, border-color .12s ease; display: flex; flex-direction: column; gap: 12px; }
.cat:hover { transform: translateY(-2px); border-color: var(--accent); }
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.newtag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--surface); background: var(--accent); }
.newtag.corner { position: absolute; top: -9px; right: 14px; margin: 0; z-index: 7; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.cat { position: relative; }
.rframe .newtag.corner { top: 10px; right: 10px; }
.cat .head { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.cat .head img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; border: 1px solid rgba(0,0,0,.5); box-shadow: 0 2px 6px rgba(0,0,0,.25); flex: none; }
.cat h2 { margin: 0; font-size: 16px; line-height: 1.25; }
.cat .sub { color: var(--muted); font-size: 13px; }
.cat .sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.minibar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--untested-bg); }
.minibar span { height: 100%; }
.minibar span.hatch { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--untested) 70%, transparent) 0 2px, transparent 2px 5px), var(--untested-bg); }
.headbar { margin: -4px 0 26px; height: 8px; }
.pips { display: flex; flex-wrap: wrap; gap: 4px; }
.pip { width: 11px; height: 11px; border-radius: 3px; }
/* category view */
.view-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.view-head img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0,0,0,.5); }
.back { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.back:hover { border-color: var(--accent); }
.view-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.view-head .sub { color: var(--muted); font-size: 14px; }
h3.group { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
h3.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h4.subgroup { margin: 14px 0 10px; font-size: 14px; font-weight: 700; color: var(--accent-strong); }
.patchrow { display: grid; grid-template-columns: repeat(var(--tc, 5), minmax(0, 1fr)); gap: 6px 10px; align-items: start; }
.patchblock { min-width: 0; }
.patchblock .heroes, .patchblock .tiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .patchrow { display: block; } .patchblock .heroes, .patchblock .tiles { grid-template-columns: 1fr; } }
.pagehead { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.pagehead:first-of-type { margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tiles.paged { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.paged > .tile { grid-row: var(--gr); grid-column: var(--gc); }
@media (max-width: 760px) { .tiles.paged { grid-template-columns: 1fr; } .tiles.paged > .tile { grid-row: auto; grid-column: auto; } }
.tile { background: var(--surface); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 20%, var(--surface)) 0%, var(--surface) 65%); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tile .detail { color: var(--muted); font-size: 13px; }
.tile .note { color: var(--muted); font-size: 12.5px; }
.tile .where { color: var(--muted); font-size: 12px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--c); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.untested-c .label { color: var(--untested-text); }
.labels { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tile .labels:has(.label + .label) { flex-direction: column; gap: 2px; }
.tile.with-icon { flex-direction: row; align-items: center; gap: 12px; }
.tile .tbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .ticon { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,.45); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tile .ticon.wide { width: 64px; height: 32px; border-radius: 0; border: 0; box-shadow: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.herocard { position: relative; min-height: 136px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); border-bottom: 3px solid var(--c); background: #15171a; box-shadow: var(--shadow); }
.herocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.herocard:hover img { transform: scale(1.04); }
.herocard .body { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(6,8,5,.92) 60%); color: #f2f2f2; }
.herocard .w { min-width: 0; }
.herocard .name { font-weight: 600; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.herocard .note { color: #c8c8c8; font-size: 12px; }
.herocard .badge { padding: 2px 9px; font-size: 12px; background: rgba(0,0,0,.6); }
.herocard .badge.untested { color: #d4d4d4; }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px 14px; }
.class { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cc, var(--line)); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.class h4 { margin: 0; padding: 10px 14px; font-size: 15px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc, transparent) 16%, var(--surface-2)), var(--surface-2) 70%); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.class h4 .cname { display: inline-flex; align-items: center; gap: 10px; }
.class h4 img { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.45); }
.class h4 .pips { gap: 3px; }
.spec { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c, transparent) 18%, transparent) 0%, transparent 60%); box-shadow: inset 3px 0 0 var(--c, transparent); }
.spec.iconed { grid-template-columns: 32px 1fr auto; }
.spec .sicon { width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(0,0,0,.45); }
.spec:first-of-type { border-top: 0; }
.class.wide { grid-column: 1 / -1; }
.class.wide .specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 18px; }
.class.wide .spec { border-top: 0; border-bottom: 1px solid var(--line); }
.spechead { grid-column: 1 / -1; padding: 10px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec .w { min-width: 0; }
.spec .w div { font-weight: 600; font-size: 14px; line-height: 1.3; }
.spec .w small { color: var(--muted); font-size: 12.5px; }
.spec .label { margin: 0; white-space: nowrap; }
.empty { color: var(--muted); padding: 18px 2px; }
.features { display: flex; flex-direction: column; gap: 12px; }
.feature { display: flex; align-items: center; gap: 20px; padding: 14px 18px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.feature .pic { position: relative; flex: none; width: 280px; aspect-ratio: 280 / 154; }
.feature .pic img.art { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; background: var(--untested-bg); }
.feature .pic img.icon { position: absolute; right: -10px; bottom: -10px; width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.feature .txt { flex: 1; min-width: 0; }
.feature .badges { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.feature .txt h4 { margin: 0 0 4px; font-size: 16px; }
.feature .txt p { margin: 0; color: var(--muted); font-size: 13.5px; }
.feature .txt .note { margin-top: 6px; color: var(--muted); font-size: 12.5px; font-style: italic; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.working { color: var(--working); background: var(--working-bg); }
.badge.partial { color: var(--partial); background: var(--partial-bg); }
.badge.progress { color: var(--progress); background: var(--progress-bg); }
.badge.broken { color: var(--broken); background: var(--broken-bg); }
.badge.untested { color: var(--untested-text); background: var(--untested-bg); }
/* updates */
.updates { display: grid; grid-template-columns: 172px 1fr; gap: 18px; align-items: start; }
.versions { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.versions .vtitle { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2px 4px 6px; }
.ver { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 9px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ver:hover { border-color: var(--accent); }
.ver[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ver.dev { border-style: dashed; }
.vsep { height: 1px; width: 60%; margin: 12px auto; background: var(--muted); opacity: .45; flex: none; }
.ver.newest { border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 18px -4px var(--accent); }
.ver.newest b { color: var(--accent-strong); }
.ver.dev .latest { color: var(--progress); }
.rhead .pre.devbadge { color: var(--accent-strong); background: var(--accent-soft); }
.rart { display: flex; align-items: center; }
.rart > img { display: block; flex: none; align-self: flex-start; width: 200px; height: 200px; object-fit: contain; object-position: left top; }
.rart-txt { flex: 1; min-width: 0; }
@media (max-width: 760px) { .rart { flex-direction: column; align-items: stretch; } }
.devnote { margin: 12px 24px 0; padding: 10px 14px; border-left: 4px solid var(--progress); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; }
.ver b { font-size: 15px; }
.ver span { color: var(--muted); font-size: 12.5px; }
.ver .latest { align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .06em; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.release .banner { background: var(--surface); }
.release .banner img { display: block; width: 100%; height: auto; }
.release .banner.small { padding: 18px 24px 0; }
.release .banner.small img { width: auto; max-width: min(100%, 640px); margin: 0 auto; border-radius: 10px; }
.ver b.long { font-size: 14px; line-height: 1.25; }
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px 4px; }
.rhead h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.rhead .meta { color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rtitle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rhead .pre { font-size: 11.5px; font-weight: 700; color: var(--progress); background: var(--progress-bg); padding: 2px 8px; border-radius: 999px; }
.rhead a.gh { text-decoration: none; font-size: 13.5px; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; color: var(--text); }
.rhead a.gh:hover { border-color: var(--accent); }
.rstats { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 24px 4px; }
.rstat { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rstat b { font-variant-numeric: tabular-nums; }
.md { padding: 6px 18px 24px; overflow-wrap: anywhere; }
.md h2 { font-size: 19px; margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.3; }
.md h3 { font-size: 15px; margin: 20px 0 8px; color: var(--accent-strong); }
.md hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
.md ul { padding-left: 0; list-style: none; margin: 8px 0; }
.md li { padding: 6px 0 6px 2px; border-bottom: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.md li:last-child { border-bottom: 0; }
.md li ul { margin: 4px 0 0 18px; }
.md em { color: var(--muted); }
.md code { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }
.md td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.md th { background: var(--surface-2); }
.md blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--line); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted); }
.md del.reverted { color: var(--broken); text-decoration: line-through; text-decoration-color: var(--broken); cursor: help; }
.md li blockquote { margin: 3px 0 6px; padding: 4px 12px; font-size: 12.5px; font-style: italic; line-height: 1.45; border-left-width: 2px; background: transparent; }
.md li blockquote p { margin: 0; }
.md li blockquote code { font-style: normal; font-size: 12px; }
.md blockquote.callout { border-left-color: var(--change); color: var(--text); }
.md .ctitle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--change); }
.md img { max-width: 100%; height: auto; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; text-transform: uppercase; }
.tag.fix { color: var(--working); background: var(--working-bg); }
.tag.change { color: var(--change); background: color-mix(in srgb, var(--change) 14%, transparent); }
.tag.crash, .tag.exploit, .tag.data-loss { color: var(--broken); background: var(--broken-bg); }
.tag.other { color: var(--progress); background: var(--progress-bg); }
.tag.leak { color: var(--progress); background: var(--progress-bg); }
.scope { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--muted); margin-right: 2px; }
.md a.wh { text-decoration: none; border-bottom: 1px dotted currentColor; }
footer { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding: 18px 0 30px; }
/* timeline tab */
.tl-nav { display: flex; align-items: flex-start; margin: 0 0 18px; padding: 4px 0 8px; overflow-x: auto; }
.tl-step { position: relative; flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 30px 6px 8px; border: 0; background: none; color: var(--muted); font: inherit; text-align: center; cursor: pointer; border-radius: 10px; }
.tl-step::before { content: ""; position: absolute; z-index: 1; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--accent); }
.tl-step:first-child::before { display: none; }
.tl-step::after { content: ""; position: absolute; z-index: 2; top: 2px; left: 50%; width: 18px; height: 18px; margin-left: -9px; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent); }
.tl-step.minor::after { top: 5px; width: 12px; height: 12px; margin-left: -6px; }
.tl-step b { font-size: 20px; line-height: 1.2; color: var(--text); font-weight: 600; }
.tl-step.minor b { font-size: 16px; }
.tl-step em { font-style: normal; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tl-step:hover b { color: var(--accent-strong); }
.tl-step.dev::after { animation: tl-pulse 2s ease-out infinite; }
.tl-step.soon::before { background: repeating-linear-gradient(90deg, var(--untested) 0 6px, transparent 6px 11px); }
.tl-step.soon::after { background: var(--surface); border-color: var(--untested); }
.tl-step.soon b, .tl-step.soon em { opacity: .6; }
.tl-step.soon[aria-current="true"] b, .tl-step.soon[aria-current="true"] em { opacity: 1; }
.tl-step.soon[aria-current="true"]::after { border-color: var(--accent); }
.rhead .pre.soonbadge { color: var(--untested-text); background: var(--untested-bg); }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 70% { box-shadow: 0 0 0 11px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tl-step.dev::after { animation: none; box-shadow: 0 0 0 4px var(--accent-soft); } }
.tl-step[aria-current="true"] { background: var(--accent-soft); }
.tl-step[aria-current="true"] b { color: var(--accent-strong); }
.tl-step[aria-current="true"]::after { background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 6px 24px 24px; }
.tl-block { --acc: var(--accent-strong); border: 1px solid var(--line); border-top: 3px solid var(--acc); border-radius: 10px; background: var(--surface-2); padding-bottom: 6px; min-width: 0; }
.tl-items { --acc: var(--partial); }
.tl-changed { --acc: var(--progress); grid-column: 1 / -1; }
.tl-block h3 { margin: 0; padding: 12px 14px; font-size: 16px; border-bottom: 1px solid var(--line); }
.tl-grp { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 20px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tl-grp:first-of-type { border-top: 0; }
.tl-grp h4 { margin: 2px 0 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; line-height: 1.4; color: var(--acc); }
.tl-grp ul { margin: 0; padding: 0; list-style: none; }
.tl-grp li { position: relative; margin: 0 0 5px; padding-left: 13px; font-size: 14px; line-height: 1.55; }
.tl-grp li:last-child { margin-bottom: 0; }
.tl-grp li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; background: var(--acc); opacity: .75; }
@media (max-width: 900px) { .tl-blocks { grid-template-columns: 1fr; padding: 6px 14px 18px; } .tl-grp { grid-template-columns: 1fr; gap: 3px; } }
/* information tab */
.ibody { padding: 6px 24px 26px; }
.iintro { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.isum { margin: 0 0 18px; font-size: 15.5px; }
.rhead .pre.same { color: var(--working); background: var(--working-bg); }
/* tiers of Game.Patch */
.ichips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.ichips-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.ichip { display: inline-flex; align-items: baseline; gap: 7px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ichip b { color: var(--accent-strong); }
.ichip.def { border-color: var(--accent); }
.ichip em { font-style: normal; font-size: 11px; color: var(--muted); }
/* one row per difference: topic | retail | reforged */
.irows { display: grid; gap: 12px; margin: 0 0 22px; }
.irow { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.4fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ititle { padding: 14px 16px; font-weight: 600; font-size: 14.5px; line-height: 1.4; background: var(--surface-2); border-right: 1px solid var(--line); }
.icol { padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.icol.ret { color: var(--muted); }
.icol.ours { background: var(--accent-soft); color: var(--text); border-left: 1px solid var(--line); }
.ilab { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.icol.ret .ilab { color: var(--muted); }
.icol.ours .ilab { color: var(--accent-strong); }
.inote { margin-top: 12px; padding: 9px 12px; background: var(--partial-bg); border-left: 3px solid var(--partial); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.inote b { display: block; margin-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--partial); }
.inote code { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.iopt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.iopt code { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 5px; overflow-wrap: anywhere; color: var(--text); }
/* why */
.iwhy { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.iwhy h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); }
.iwhy p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.iwhy p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
.ibody { padding-left: 16px; padding-right: 16px; }
.irow { grid-template-columns: 1fr; }
.ititle { border-right: 0; border-bottom: 1px solid var(--line); }
.icol.ours { border-left: 0; border-top: 1px solid var(--line); }
.updates { grid-template-columns: 1fr; }
.versions { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.versions .vtitle { display: none; }
.ver { flex: none; }
.vsep { width: 1px; height: auto; margin: 4px 6px; align-self: stretch; }
.rhead, .rstats, .md { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
.feature { flex-wrap: wrap; gap: 14px; }
.feature .pic { width: 100%; }
}
@media (max-width: 520px) {
.cats { grid-template-columns: 1fr; }
.classes { grid-template-columns: 1fr; }
.spec .label span.t { display: none; }
.tab { padding: 10px 12px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cat, .herocard img { transition: none; } html { scroll-behavior: auto; } .hero-video { display: none; } .hero { background: #0b0d0a url('video/bg_poster.jpg') center / cover; } }
</style>
<script>const whTooltips = { colorLinks: false, iconizeLinks: true, renameLinks: false };</script>
<script src="https://wow.zamimg.com/js/tooltips.js" async></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.2/marked.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.1.6/purify.min.js" defer></script>
</head>
<body>
<header class="hero">
<video class="hero-video" autoplay loop muted playsinline poster="video/bg_poster.jpg" aria-hidden="true">
<source type="video/mp4" src="video/bg_index.mp4">
</video>
<div class="hero-overlay"></div>
<div class="wrap">
<div class="hero-top">
<div class="brand">
<div class="kicker">World of Warcraft · Legion 7.3.5</div>
<h1 class="gradient-title">LegionCore — Reforged</h1>
<p id="tagline"></p>
<div class="hero-links">
<a href="https://github.com/Titans-Project/LegionCore-Reforged" id="l-repo"></a>
<a href="https://github.com/Titans-Project/LegionCore-Reforged/issues/new?template=bug_report.md" id="l-bug"></a>
<span class="muted" id="updated"></span>
</div>
</div>
<div class="lang" role="group" aria-label="Language">
<button data-lang="fr" title="Français" aria-label="Français"><svg class="flag" viewBox="0 0 30 20" width="24" height="16" aria-hidden="true" focusable="false"><rect width="10" height="20" fill="#0055A4"/><rect x="10" width="10" height="20" fill="#fff"/><rect x="20" width="10" height="20" fill="#EF4135"/></svg></button><button data-lang="en" title="English" aria-label="English"><svg class="flag" viewBox="0 0 30 20" width="24" height="16" aria-hidden="true" focusable="false"><rect width="30" height="20" fill="#012169"/><path d="M0,0L30,20M30,0L0,20" stroke="#fff" stroke-width="3.6"/><path d="M0,0L30,20M30,0L0,20" stroke="#C8102E" stroke-width="1.4"/><path d="M15,0V20M0,10H30" stroke="#fff" stroke-width="6.4"/><path d="M15,0V20M0,10H30" stroke="#C8102E" stroke-width="3.6"/></svg></button><button data-lang="zh" title="中文" aria-label="中文"><svg class="flag" viewBox="0 0 30 20" width="24" height="16" aria-hidden="true" focusable="false"><rect width="30" height="20" fill="#DE2910"/><polygon points="5.00,2.00 5.67,4.07 7.85,4.07 6.09,5.35 6.76,7.43 5.00,6.15 3.24,7.43 3.91,5.35 2.15,4.07 4.33,4.07" fill="#FFDE00"/><polygon points="9.14,2.51 9.62,1.97 9.25,1.34 9.91,1.63 10.39,1.08 10.33,1.80 11.00,2.09 10.29,2.25 10.22,2.97 9.85,2.35" fill="#FFDE00"/><polygon points="11.01,4.14 11.66,3.82 11.56,3.10 12.07,3.62 12.72,3.30 12.38,3.95 12.88,4.47 12.17,4.34 11.83,4.99 11.73,4.27" fill="#FFDE00"/><polygon points="11.04,6.73 11.76,6.70 11.96,6.00 12.21,6.68 12.94,6.66 12.37,7.10 12.62,7.79 12.01,7.38 11.44,7.83 11.64,7.13" fill="#FFDE00"/><polygon points="9.22,8.38 9.90,8.63 10.35,8.06 10.32,8.79 11.00,9.05 10.30,9.24 10.26,9.96 9.87,9.36 9.16,9.55 9.62,8.98" fill="#FFDE00"/></svg></button>
</div>
</div>
<nav class="tabs" role="tablist">
<button class="tab" role="tab" data-view="tracker" id="t-tracker"></button>
<button class="tab" role="tab" data-view="updates" id="t-updates"></button>
<button class="tab" role="tab" data-view="timeline" id="t-timeline"></button>
<button class="tab" role="tab" data-view="info" id="t-info"></button>
</nav>
</div>
</header>
<div class="wrap">
<main id="main"><p class="empty">…</p></main>
<footer id="footer"></footer>
</div>
<script>
const ORDER = ['working', 'partial', 'progress', 'broken', 'untested'];
const SPECS = {
62: ['Arcane', 'Arcanes', '奥术'], 63: ['Fire', 'Feu', '火焰'], 64: ['Frost', 'Givre', '冰霜'], 65: ['Holy', 'Sacré', '神圣'], 66: ['Protection', 'Protection', '防护'], 70: ['Retribution', 'Vindicte', '惩戒'],
71: ['Arms', 'Armes', '武器'], 72: ['Fury', 'Fureur', '狂怒'], 73: ['Protection', 'Protection', '防护'], 102: ['Balance', 'Équilibre', '平衡'], 103: ['Feral', 'Farouche', '野性'], 104: ['Guardian', 'Gardien', '守护'],
105: ['Restoration', 'Restauration', '恢复'], 250: ['Blood', 'Sang', '鲜血'], 251: ['Frost', 'Givre', '冰霜'], 252: ['Unholy', 'Impie', '邪恶'], 253: ['Beast Mastery', 'Maîtrise des bêtes', '野兽控制'],
254: ['Marksmanship', 'Précision', '射击'], 255: ['Survival', 'Survie', '生存'], 256: ['Discipline', 'Discipline', '戒律'], 257: ['Holy', 'Sacré', '神圣'], 258: ['Shadow', 'Ombre', '暗影'],
259: ['Assassination', 'Assassinat', '奇袭'], 260: ['Outlaw', 'Hors-la-loi', '狂徒'], 261: ['Subtlety', 'Finesse', '敏锐'], 262: ['Elemental', 'Élémentaire', '元素'], 263: ['Enhancement', 'Amélioration', '增强'],
264: ['Restoration', 'Restauration', '恢复'], 265: ['Affliction', 'Affliction', '痛苦'], 266: ['Demonology', 'Démonologie', '恶魔学识'], 267: ['Destruction', 'Destruction', '毁灭'],
268: ['Brewmaster', 'Maître brasseur', '酒仙'], 269: ['Windwalker', 'Marche-vent', '踏风'], 270: ['Mistweaver', 'Tisse-brume', '织雾'], 577: ['Havoc', 'Dévastation', '浩劫'], 581: ['Vengeance', 'Vengeance', '复仇'],
};
const CLASSES = {
'Warrior': ['warrior', '#C69B6D'], 'Paladin': ['paladin', '#F48CBA'], 'Hunter': ['hunter', '#AAD372'], 'Rogue': ['rogue', '#FFF468'],
'Priest': ['priest', '#D8D8D8'], 'Shaman': ['shaman', '#0070DD'], 'Mage': ['mage', '#3FC7EB'], 'Warlock': ['warlock', '#8788EE'],
'Monk': ['monk', '#00FF98'], 'Druid': ['druid', '#FF7C0A'], 'Death Knight': ['deathknight', '#C41E3A'], 'Demon Hunter': ['demonhunter', '#A330C9']
};
const T = {
en: {
tagline: 'A World of Warcraft: Legion 7.3.5 server emulator, refined. Follow what works, what is in progress and every update.',
repo: 'Repository', bug: 'Report a bug', updated: d => 'Tracker updated ' + d,
tracker: 'Development tracker', updates: 'Updates', timeline: 'Timeline', tlloading: 'Loading…', tlfail: 'The timeline could not be loaded.', info: 'Information',
infotopics: 'Topics', infowhy: 'Why', infoopt: 'Settings', infosame: 'Identical to retail', infoloading: 'Loading…', infofail: 'The information could not be loaded.',
working: 'Working', partial: 'Partially working', progress: 'In progress', broken: 'Not working', untested: 'Untested',
search: 'Search a dungeon, a class, a holiday…',
notelabel: 'Announcement', noterole: 'Developer',
note: 'Legion is one of the most complete expansions, with an impressive amount of content and many complex systems still to fix. Some features will therefore be postponed to the "release" version: I am focusing first on the basics and the initial content, as it makes little sense to build late content while more fundamental parts are still missing.',
back: '← All categories', results: n => n + (n === 1 ? ' result' : ' results'), none: 'Nothing matches.', page: 'Page', allspecs: 'All specializations',
versions: 'Versions', latest: 'Latest update', pre: 'Pre-release', ongh: 'View on GitHub', released: d => 'Released ' + d,
fixes: n => n > 1 ? 'fixes' : 'fix', changes: n => n > 1 ? 'changes' : 'change', crashes: n => n > 1 ? 'crashes fixed' : 'crash fixed', leaks: n => n > 1 ? 'memory leaks fixed' : 'memory leak fixed', loading: 'Loading the release notes…', noreleases: 'The release notes could not be loaded.', indev: 'In progress', devbadge: 'Already pushed', devupdated: d => 'Updated ' + d, devnote: 'The fixes pushed since the last version: they are already in the repository, and the list grows as new ones land until the next version gathers them.',
footer: '<b>Working</b> does not mean bug-free: small bugs may remain. When something does not behave as it did on retail, please <a href="https://github.com/Titans-Project/LegionCore-Reforged/issues/new?template=bug_report.md">open an issue</a>. Item, quest and creature tooltips by <a href="https://www.wowhead.com">Wowhead</a>.',
title: 'Reforged Development Tracker', locale: 'en-GB',
patch: 'Patch',
newtag: 'New', newsince: 'Updated on',
planned: 'Planned for the "release" version'
},
fr: {
tagline: 'Un émulateur de serveur World of Warcraft: Legion 7.3.5, peaufiné. Suivez ce qui fonctionne, ce qui avance et chaque mise à jour.',
repo: 'Dépôt', bug: 'Signaler un bug', updated: d => 'Suivi mis à jour le ' + d,
tracker: 'Suivi du développement', updates: 'Mises à jour', timeline: 'Chronologie', tlloading: 'Chargement…', tlfail: 'La chronologie n’a pas pu être chargée.', info: 'Informations',
infotopics: 'Sujets', infowhy: 'Pourquoi', infoopt: 'Réglages', infosame: 'Identique au retail', infoloading: 'Chargement…', infofail: 'Les informations n’ont pas pu être chargées.',
working: 'Fonctionnel', partial: 'Partiellement fonctionnel', progress: 'En cours', broken: 'Non fonctionnel', untested: 'Non testé',
search: 'Chercher un donjon, une classe, une fête…',
notelabel: 'Annonce', noterole: 'Développeur',
note: 'Legion est l’une des extensions les plus complètes, avec une quantité de contenu impressionnante et beaucoup de systèmes complexes encore à corriger. Certaines fonctionnalités seront donc reportées à la version "release" : je me concentre d’abord sur les bases et le contenu initial, car cela n’aurait pas de sens de coder du contenu tardif alors que des éléments plus fondamentaux ne sont pas encore faits.',
back: '← Toutes les catégories', results: n => n + ' résultat' + (n > 1 ? 's' : ''), none: 'Aucun résultat.', page: 'Page', allspecs: 'Toutes les spécialisations',
versions: 'Versions', latest: 'Dernière mise à jour', pre: 'Préversion', ongh: 'Voir sur GitHub', released: d => 'Publiée le ' + d,
fixes: n => n > 1 ? 'correctifs' : 'correctif', changes: n => n > 1 ? 'changements' : 'changement', crashes: n => n > 1 ? 'plantages corrigés' : 'plantage corrigé', leaks: n => n > 1 ? 'fuites mémoire corrigées' : 'fuite mémoire corrigée', loading: 'Chargement des notes de version…', noreleases: 'Les notes de version n’ont pas pu être chargées.', indev: 'En cours', devbadge: 'Déjà poussés', devupdated: d => 'Mise à jour le ' + d, devnote: 'Les correctifs poussés depuis la dernière version : ils sont déjà dans le dépôt, et la liste s’allonge au fil des corrections jusqu’à ce que la prochaine version les regroupe.',
footer: '<b>Fonctionnel</b> ne veut pas dire sans bug : de petits défauts peuvent rester. Quand quelque chose ne se comporte pas comme sur les serveurs officiels, <a href="https://github.com/Titans-Project/LegionCore-Reforged/issues/new?template=bug_report.md">ouvrez un ticket</a>. Infobulles des objets, quêtes et créatures par <a href="https://www.wowhead.com/fr">Wowhead</a>.',
title: 'Suivi du développement de Reforged', locale: 'fr-FR',
patch: 'Patch',
newtag: 'Nouveau', newsince: 'Mis à jour le',
planned: 'Prévu pour la version "release"'
},
zh: {
tagline: '经过精心打磨的《魔兽世界:军团再临》7.3.5 服务器模拟器。关注哪些功能可用、哪些正在开发,以及每一次更新。',
repo: '代码仓库', bug: '报告问题', updated: d => '进度更新于 ' + d,
tracker: '开发进度', updates: '更新', timeline: '时间线', tlloading: '加载中……', tlfail: '无法加载时间线。', info: '信息',
infotopics: '主题', infowhy: '原因', infoopt: '设置', infosame: '与正式服一致', infoloading: '加载中……', infofail: '无法加载信息。',
working: '正常运行', partial: '部分可用', progress: '开发中', broken: '无法使用', untested: '未测试',
search: '搜索副本、职业、节日……',
notelabel: '公告', noterole: '开发者',
note: '军团再临是最完整的资料片之一,内容数量惊人,仍有许多复杂的系统需要修复。因此,部分功能将推迟到“正式发布”版本:我会先专注于基础功能和初始内容,因为在更基础的部分尚未完成时,去开发后期内容是没有意义的。',
back: '← 所有分类', results: n => n + ' 条结果', none: '没有匹配的结果。', page: '页', allspecs: '所有专精',
versions: '版本', latest: '最新更新', pre: '预发布版', ongh: '在 GitHub 上查看', released: d => '发布于 ' + d,
fixes: n => '项修复', changes: n => '项更改', crashes: n => '个崩溃已修复', leaks: n => '处内存泄漏已修复', loading: '正在加载更新说明……', noreleases: '无法加载更新说明。', indev: '开发中', devbadge: '已推送', devupdated: d => '更新于 ' + d, devnote: '自上一个版本以来已推送的修复:它们已经在代码仓库中,随着新的修复陆续加入,列表会不断增长,直到下一个版本将它们汇总。',
footer: '<b>正常运行</b>并不代表没有错误:可能仍有细小的问题。如果某些行为与正式服不一致,请<a href="https://github.com/Titans-Project/LegionCore-Reforged/issues/new?template=bug_report.md">提交 issue</a>。物品、任务和生物的提示信息由 <a href="https://www.wowhead.com/cn">Wowhead</a> 提供。',
title: 'Reforged 开发进度', locale: 'zh-CN',
patch: '补丁',
newtag: '新', newsince: '更新于',
planned: '计划在“正式发布”版本中推出'
}
};
const store = {
get(k) { try { return localStorage.getItem(k); } catch (e) { return null; } },
set(k, v) { try { localStorage.setItem(k, v); } catch (e) {} }
};
let lang = new URLSearchParams(location.search).get('lang') || store.get('lang') || ((l => l.startsWith('fr') ? 'fr' : l.startsWith('zh') ? 'zh' : 'en')((navigator.language || 'en').toLowerCase()));
if (!T[lang]) lang = 'en';
let data, releases, upcoming = null, info = null, infoFailed = false, timeline = null, timelineFailed = false, releasesFailed = false, query = '';
const active = new Set();
const rendered = new Map();
const esc = s => String(s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
const slug = s => s.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
const tr = (o, k) => (lang !== 'en' && o[k + '_' + lang]) || o[k]; // champ _fr ou _zh s'il existe, sinon l'anglais
// not named WH: the Wowhead tooltip script defines a global WH of its own, and a const of that name here would break it
const WOWHEAD = { en: 'https://www.wowhead.com/', fr: 'https://www.wowhead.com/fr/', zh: 'https://www.wowhead.com/cn/' };
const HTML_LANG = { en: 'en', fr: 'fr', zh: 'zh-CN' };
const t = k => T[lang][k];
// an entry split in parts (Alliance and Horde) counts one point per part
// an entry with a weight counts that many points (starting zones: one per class)
const points = list => list.flatMap(it => it.parts ? it.parts.map(p => ({ ...it, status: p.status })) : it.weight ? Array.from({ length: it.weight }, () => it) : [it]);
// a category flagged planned (not for now, for the release) counts for nothing: its statuses are kept in the data but hidden
const items = s => s.planned ? [] : points(s.groups.flatMap(g => g.items.filter(i => !i.planned)));
const all = () => data.sections.flatMap(items);
// two categories may share a title (Legion and Draenor dungeons): the id tells them apart
const secId = s => s.id || slug(s.title);
const count = list => Object.fromEntries(ORDER.map(k => [k, list.filter(i => i.status === k).length]));
const fmtDate = d => new Date(d + 'T12:00:00Z').toLocaleDateString(t('locale'), { day: 'numeric', month: 'long', year: 'numeric' });
// an entry carries "new": "YYYY-MM-DD" the day it changed for the better; the New tag shows for two weeks, then disappears by itself
const NEW_DAYS = 14;
const isNew = it => !!it.new && !it.planned && (Date.now() - new Date(it.new + 'T12:00:00Z')) / 864e5 <= NEW_DAYS;
const sectionNew = s => !s.planned && s.groups.some(g => g.items.some(isNew));
const newTag = it => isNew(it) ? `<span class="newtag" title="${esc(t('newsince'))} ${esc(fmtDate(it.new))}">${esc(t('newtag'))}</span>` : '';
const label = (st, who) => `<span class="label" style="--c:var(--${st})"><span class="dot" style="background:var(--${st})"></span><span class="t">${who ? esc(who) + ' : ' : ''}${t(st)}</span></span>`;
const pips = list => `<div class="pips" aria-hidden="true">${points(list).map(i => `<span class="pip" style="background:var(--${i.status})"></span>`).join('')}</div>`;
// entries planned for the release are not counted in the statuses, but the bar keeps their share, in hatched grey
const plannedPoints = s => points(s.groups.flatMap(g => g.items.filter(i => s.planned || i.planned))).length;
const bars = (c, cls, p = 0) => { const n = ORDER.reduce((a, k) => a + c[k], 0) + p || 1;
return `<div class="${cls}">${ORDER.map(k => `<span style="width:${c[k] / n * 100}%;background:var(--${k})"></span>`).join('')}${p ? `<span class="hatch" style="width:${p / n * 100}%"></span>` : ''}</div>`; };
function route() {
const h = decodeURIComponent(location.hash.slice(1));
if (h === 'updates' || h.startsWith('updates/')) return { view: 'updates', tag: h.split('/')[1] };
if (h === 'info' || h.startsWith('info/')) return { view: 'info', id: h.split('/')[1] };
if (h === 'timeline' || h.startsWith('timeline/')) return { view: 'timeline', id: h.split('/')[1] };
return { view: 'tracker', cat: h };
}
/* ---------- tracker ---------- */
function matches(it, s, g) {
if ((s.planned || it.planned) && active.size) return false;
if (active.size && !(it.parts ? it.parts.some(p => active.has(p.status)) : active.has(it.status))) return false;
if (!query) return true;
const hay = ['name', 'detail', 'group', 'note'].flatMap(k => [it[k], it[k + '_fr'], it[k + '_zh']])
.concat([s.title, s.title_fr, s.title_zh, g.title, g.title_fr, g.title_zh]).filter(Boolean).join(' ').toLowerCase();
return query.split(/\s+/).every(w => hay.includes(w));
}
// no overall bar: one figure for the whole game would misread the work done; each category keeps its own bar
// a short word from the developer, above the search bar on the home page
function devnote() {
return `<aside class="dnote"><a class="av" href="https://github.com/Apheleos" target="_blank" rel="noopener"><img src="https://avatars.githubusercontent.com/u/25911899?s=112" alt="Apheleos" width="56" height="56"></a>
<div class="bubble"><div class="who"><a href="https://github.com/Apheleos" target="_blank" rel="noopener">Apheleos</a><span class="role">${esc(t('noterole'))}</span><span class="tag">${esc(t('notelabel'))}</span></div><p>${esc(t('note'))}</p></div></aside>`;
}
function overview() {
return `<div class="searchrow"><input class="search" id="search" type="search" placeholder="${esc(t('search'))}" value="${esc(query)}"></div>`;
}
// an entry with a Wowhead page (toys, legendary items) links to it; Wowhead's script adds the tooltip
const whName = it => it.wowhead ? `<a class="whl" href="${WOWHEAD[lang]}${esc(it.wowhead)}" target="_blank" rel="noopener" data-wh-icon-added="true">${esc(tr(it, 'name'))}</a>` : esc(tr(it, 'name'));
function tile(it, s, showWhere) {
const st = it.status;
const detail = it.detail ? `<div class="detail">${esc(tr(it, 'detail'))}</div>` : '';
const grp = it.group ? `<div class="detail">${esc(tr(it, 'group'))}</div>` : '';
const note = it.note ? `<div class="note">${esc(tr(it, 'note'))}</div>` : '';
const where = showWhere ? `<div class="where">${esc(tr(s, 'title'))}</div>` : '';
const name = whName(it);
// a category planned for the release shows its cards without status: one veil covers them all (see section)
const ownPlanned = !!(it.planned && !(s && s.planned)); // one entry planned in a category that is not
const noStatus = !!(s && s.planned) || ownPlanned;
const body = `<div class="name">${name}${newTag(it)}</div>${grp}${detail}${ownPlanned ? '' : note}${ownPlanned ? (it.icon ? '' : `<div class="plannedline">${esc(t('planned'))}</div>`) : noStatus ? '' : `<div class="labels">${it.parts ? it.parts.map(p => label(p.status, tr(p, 'label'))).join('') : label(st) + (it.also ? label(it.also) : '')}</div>`}${where}`;
const cls = ownPlanned ? 'neutral plannedown' : noStatus ? 'neutral' : `${st}-c`, sty = noStatus ? '' : ` style="--c:var(--${st})"`;
if (!it.icon) return `<div class="tile ${cls}"${sty}>${body}</div>`;
const wide = it.icon.includes('/boss/') ? ' wide' : '';
return `<div class="tile with-icon ${cls}"${sty}><img class="ticon${wide}" src="${esc(it.icon)}" alt="" loading="lazy"><div class="tbody">${body}</div>${ownPlanned ? `<div class="plannedrow"><span class="plannedline">${esc(t('planned'))}</span></div>` : ''}</div>`;
}
function heroCard(it, s) {
if (s && s.planned) {
return `<div class="herocard${it.image ? '' : ' noimg'}">${it.image ? `<img src="${esc(it.image)}" alt="" loading="lazy">` : ''}
<div class="body"><div class="w"><div class="name">${esc(tr(it, 'name'))}</div></div></div></div>`;
}
if (it.planned) { // one card planned for the release in a category that is not
return `<div class="herocard plannedown${it.image ? '' : ' noimg'}">${it.image ? `<img src="${esc(it.image)}" alt="" loading="lazy">` : ''}
<div class="body"><div class="w"><div class="name">${esc(tr(it, 'name'))}</div></div></div><span class="plannedline">${esc(t('planned'))}</span></div>`;
}
const st = it.status;
const note = it.note ? `<div class="note">${esc(tr(it, 'note'))}</div>` : '';
return `<div class="herocard${it.image ? '' : ' noimg'}" style="--c:var(--${st})">${it.image ? `<img src="${esc(it.image)}" alt="" loading="lazy">` : ''}
<div class="body"><div class="w"><div class="name">${esc(tr(it, 'name'))}</div>${note}</div></div>
<span class="badge ${st}"><span class="dot" style="background:var(--${st})"></span>${t(st)}</span></div>`;
}
function classCards(g, s) {
const by = new Map();
for (const it of g.items) if (matches(it, s, g)) { if (!by.has(it.group)) by.set(it.group, []); by.get(it.group).push(it); }
if (!by.size) return '';
return `<div class="classes">` + [...by.values()].map(list => {
const name = tr(list[0], 'group'), cls = CLASSES[list[0].group];
const head = cls ? `<span class="cname"><img src="images/classes/classicon_${cls[0]}.jpg" alt="">${esc(name)}</span>` : `<span>${esc(name)}</span>`;
// a long list (legendary items, or a card that is no class) runs the whole width, its rows in columns
const row = it => `<div class="spec${it.icon ? ' iconed' : ''}" style="--c:var(--${it.status})">${it.icon ? `<img class="sicon" src="${esc(it.icon)}" alt="" loading="lazy">` : `<span class="dot" style="background:var(--${it.status})"></span>`}<div class="w"><div>${whName(it)}</div>${it.detail || it.note ? `<small>${[it.detail && esc(tr(it, 'detail')), it.note && esc(tr(it, 'note'))].filter(Boolean).join(' · ')}</small>` : ''}</div>${label(it.status)}</div>`;
let rows = list.map(row).join('');
// legendaries a single specialization (or two) can wear are listed under it; those for the whole class come first
if (s.bySpec && cls) {
const bySpec = new Map();
for (const it of list) { const k = (it.specs || []).join(','); if (!bySpec.has(k)) bySpec.set(k, []); bySpec.get(k).push(it); }
const keys = [...bySpec.keys()].sort((a, b) => (a === '' ? -1 : b === '' ? 1 : (b.split(',').length - a.split(',').length) || (+a.split(',')[0] - +b.split(',')[0])));
rows = keys.map(k => `<div class="spechead">${k === '' ? t('allspecs') : k.split(',').map(id => SPECS[id][{ en: 0, fr: 1, zh: 2 }[lang]]).join({ en: ' and ', fr: ' et ', zh: '和' }[lang])}</div>` + bySpec.get(k).map(row).join('')).join('');
}
return `<div class="class${!cls || s.wide ? ' wide' : ''}"${cls ? ` style="--cc:${cls[1]}"` : ''}><h4>${head}</h4><div class="specs">` + rows + `</div></div>`;
}).join('') + `</div>`;
}
function feature(it) {
if (it.planned) {
return `<div class="feature plannedown"><div class="pic"><img class="art" src="${esc(it.image)}" alt="" loading="lazy">${it.icon ? `<img class="icon" src="${esc(it.icon)}" alt="">` : ''}</div>
<div class="txt"><h4>${esc(tr(it, 'name'))}</h4>${it.desc ? `<p>${esc(tr(it, 'desc'))}</p>` : ''}</div>
<span class="plannedline">${esc(t('planned'))}</span></div>`;
}
const st = it.status;
const icon = it.icon ? `<img class="icon" src="${esc(it.icon)}" alt="">` : '';
const desc = it.desc ? `<p>${esc(tr(it, 'desc'))}</p>` : '';
const note = it.note ? `<div class="note">${esc(tr(it, 'note'))}</div>` : '';
return `<div class="feature"><div class="pic"><img class="art" src="${esc(it.image)}" alt="" loading="lazy">${icon}</div>
<div class="txt"><h4>${esc(tr(it, 'name'))}</h4>${desc}${note}</div>
<div class="badges"><span class="badge ${st}"><span class="dot" style="background:var(--${st})"></span>${t(st)}</span>${it.also ? `<span class="badge ${it.also}"><span class="dot" style="background:var(--${it.also})"></span>${t(it.also)}</span>` : ''}</div></div>`;
}
function groupHtml(g, s) {
const head = g.title ? `<h3 class="group">${esc(tr(g, 'title'))}</h3>` : '';
if (g.items.some(i => i.group)) { const body = classCards(g, s); return body ? head + body : ''; }
// same order and pages as the in-game collection of the French client, in both languages: names compared character by character, capitals before small letters and accented letters after z
if (s.paged) {
const sorted = [...g.items].sort((a, b) => { const x = a.name_fr || a.name, y = b.name_fr || b.name; return x < y ? -1 : x > y ? 1 : 0; });
let html = '';
for (let first = 0; first < sorted.length; first += s.paged) {
// each toy keeps its in-game slot, three per row; read column after column, as listed when testing
const cells = sorted.slice(first, first + s.paged).map((it, k) => ({ it, r: Math.floor(k / 3), c: k % 3 }))
.filter(x => matches(x.it, s, g)).sort((a, b) => a.c - b.c || a.r - b.r);
if (!cells.length) continue;
html += `<div class="pagehead">${t('page')} ${first / s.paged + 1}</div><div class="tiles paged">`
+ cells.map(x => tile(x.it, s).replace('style="--c:', `style="--gr:${x.r + 1};--gc:${x.c + 1};--c:`)).join('') + '</div>';
}
return html ? head + html : '';
}
const list = g.items.filter(it => matches(it, s, g));
if (!list.length) return '';
const render = l => s.layout === 'feature' ? `<div class="features">${l.map(feature).join('')}</div>`
: s.layout === 'hero' ? `<div class="heroes">${l.map(it => heroCard(it, s)).join('')}</div>`
: `<div class="tiles">${l.map(it => tile(it, s)).join('')}</div>`;
// entries with a patch (7.0, 7.2, 7.3...) are listed under a heading per patch, oldest first
if (list.some(i => i.patch)) {
const by = new Map();
for (const it of list) { const p = it.patch || ''; if (!by.has(p)) by.set(p, []); by.get(p).push(it); }
// one grid of columns for the whole category (5 for the cards of dungeons, 4 for the small tiles); a block takes as many
// columns as it has cards, so the blocks sit side by side, wrap to the next row when it is full, and the cards use the whole width
const total = s.layout === 'hero' ? 5 : 4;
// the wide cards of events take the whole row: one patch under the other
const cols = n => s.layout === 'feature' ? total : s.layout === 'hero' ? Math.min(n, total) : n >= 8 ? total : Math.min(n, 2);
const blocks = [...by].sort((a, b) => parseFloat(a[0]) - parseFloat(b[0])).map(([p, l]) =>
`<section class="patchblock" style="--cols:${cols(l.length)};grid-column:span ${cols(l.length)}"><h4 class="subgroup">${t('patch')} ${esc(p)}</h4>${render(l)}</section>`).join('');
return head + `<div class="patchrow" style="--tc:${total}">${blocks}</div>`;
}
return head + render(list);
}
function card(s) {
const c = count(items(s));
const icon = s.icon ? `<img src="${esc(s.icon)}" alt="">` : '';
const fresh = sectionNew(s) ? `<span class="newtag corner">${esc(t('newtag'))}</span>` : '';
return `<button class="cat${s.planned ? ' planned' : ''}" data-cat="${secId(s)}">${fresh}<div class="head">${icon}<div><h2>${esc(tr(s, 'title'))}</h2>
</div></div>${bars(c, 'minibar', plannedPoints(s))}</button>`;
}
function home() {
const eras = data.eras || [{ id: undefined }];
return eras.map(e => {
const list = data.sections.filter(s => s.era === e.id);
if (!list.length) return '';
return (e.title ? `<h2 class="era">${esc(tr(e, 'title'))}</h2>` : '') + `<div class="cats">${list.map(card).join('')}</div>`;
}).join('');
}
// allied races: a row of portrait cards (the hover motion of the Stormheim site), then a table of what works per race
const RACES = {
'Void Elf': ['voidelf', 'alliance'], 'Lightforged Draenei': ['lightforged', 'alliance'],
'Highmountain Tauren': ['highmountain', 'horde'], 'Nightborne': ['nightborne', 'horde']
};
function racesView(s) {
const groups = s.groups.filter(g => RACES[g.title]);
// under each card, one line per thing to check: its name and a dot in the colour of its status
const line = it => `<li title="${esc(tr(it, 'name'))} : ${esc(t(it.status))}"><span>${esc(tr(it, 'name'))}</span><span class="dot" role="img" aria-label="${esc(t(it.status))}" style="background:var(--${it.status})"></span></li>`;
// when every race has the same single thing to check (the recruitment scenario), it is the heading of the row, as a category,
// and each race only shows whether it works or is in progress
const one = groups.length && groups.every(g => g.items.length === 1 && g.items[0].name === groups[0].items[0].name);
const status = it => `<div class="rstatus" style="color:var(--${it.status})"><span class="dot" role="img" aria-label="${esc(t(it.status))}" style="background:var(--${it.status})"></span><span>${esc(t(it.status))}</span></div>`;
const cards = groups.map(g => {
const [slug, fac] = RACES[g.title], name = esc(tr(g, 'title'));
return `<div class="race ${fac}"><div class="rframe"><div class="rclip"><div class="rback" style="background-image:url(images/races/cartes/${slug}.webp)" role="img" aria-label="${name}"></div></div>`
+ `<div class="rhover" style="background-image:url(images/races/cartes/${slug}-hover.webp)"></div>${g.items.some(isNew) ? `<span class="newtag corner">${esc(t('newtag'))}</span>` : ''}<img class="rbadge" src="images/races/${fac}.png" alt=""></div><div class="rname">${name}</div>`
+ (one ? status(g.items[0]) : `<ul class="rlines">${g.items.map(line).join('')}</ul>`) + `</div>`;
}).join('');
return (one ? `<h3 class="group">${esc(tr(groups[0].items[0], 'name'))}</h3>` : '') + `<div class="races-row">${cards}</div>`;
}
function section(s) {
const list = items(s), c = count(list);
const body = s.layout === 'races' ? racesView(s) : s.groups.map(g => groupHtml(g, s)).join('');
const icon = s.icon ? `<img src="${esc(s.icon)}" alt="">` : '';
return `<div class="view-head${s.planned ? ' planned' : ''}"><button class="back" data-cat="">${t('back')}</button>${icon}<h2>${esc(tr(s, 'title'))}</h2>
</div>${bars(c, 'minibar headbar', plannedPoints(s))}` + (body ? (s.planned ? `<div class="plannedwrap">${body}<div class="bigveil"><div class="msg">${esc(t('planned'))}</div></div></div>` : body) : `<p class="empty">${t('none')}</p>`);
}
function results() {
const out = [];
for (const s of data.sections) if (!s.planned) for (const g of s.groups) for (const it of g.items) if (matches(it, s, g)) out.push(tile(it, s, true));
return `<div class="view-head"><button class="back" data-cat="" id="clear">${t('back')}</button><span class="sub">${T[lang].results(out.length)}</span></div>` +
(out.length ? `<div class="tiles" style="margin-top:14px">${out.join('')}</div>` : `<p class="empty">${t('none')}</p>`);
}
function tracker(cat) {
if (!data) return `<p class="empty">…</p>`;
const s = data.sections.find(x => secId(x) === cat);
let body;
if (query) body = results();
else if (s) body = section(s);
else body = home() + (active.size ? results().replace(/^<div class="view-head">[\s\S]*?<\/div>/, '') : '');
return (!s && !query ? devnote() : '') + overview() + body;
}
/* ---------- updates ---------- */
const TAGS = { fix: 'fix', change: 'change', crash: 'crash', exploit: 'exploit', 'data loss': 'data-loss', 'memory leak': 'leak' };
// every entry counts, tagged or not: a [Crash] or a memory leak apart, a [Change] or a line of a section presented as a
// deliberate departure as a change, anything else as a fix; a line ending with a colon counts its sub-items instead
function stats(body) {
const c = { fix: 0, change: 0, crash: 0, leak: 0 };
let departure = false, parent = null;
for (const line of body.split('\n')) {
if (line.startsWith('#')) { departure = false; parent = null; continue; }
if (line.includes('deliberate departure')) departure = true;
const top = line.match(/^- (?:\*\*\[([^\]]+)\]\*\*)?/);
if (top) {
if (line.startsWith('- *') && !line.startsWith('- **')) { parent = null; continue; }
const tag = (top[1] || '').toLowerCase();
const kind = tag === 'crash' ? 'crash' : tag.startsWith('memory leak') ? 'leak' : tag === 'change' || (!tag && departure) ? 'change' : 'fix';
if (line.trimEnd().endsWith(':')) { parent = kind; continue; }
parent = null; c[kind]++;
} else if (parent && /^\s+- /.test(line)) c[parent]++;
}
return c;
}
function renderMarkdown(r) {
const key = r.tag + '|' + lang;
if (rendered.has(key)) return rendered.get(key);
if (!window.marked) return `<p class="empty">${t('loading')}</p>`;
// the "in numbers" callout at the end repeats the counters shown above the note; other GitHub alerts
// ("> [!NOTE]") become a titled callout
const md = r.body.replace(/\n> \[!NOTE\][^\n]*\n(?:>[^\n]*\n?)*?> \| \*\*Total\*\*[^\n]*\n?\s*$/, '').replace(/\n+---\s*$/, '')
.replace(/^> \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\][ \t]*$/gm,
(m, k) => `> <span class="ctitle">ⓘ ${k.charAt(0) + k.slice(1).toLowerCase()}</span>`);
let html = marked.parse(md, { gfm: true });
if (window.DOMPurify) html = DOMPurify.sanitize(html);
// a line struck through as reverted tells why on hover, in the page language
html = html.replace(/<del([^>]*class="reverted"[^>]*)>/g, (m, attrs) => { const v = (attrs.match(new RegExp('data-' + lang + '="([^"]*)"')) || attrs.match(/data-en="([^"]*)"/) || [])[1] || ''; return `<del class="reverted" title="${v}">`; });
const box = document.createElement('div');
box.innerHTML = html;
box.querySelectorAll('blockquote').forEach(q => { if (q.querySelector('.ctitle')) q.classList.add('callout'); });
// [Fix] / [Change] / [Crash] labels, and the Core/Scripts/DB scope that follows them
box.querySelectorAll('li').forEach(li => {
const first = li.firstElementChild;
if (!first || first.tagName !== 'STRONG' || li.firstChild !== first) return;
const m = first.textContent.match(/^\[(.+)\]$/);
if (!m) return;
const tag = document.createElement('span');
tag.className = 'tag ' + (TAGS[m[1].toLowerCase()] || 'other');
tag.textContent = m[1];
first.replaceWith(tag);
const next = tag.nextSibling;
if (next && next.nodeType === 3) {
const sm = next.textContent.match(/^\s*((?:Core|Scripts|DB|Hotfixes|README|Tools)(?:\/[^:]+)?:)\s?/);
if (sm) {
const scope = document.createElement('span');
scope.className = 'scope';
scope.textContent = sm[1];
next.textContent = ' ' + next.textContent.slice(sm[0].length);
tag.after(scope);
}
}
});
linkWowhead(box, r.links || []);
box.querySelectorAll('a[href^="http"]').forEach(a => { a.target = '_blank'; a.rel = 'noopener'; });
const out = box.innerHTML;
rendered.set(key, out);
return out;
}
// names of quests, creatures, items, spells and zones (listed by outils/releases_vers_json.py) link to Wowhead,
// whose script shows the tooltip on hover
function linkWowhead(box, links) {
if (!links.length) return;
const map = new Map(links);
const escRe = s => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
const re = new RegExp('(?<![\\w\'’])(' + links.map(l => escRe(l[0])).join('|') + ')(?![\\w’])', 'g');
const base = WOWHEAD[lang];
const walker = document.createTreeWalker(box, NodeFilter.SHOW_TEXT, {
acceptNode: n => n.parentElement.closest('a, code, .scope, .tag, h2, th, td') ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
});
const nodes = [];
while (walker.nextNode()) nodes.push(walker.currentNode);
for (const node of nodes) {
const text = node.textContent;
re.lastIndex = 0;
if (!re.test(text)) continue;
re.lastIndex = 0;
const frag = document.createDocumentFragment();
let last = 0, m;
while ((m = re.exec(text))) {
if (m.index > last) frag.append(text.slice(last, m.index));
const a = document.createElement('a');
a.className = 'wh';
a.href = base + map.get(m[1]);
a.textContent = m[1];
frag.append(a);
last = m.index + m[1].length;
}
frag.append(text.slice(last));
node.replaceWith(frag);
}
}
function updates(tag) {
if (releasesFailed) return `<p class="empty">${t('noreleases')}</p>`;
if (!releases) return `<p class="empty">${t('loading')}</p>`;
// the next version is followed while it is being built; the last published one stays the default
const dev = upcoming && tag === upcoming.tag;
const r = dev ? upcoming : (releases.find(x => x.tag === tag) || releases[0]);
const st = stats(r.body);
const devButton = upcoming ? `<button class="ver dev" data-ver="${esc(upcoming.tag)}" aria-current="${dev}">
<span class="latest">${t('indev')}</span><b class="long">${esc(tr(upcoming, 'title'))}</b><span>${fmtDate(upcoming.date)}</span></button><div class="vsep"></div>` : '';
const list = devButton + releases.map((x, i) => `<button class="ver${i === 0 ? ' newest' : ''}" data-ver="${esc(x.tag)}" aria-current="${!dev && x.tag === r.tag}">
${i === 0 ? `<span class="latest">${t('latest')}</span>` : ''}<b>${esc(x.tag)}</b><span>${fmtDate(x.date)}</span></button>`).join('');
const chips = [['fix', st.fix, 'fixes'], ['change', st.change, 'changes'], ['crash', st.crash, 'crashes'], ['leak', st.leak, 'leaks']]
.filter(c => c[1]).map(([k, n, l]) => `<span class="rstat"><span class="tag ${k}" style="margin:0">${k === 'leak' ? 'leak' : k}</span><b>${n}</b> ${T[lang][l](n)}</span>`).join('');
const badge = dev ? '' : r.prerelease ? `<span class="pre">${t('pre')}</span>` : '';
const meta = dev ? `<span>${T[lang].devupdated(fmtDate(r.date))}</span>`
: `<span>${T[lang].released(fmtDate(r.date))}</span><a class="gh" href="${esc(r.url)}" target="_blank" rel="noopener">${t('ongh')} ↗</a>`;
return `<div class="updates"><aside class="versions"><div class="vtitle">${t('versions')}</div>${list}</aside>
<article class="release">${r.banner ? `<div class="banner${r.small_banner ? ' small' : ''}"><img src="${esc(r.banner)}" alt="${dev ? esc(tr(r, 'title')) : 'Version ' + esc(r.tag)}"></div>` : ''}
${r.art ? `<div class="rart"><img src="${esc(r.art)}" alt=""><div class="rart-txt">` : ''}<div class="rhead"><div class="rtitle"><h2 class="gradient-title">${dev ? esc(tr(r, 'title')) : 'Version ' + esc(r.tag)}</h2>${badge}</div><div class="meta">${meta}</div></div>
${chips ? `<div class="rstats">${chips}</div>` : ''}${dev ? `<p class="devnote">${t('devnote')}</p>` : ''}${r.art ? '</div></div>' : ''}<div class="md">${renderMarkdown(r)}</div></article></div>`;
}
/* ---------- information: what differs from retail, and why ---------- */
const L = v => v == null ? '' : typeof v === 'string' ? v : (v[lang] || v.en || '');
const paras = v => esc(L(v)).split('\n\n').map(x => `<p>${x}</p>`).join('');
const infoChips = c => c ? `<div class="ichips"><span class="ichips-label">${esc(L(c.label))}</span>${c.items.map(i => `<span class="ichip${i.def ? ' def' : ''}"><b>${esc(i.k)}</b>${esc(i.v)}${i.def ? `<em>${esc(L(i.def))}</em>` : ''}</span>`).join('')}</div>` : '';
const infoRow = (r, lab) => `<div class="irow"><div class="ititle">${esc(L(r.title))}</div>
<div class="icol ret"><span class="ilab">${esc(L(lab.retail))}</span>${esc(L(r.retail))}</div>
<div class="icol ours"><span class="ilab">${esc(L(lab.ours))}</span>${esc(L(r.ours))}${r.note ? `<div class="inote"><b>${esc(L(lab.note))}</b>${esc(L(r.note)).replace(/\.demoninvasion/g, '<code>.demoninvasion</code>')}</div>` : ''}${r.options && r.options.length ? `<div class="iopt">${r.options.map(o => `<code>${esc(o)}</code>`).join('')}</div>` : ''}</div></div>`;
function infoView(id) {
if (infoFailed) return `<p class="empty">${t('infofail')}</p>`;
if (!info) return `<p class="empty">${t('infoloading')}</p>`;
const s = info.sections.find(x => x.id === id) || info.sections[0];
const nav = info.sections.map(x => `<button class="ver" data-info="${esc(x.id)}" aria-current="${x.id === s.id}"><b>${esc(L(x.title))}</b></button>`).join('');
const rows = `<div class="irows">${(s.rows || []).map(r => infoRow(r, info.labels)).join('')}</div>`;
const why = s.why ? `<aside class="iwhy"><h3>${esc(t('infowhy'))}</h3>${paras(s.why)}</aside>` : '';
return `<p class="iintro">${esc(L(info.intro))}</p><div class="updates"><aside class="versions"><div class="vtitle">${t('infotopics')}</div>${nav}</aside>
<article class="release"><div class="rhead"><div class="rtitle"><h2 class="gradient-title">${esc(L(s.title))}</h2>${s.same ? `<span class="pre same">${esc(t('infosame'))}</span>` : ''}</div></div>
<div class="ibody">${s.summary ? `<p class="isum">${esc(L(s.summary))}</p>` : ''}${infoChips(s.chips)}${rows}${why}</div></article></div>`;
}
/* ---------- timeline: what each patch tier opens and changes ---------- */
const tlSeg = x => typeof x === 'string' ? esc(x)
: `<a class="whl" href="${WOWHEAD[lang]}${esc(x.l)}" target="_blank" rel="noopener" data-wh-icon-added="true">${esc(x.t)}</a>`;
const tlLine = l => `<li>${(l[lang] || l.en).map(tlSeg).join('')}</li>`;
function timelineView(id) {
if (timelineFailed) return `<p class="empty">${t('tlfail')}</p>`;
if (!timeline) return `<p class="empty">${t('tlloading')}</p>`;
const cur = timeline.tiers.find(x => x.id === id) || timeline.tiers[0];
const nav = timeline.tiers.map(x => `<button class="tl-step${x.tier.endsWith('.5') ? ' minor' : ''}${x.state === 'dev' ? ' dev' : x.state === 'soon' ? ' soon' : ''}" data-tl="${esc(x.id)}" aria-current="${x.id === cur.id}"${x.state === 'dev' ? ` title="${esc(L(timeline.dev))}"` : x.state === 'soon' ? ` title="${esc(L(timeline.soon))}"` : ''}><em>${esc(L(x.name))}</em><b>${esc(x.tier)}</b></button>`).join('');
const blocks = ['new', 'items', 'changed'].filter(k => cur.blocks[k]).map(k =>
`<section class="tl-block tl-${k}"><h3>${esc(L(timeline.blocks[k]))}</h3>${cur.blocks[k].map(g =>
`<div class="tl-grp"><h4>${esc(L(g.cat))}</h4><ul>${g.lines.map(tlLine).join('')}</ul></div>`).join('')}</section>`).join('');
return `<nav class="tl-nav" aria-label="${esc(t('timeline'))}">${nav}</nav>
<article class="release tl-card"><div class="rhead"><div class="rtitle"><h2 class="gradient-title">Patch ${esc(cur.tier)}</h2>${cur.state === 'dev' ? `<span class="pre devbadge">${esc(L(timeline.dev))}</span>` : cur.state === 'soon' ? `<span class="pre soonbadge">${esc(L(timeline.soon))}</span>` : ''}</div></div>
<div class="tl-blocks">${blocks}</div></article>`;
}
/* ---------- render ---------- */
function render() {
document.documentElement.lang = HTML_LANG[lang];
document.title = t('title');
document.getElementById('tagline').textContent = t('tagline');
document.getElementById('l-repo').textContent = t('repo');
document.getElementById('l-bug').textContent = t('bug');
document.getElementById('footer').innerHTML = `<p>${t('footer')}</p>`;
document.querySelectorAll('.lang button').forEach(b => b.setAttribute('aria-pressed', b.dataset.lang === lang));
if (data) document.getElementById('updated').textContent = T[lang].updated(fmtDate(data.updated));
const r = route();
document.getElementById('t-tracker').textContent = t('tracker');
document.getElementById('t-info').textContent = t('info');
document.getElementById('t-timeline').textContent = t('timeline');
document.getElementById('t-updates').innerHTML = esc(t('updates')) + (releases && releases.length ? ` <span class="pill">${esc(releases[0].tag)}</span>` : '');
document.querySelectorAll('.tab').forEach(b => b.setAttribute('aria-selected', b.dataset.view === r.view));
const main = document.getElementById('main');
if (r.view === 'updates') {
main.innerHTML = updates(r.tag);
if (window.$WowheadPower) $WowheadPower.refreshLinks();
} else if (r.view === 'info') {
main.innerHTML = infoView(r.id);
} else if (r.view === 'timeline') {
main.innerHTML = timelineView(r.id);
if (window.$WowheadPower && main.querySelector('a.whl')) $WowheadPower.refreshLinks();
} else {
const focused = document.activeElement && document.activeElement.id === 'search';
const pos = focused ? document.activeElement.selectionStart : 0;
main.innerHTML = tracker(r.cat);
if (window.$WowheadPower && main.querySelector('a.whl')) $WowheadPower.refreshLinks();
if (focused) { const s = document.getElementById('search'); s.focus(); s.setSelectionRange(pos, pos); }
}
}
const toTop = () => window.scrollTo({ top: document.querySelector('.hero').offsetHeight - 8 });