-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfailsafe.html
More file actions
1616 lines (1451 loc) · 82.5 KB
/
Copy pathfailsafe.html
File metadata and controls
1616 lines (1451 loc) · 82.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
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>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Blueprint</title>
<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=Roboto:wght@300;400;700&family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
<!-- Scripts for the new Archive Page -->
<!-- This MUST be the first script to create the 'bookshelf' -->
<script> const ARCHIVE_CONTENT = {}; </script>
<!-- Load the 'table of contents' and then all the 'books' -->
<script src="archive_manifest.js"></script>
<script src="archive/bab1/99or911.js"></script>
<!-- Add your other content .js files here as you create them -->
<style>
/* --- Base & Theme Variables --- */
:root {
--bg-primary: #121212;
--bg-secondary: #1e1e1e;
--bg-tertiary: #2a2a2a;
--text-primary: #f0f0f0;
--text-secondary: #a0a0a0;
--accent-blue: #44aaff;
--accent-blue-link: #77ccff;
--accent-blue-deep: #2288ee;
--border-color: #333;
--tag-bg: #4a4a4a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Roboto', sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
/* --- Dynamic Background (Used by GRadio) --- */
#dynamic-background {
position: fixed;
top: 0;
left: 50%;
width: 50%;
height: 100vh;
z-index: -1;
background-size: cover;
background-position: center center;
opacity: 0;
transition: opacity 0.5s ease-in-out;
-webkit-mask-image: linear-gradient(to right, transparent 5%, black 40%);
mask-image: linear-gradient(to right, transparent 5%, black 40%);
}
/* --- Header / Top Navigation --- */
header {
display: flex; justify-content: space-between; align-items: center;
padding: 0 40px; height: 70px; background-color: var(--bg-secondary);
border-bottom: 1px solid var(--border-color); width: 100%;
flex-shrink: 0; z-index: 10;
border-radius: 0 0 8px 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.logo { font-size: 2em; font-weight: 700; color: var(--accent-blue); text-decoration: none; cursor: pointer; text-shadow: 0 0 5px rgba(68,170,255,0.5); }
.header-right { display: flex; align-items: center; gap: 50px; }
nav.main-nav { display: flex; gap: 50px; }
nav.main-nav a {
color: var(--text-secondary); text-decoration: none; font-size: 1.1em;
padding: 24px 0; border-bottom: 3px solid transparent;
transition: color 0.2s, border-color 0.2s; cursor: pointer;
}
nav.main-nav a:hover { color: var(--text-primary); }
nav.main-nav a.active { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--accent-blue); }
.login-btn {
border: 1px solid var(--accent-blue); color: var(--accent-blue);
background: none; padding: 8px 20px; border-radius: 20px;
cursor: pointer; font-weight: 700; transition: all 0.2s;
animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
from { box-shadow: 0 0 8px rgba(68,170,255,0.4); }
to { box-shadow: 0 0 16px rgba(68,170,255,0.7); }
}
.login-btn:hover { background-color: var(--accent-blue); color: var(--bg-primary); animation: none; box-shadow: 0 0 15px rgba(68,170,255,0.8); }
.logo.failsafe-active {
animation: failsafe-pulse 2s infinite alternate ease-in-out;
}
@keyframes failsafe-pulse {
from {
color: #900;
text-shadow: 0 0 10px #ff0000, 0 0 15px #ff0000;
}
to {
color: #121212;
text-shadow: none;
}
}
/* --- Main Content Area --- */
.page-content { flex-grow: 1; overflow: hidden; position: relative; }
#hive-page { display: none; width: 100%; }
#home-page { display: none; width: 100%; }
/* --- Gnomon Radio Page & Wheel Styling --- */
#gnomon-radio-page {
display: none;
width: 100%;
justify-content: center;
align-items: center;
font-family: 'Roboto Mono', monospace;
background-image: linear-gradient(rgba(18,18,18,0.85), rgba(18,18,18,0.85)),
url('images/fgradiobg.png');
background-size: cover;
background-position: center calc(50% + 10px);
background-attachment: fixed;
padding: 20px;
gap: 20px;
}
.gnomon-container {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}
#gnomon-wheel-svg {
display: block;
max-width: 100%;
max-height: 100%;
width: 550px;
height: auto;
overflow: visible;
filter: drop-shadow(0 0 30px rgba(68, 170, 255, 0.5));
transition: filter 0.5s ease-in-out;
}
#gnomon-wheel-svg.failsafe-glow {
filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.8));
}
#gnomon-wheel-svg.failsafe-active .segment {
pointer-events: none;
cursor: default;
}
#gnomon-wheel-svg .segment, #gnomon-wheel-svg #center-circle-bg {
stroke: #000;
stroke-width: 1.5px;
transition: fill 0.2s ease-in-out;
cursor: pointer;
}
#gnomon-wheel-svg .segment-text, #gnomon-wheel-svg .center-curved-text-style {
fill: var(--text-primary);
font-size: 8px;
font-weight: bold;
text-anchor: middle;
dominant-baseline: central;
pointer-events: none;
text-transform: uppercase;
letter-spacing: 1px;
opacity: 0.9;
transition: fill 0.2s ease-in-out;
}
#gnomon-wheel-svg .center-curved-text-style {
font-size: 8px;
}
#gnomon-wheel-svg g:hover .center-curved-text-style {
fill: #000;
}
#gnomon-wheel-svg .image-placeholder {
opacity: 0.7;
pointer-events: none;
animation: symbol-pulse 7s infinite ease-in-out;
}
@keyframes symbol-pulse {
0%, 100% {
filter: drop-shadow(0 0 2px rgba(119,204,255,0));
transform: scale(1);
}
50% {
filter: drop-shadow(0 0 8px var(--accent-blue-link));
transform: scale(1.05);
}
}
#center-element.failsafe-active #center-circle-bg {
fill: #900;
stroke: #ff0000;
}
#center-element.failsafe-active .center-curved-text-style {
animation: failsafe-text-pulse 1.5s infinite alternate ease-in-out;
}
@keyframes failsafe-text-pulse {
from { fill: #121212; letter-spacing: 1px; }
to { fill: #ff0000; text-shadow: 0 0 8px #ff0000; letter-spacing: 2px;}
}
/* --- Welcome & Chatbox Styling --- */
#welcome-container, #chat-container {
width: 300px;
height: 80vh;
max-height: 600px;
background-color: rgba(18, 18, 18, 0.7);
border: 1px solid var(--border-color);
border-radius: 8px;
display: flex;
flex-direction: column;
backdrop-filter: blur(5px);
flex-shrink: 0;
}
#welcome-container {
padding: 25px 25px 25px 25px;
justify-content: flex-start;
}
#welcome-container h3 {
color: var(--accent-blue);
margin-bottom: 15px;
padding-bottom: 15px;
font-size: 1.5em;
text-align: center;
border-bottom: 1px solid var(--border-color);
}
#welcome-container p {
color: var(--text-secondary);
line-height: 1.6;
font-size: 0.95em;
}
#welcome-container p:not(:last-child) {
margin-bottom: 15px;
}
#welcome-toggle {
display: none;
background: none;
border: 1px solid var(--text-secondary);
color: var(--text-secondary);
padding: 5px 10px;
border-radius: 15px;
cursor: pointer;
margin-top: 15px;
align-self: center;
font-family: 'Roboto Mono', monospace;
font-size: 0.8em;
align-items: center;
}
#welcome-toggle .toggle-icon {
margin-left: 8px;
font-weight: bold;
}
#chat-messages {
flex-grow: 1;
padding: 15px;
overflow-y: auto;
display: flex;
flex-direction: column-reverse;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background-color: var(--bg-tertiary); }
.chat-message {
margin-bottom: 10px;
}
.chat-username {
font-weight: 700;
color: var(--accent-blue-link);
margin-right: 8px;
}
.chat-text {
color: var(--text-secondary);
}
#chat-input-area {
display: flex;
padding: 10px;
border-top: 1px solid var(--border-color);
}
#chat-input {
flex-grow: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 15px;
padding: 8px 12px;
color: var(--text-primary);
margin-right: 10px;
}
#chat-input:focus {
outline: 1px solid var(--accent-blue);
}
#chat-send-btn {
background-color: var(--accent-blue);
border: none;
border-radius: 50%;
width: 35px;
height: 35px;
color: white;
font-size: 1.2em;
cursor: pointer;
}
/* --- Home Page Specific Styles --- */
#home-page {
overflow-y: auto;
padding: 50px 40px;
background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('images/fhomebg.png');
background-size: cover;
background-position: center;
background-attachment: fixed;
}
.home-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 100px;
}
.home-video-section {
background-color: #000;
padding: 0;
border-radius: 12px;
border: 1px solid var(--border-color);
box-shadow: 0 8px 25px rgba(0,0,0,0.5);
overflow: hidden;
height: 60vh;
}
.home-video-section video {
width: 100%;
height: 100%;
object-fit: cover;
}
.home-intro-text {
text-align: center;
max-width: 800px;
margin: 0 auto;
padding: 20px 0;
}
.home-intro-text p {
font-size: 1.4em;
line-height: 1.7;
color: var(--text-secondary);
margin-bottom: 1.5em;
}
.home-intro-text .orange-text {
color: var(--accent-blue);
font-weight: 700;
font-size: 2.5em;
}
.home-container a {
color: var(--accent-blue-link);
text-decoration: none;
font-weight: 700;
cursor: pointer;
}
.home-container a:hover {
text-decoration: underline;
}
.home-section {
background-color: transparent;
padding: 0 60px;
display: flex;
gap: 50px;
align-items: center;
}
.home-section:nth-child(even) {
flex-direction: row-reverse;
}
.home-section-text {
flex: 1;
}
.home-section-placeholder {
flex: 1;
max-width: 400px;
aspect-ratio: 1 / 1;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
color: var(--text-secondary);
font-style: italic;
background-size: cover;
background-position: center;
}
#what-to-do-section .home-section-placeholder {
max-width: 320px;
aspect-ratio: 3 / 4.5;
background-color: var(--bg-tertiary);
}
#g-type-quiz-section .home-section-placeholder,
#gnomon-radio-section .home-section-placeholder {
background-color: transparent;
-webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}
.home-section h2 {
color: var(--accent-blue);
margin-bottom: 20px;
font-size: 2.5em;
}
.home-section p {
color: var(--text-secondary);
font-size: 1.2em;
line-height: 1.7;
}
.home-section-text p:not(:last-child) {
margin-bottom: 1.5em;
}
/* --- New Archive Page (s3) Specific Styles --- */
#hive-page .left-panel {
width: 240px;
background-color: var(--bg-secondary);
display: flex;
flex-direction: column;
padding: 20px;
border-right: 1px solid var(--border-color);
flex-shrink: 0;
}
#hive-page .category-list-wrapper {
overflow-y: auto;
flex-grow: 1;
}
#hive-page .category-list-wrapper::-webkit-scrollbar {
width: 4px;
}
#hive-page .category-list-wrapper::-webkit-scrollbar-thumb {
background-color: var(--bg-tertiary);
}
#hive-page .category-list {
list-style: none;
}
#hive-page .category-list-item button {
width: 100%;
padding: 12px;
font-size: 1.1em;
color: var(--text-secondary);
text-align: left;
background: transparent;
border: none;
border-bottom: 1px solid var(--border-color);
border-radius: 6px;
cursor: pointer;
transition: color 0.2s, background-color 0.2s;
}
#hive-page .category-list-item button:hover {
color: var(--text-primary);
}
#hive-page .category-list-item.active button {
background-image: linear-gradient(to bottom, var(--accent-blue), var(--accent-blue-deep));
color: var(--bg-primary);
font-weight: 700;
}
#hive-page .right-panel {
flex-grow: 1;
padding: 50px;
overflow-y: auto;
}
#hive-page .right-panel::-webkit-scrollbar {
width: 6px;
}
#hive-page .right-panel::-webkit-scrollbar-thumb {
background-color: #444;
}
#archive-content-container {
max-width: 800px;
margin: 0 auto;
color: var(--text-secondary);
}
#archive-content-container h2 {
font-size: 2.5em;
color: var(--text-primary);
margin-bottom: 30px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 20px;
}
.archive-entry details {
margin-bottom: 15px;
border: 1px solid var(--border-color);
border-radius: 6px;
background-color: var(--bg-secondary);
}
.archive-entry summary {
padding: 15px 20px;
font-size: 1.2em;
font-weight: 700;
color: var(--accent-blue-link);
cursor: pointer;
outline: none;
list-style: none;
}
.archive-entry summary::-webkit-details-marker {
display: none;
}
.archive-entry summary:hover {
background-color: var(--bg-tertiary);
}
.archive-document-content {
padding: 0 20px 20px 20px;
line-height: 1.7;
white-space: pre-wrap;
font-family: 'Roboto', sans-serif;
font-size: 1.1em;
}
/* --- Footer --- */
footer {
text-align: center; padding: 15px 40px; height: 50px; background-color: var(--bg-secondary);
border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.9em;
width: 100%; flex-shrink: 0; z-index: 5; transition: opacity 0.3s;
}
footer.hidden { opacity: 0; pointer-events: none; }
/* --- Persistent Player --- */
#persistent-player {
position: fixed; bottom: -70px; left: 0; width: 100%; height: 70px;
background-color: #181818; border-top: 1px solid var(--border-color); z-index: 20;
display: flex; align-items: center; padding: 0 20px; gap: 15px;
transition: bottom 0.3s ease-in-out;
border-radius: 8px 8px 0 0;
box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}
#persistent-player.visible { bottom: 0; }
.player-track-info { display: flex; align-items: center; gap: 15px; min-width: 150px; width: 25%; }
.player-album-art {
width: 45px; height: 45px; background-color: #333;
background-size: cover; background-position: center; flex-shrink: 0;
}
.player-title-artist { overflow: hidden; }
.player-title-artist .title {
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-title-artist .artist { font-size: 0.9em; color: var(--text-secondary); }
.player-center-controls { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-grow: 1; }
.player-controls { display: flex; align-items: center; gap: 20px; }
.player-controls button { background: none; border: none; color: var(--text-primary); font-size: 1.5em; cursor: pointer; transition: color 0.2s, text-shadow 0.2s, opacity 0.2s; }
.player-controls button.active {
color: var(--accent-blue);
text-shadow: 0 0 8px var(--accent-blue);
}
.player-controls button:disabled {
opacity: 0.5;
cursor: not-allowed;
color: var(--text-secondary);
text-shadow: none;
}
.player-progress-container { display: flex; align-items: center; gap: 10px; width: 100%; }
#player-progress-bar.interactive { cursor: pointer; }
.player-volume { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 25%; min-width: 150px; }
.player-volume-btn {
background: none; border: none; padding: 0;
cursor: pointer; width: 24px; height: 24px;
}
.player-volume-btn svg {
width: 100%; height: 100%;
fill: var(--text-primary);
transition: fill 0.2s, filter 0.2s;
}
.player-volume-btn.muted #volume-icon-muted {
fill: var(--accent-blue);
filter: drop-shadow(0 0 4px var(--accent-blue));
}
#player-radio {
border: 1px solid var(--text-secondary); color: var(--text-secondary);
background: none; padding: 4px 8px; border-radius: 4px;
cursor: pointer; font-weight: 700; font-size: 0.8em;
transition: all 0.2s;
}
#player-radio.active {
border-color: var(--accent-blue);
color: var(--accent-blue);
box-shadow: 0 0 8px rgba(68,170,255,0.7);
}
#player-radio:disabled {
opacity: 0.5 !important;
cursor: not-allowed;
color: var(--text-secondary) !important;
box-shadow: none !important;
border-color: var(--text-secondary) !important;
}
/* Volume Slider Styling */
#player-volume-slider {
-webkit-appearance: none; appearance: none;
width: 100px; height: 6px; background: #555;
border-radius: 3px; outline: none; cursor: pointer;
}
#player-volume-slider::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none;
width: 16px; height: 16px; background: var(--text-primary);
border-radius: 50%; cursor: pointer;
}
#player-volume-slider::-moz-range-thumb {
width: 16px; height: 16px; background: var(--text-primary);
border-radius: 50%; cursor: pointer;
}
#main-audio-player, #radio-audio-player, #failsafe-audio-player { display: none; }
#persistent-player.radio-mode #player-prev,
#persistent-player.radio-mode #player-play,
#persistent-player.radio-mode #player-next,
#persistent-player.radio-mode #player-shuffle,
#persistent-player.radio-mode #player-repeat {
display: none;
}
/* Responsive Overrides */
.short-text { display: none; }
@media (max-width: 900px) {
.full-text.nav-text { display: none; }
.short-text.nav-text { display: inline; }
.header-left, nav.main-nav, .header-right { gap: 20px; }
.home-section, .home-section:nth-child(even) {
flex-direction: column !important;
padding: 0 20px;
gap: 25px;
}
.home-section .home-section-text {
order: 1;
text-align: center;
}
.home-section .home-section-placeholder {
order: 2;
flex: none;
width: 100%;
}
#what-to-do-section .home-section-text {
display: none;
}
#what-to-do-section {
justify-content: center;
}
#what-to-do-section .home-section-placeholder {
max-width: 400px;
}
}
@media (max-width: 768px) {
#home-page { padding: 50px 20px; }
#gnomon-radio-page {
flex-direction: column;
overflow-y: auto;
justify-content: flex-start;
padding-top: 40px;
padding-bottom: 40px;
}
#hive-page { flex-direction: column; }
#hive-page .left-panel { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
#hive-page .right-panel { padding: 25px; }
#welcome-container {
width: 90%;
height: auto;
max-height: none;
margin-bottom: 20px;
order: -1;
justify-content: flex-start;
padding-bottom: 15px;
}
#welcome-container h3 {
margin-bottom: 15px;
}
#welcome-toggle {
display: inline-flex;
}
#welcome-collapsible-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease-in-out;
}
#welcome-collapsible-content.expanded {
max-height: 500px; /* Adjust if content is taller */
}
#chat-container { width: 90%; height: 40vh; max-height: 300px; margin-top: 20px; }
.player-progress-container { display: none; }
header { padding: 0 20px; }
.header-right { gap: 15px; }
.player-volume {
width: auto;
min-width: 0;
justify-content: center;
}
#player-volume-slider { display: none; }
}
</style>
</head>
<body>
<div id="dynamic-background"></div>
<header>
<div class="header-left">
<a class="logo" id="logo">The Blueprint</a>
</div>
<div class="header-right">
<nav class="main-nav">
<a href="#" class="nav-link" data-page="home-page">Home</a>
<a href="#" class="nav-link" data-page="hive-page">
<span class="full-text nav-text">The Archive</span>
<span class="short-text nav-text">Archive</span>
</a>
<a href="#" class="nav-link" data-page="gnomon-radio-page">
<span class="full-text nav-text">Gnomon Radio</span>
<span class="short-text nav-text">GRadio</span>
</a>
</nav>
<button class="login-btn">Login</button>
</div>
</header>
<div id="home-page" class="page-content">
<div class="home-container">
<section class="home-video-section">
<video src="vidpreviews/flipfeatured_video.mp4" autoplay muted loop playsinline></video>
</section>
<section class="home-intro-text">
<p class="orange-text">The Blueprint isn't just about music.</p>
<p>It’s a way of seeing life, and understanding how it sees you back. What happens within this world, shapes what it becomes. And what it becomes, will inevitably shape us.</p>
<p>We can start by listening. We can start by seeing what’s actually there. We can start by understanding what this world is turning into, and what part we play in it. <br>Read on or head over to <a id="home-to-hive-link">The Archive</a> to listen to music.</p>
</section>
<section class="home-section" id="what-to-do-section">
<div class="home-section-text">
<h2>What can I do here?</h2>
<p>This space isn't passive. It's a place to explore, connect, and take part in something meaningful. Whether you want to come back, or simply leave with something you didnt have the words for previously. What you do matters.</p>
<p>Meet the artists, take the quiz, tune in, share what hits. Whether you stay five minutes or five hours, you're part of the Archive now.</p>
</div>
<div class="home-section-placeholder" style="background-image: url('images/fhome1.png');">
</div>
</section>
<section class="home-section" id="g-type-quiz-section">
<div class="home-section-text">
<h2>Discover your G-Type</h2>
<p>Curious what your unique archetype might be? Take the <a href="gquiz.html" target="_blank">Questionnaire</a> and find out where you fit in, and explore a side of yourself you might not have put into words before. Whether you’re here out of curiosity or to find a deeper connection, this is where you start.</p>
<p>Take a few minutes to dive in, see what resonates, and explore a perspective you've been circling for years without realising.</p>
</div>
<div class="home-section-placeholder" style="background-image: url('images/fhome2.png');">
</div>
</section>
<section class="home-section" id="gnomon-radio-section">
<div class="home-section-text">
<h2>What’s the GRadio?</h2>
<p><a id="home-to-GRadio-link">Gnomon Radio</a> is a constantly evolving stream of songs from our AI artists, curated to match different G-Type energies. It’s not built on genre or tempo. It’s built on state of mind.</p>
<p>Whether you're seeking clarity, processing emotion, or just need background frequencies that get it, this stream is designed to give your mind what it needs. Without needing to ask.</p>
</div>
<div class="home-section-placeholder" style="background-image: url('images/fhome3.png');">
</div>
</section>
</div>
</div>
<div id="gnomon-radio-page" class="page-content">
<div id="welcome-container">
<h3>Welcome to Gnomon Radio</h3>
<div id="welcome-collapsible-content">
<p>This is a 24/7 living stream from The Blueprint. Music tuned to mindset, not mood. Sorted by G-Type, not genre.</p>
<p>Whether you’re up late thinking, mid-spiral, or chasing stillness in the noise, this stream meets your state of mind without asking questions.</p>
<p>Pick a G‑Type from the wheel to match your headspace, or hit Global for a full-spectrum ride. It’s all here. Your move.</p>
</div>
<button id="welcome-toggle">
<span class="toggle-text">read more</span><span class="toggle-icon">+</span>
</button>
</div>
<div class="gnomon-container">
<svg id="gnomon-wheel-svg" viewBox="-160 -160 320 320">
<defs>
<path id="centerTextCurveTop" d="M -22 -3 A 22 19 0 0 1 22 -3" fill="none"/>
<path id="centerTextCurveBottom" d="M -22 10 A 22 19 0 0 0 22 10" fill="none"/>
<pattern id="fgrwheel1" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="images/fgrwheel1.png" preserveAspectRatio="xMidYMid slice" x="0" y="0" width="1" height="1" /></pattern>
<pattern id="fgrwheel2" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="images/fgrwheel2.png" preserveAspectRatio="xMidYMid slice" x="0" y="0" width="1" height="1" /></pattern>
<pattern id="fgrwheel3" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="images/fgrwheel3.png" preserveAspectRatio="xMidYMid slice" x="0" y="0" width="1" height="1" /></pattern>
<pattern id="fgrwheel4" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="images/fgrwheel4.png" preserveAspectRatio="xMidYMid slice" x="0" y="0" width="1" height="1" /></pattern>
<pattern id="fgrwheel5" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="images/fgrwheel5.png" preserveAspectRatio="xMidYMid slice" x="0" y="0" width="1" height="1" /></pattern>
</defs>
<g id="circle-segments"></g>
<g id="image-placeholders"></g>
<g id="circle-text"></g>
<g id="center-element" data-segment-id="15">
<circle id="center-circle-bg" cx="0" cy="0" r="35" />
<text class="center-curved-text-style" id="center-label-text-element-top">
<textPath id="center-curved-text-content-top" xlink:href="#centerTextCurveTop" startOffset="50%">Global</textPath>
</text>
<text class="center-curved-text-style" id="center-label-text-element-bottom">
<textPath id="center-curved-text-content-bottom" xlink:href="#centerTextCurveBottom" startOffset="50%">Station</textPath>
</text>
<title>Global Radio</title>
</g>
</svg>
</div>
<div id="chat-container">
<div id="chat-messages">
<!-- Example Message -->
<div class="chat-message">
<span class="chat-username">System:</span>
<span class="chat-text">Welcome to GRadio chat.</span>
</div>
</div>
<div id="chat-input-area">
<input type="text" id="chat-input" placeholder="Say something...">
<button id="chat-send-btn">›</button>
</div>
</div>
</div>
<!-- This is the new, updated Archive page content -->
<main id="hive-page" class="page-content">
<div class="left-panel">
<div class="category-list-wrapper"><ul class="category-list" id="categoryList"></ul></div>
</div>
<div class="right-panel">
<div id="archive-content-container">
<!-- Content will be built by our script -->
</div>
</div>
</main>
<audio id="main-audio-player"></audio>
<audio id="radio-audio-player"></audio>
<audio id="failsafe-audio-player"></audio>
<div id="persistent-player">
<div class="player-track-info">
<div class="player-album-art" id="player-album-art"></div>
<div class="player-title-artist">
<div class="title" id="player-title">Track Title</div>
<div class="artist" id="player-artist">Artist Name</div>
</div>
</div>
<div class="player-center-controls">
<div class="player-controls">
<button id="player-shuffle">⇄</button>
<button id="player-prev">⏮</button>
<button id="player-play">▶</button>
<button id="player-next">⏭</button>
<button id="player-repeat">↻</button>
</div>
<div class="player-progress-container">
<span class="time-display" id="player-current-time">0:00</span>
<div class="progress-bar-container" id="player-progress-bar">
<div class="progress-bar-fill" id="player-progress-fill"></div>
</div>
<span class="time-display" id="player-duration">0:00</span>
</div>
</div>
<div class="player-volume">
<button id="player-radio">[GS]</button>
<button class="player-volume-btn" id="player-volume-btn">
<svg id="volume-icon-unmuted" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"></path></svg>
<svg id="volume-icon-muted" style="display: none;" viewBox="0 0 24 24"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"></path></svg>
</button>
<input type="range" id="player-volume-slider" min="0" max="1" step="0.01" value="1">
</div>
</div>
<footer id="footer">
© 2025 The Blueprint. All rights reserved.
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
// NOTE: The `coresData` object and related functions have been removed as they are part of the old Archive.
const navLinks = document.querySelectorAll('.nav-link'), pages = document.querySelectorAll('.page-content'), footer = document.getElementById('footer'), dynamicBackground = document.getElementById('dynamic-background'), logo = document.getElementById('logo');
const persistentPlayerEl = document.getElementById('persistent-player'), mainAudioPlayer = document.getElementById('main-audio-player'), radioAudioPlayer = document.getElementById('radio-audio-player'), failsafeAudioPlayer = document.getElementById('failsafe-audio-player'), playerAlbumArt = document.getElementById('player-album-art'), playerTitle = document.getElementById('player-title'), playerArtist = document.getElementById('player-artist'), playerPlayBtn = document.getElementById('player-play'), playerNextBtn = document.getElementById('player-next'), playerPrevBtn = document.getElementById('player-prev'), playerCurrentTime = document.getElementById('player-current-time'), playerDuration = document.getElementById('player-duration'), playerProgressBar = document.getElementById('player-progress-bar'), playerProgressFill = document.getElementById('player-progress-fill'), playerVolumeBtn = document.getElementById('player-volume-btn'), playerVolumeSlider = document.getElementById('player-volume-slider'), volumeIconUnmuted = document.getElementById('volume-icon-unmuted'), volumeIconMuted = document.getElementById('volume-icon-muted');
const playerShuffleBtn = document.getElementById('player-shuffle'), playerRepeatBtn = document.getElementById('player-repeat'), playerRadioBtn = document.getElementById('player-radio');
const homeToHiveLink = document.getElementById('home-to-hive-link'), homeToGRadioLink = document.getElementById('home-to-GRadio-link');
const welcomeContainer = document.getElementById('welcome-container'), welcomeTitle = welcomeContainer.querySelector('h3'), welcomeContent = document.getElementById('welcome-collapsible-content'), welcomeToggle = document.getElementById('welcome-toggle');
const gnomonSvg = document.getElementById('gnomon-wheel-svg');
let currentPlaylist = [], currentTrackIndex = 0; let isShuffle = false, isRepeatOne = false;
let isRadioActive = false;
let globalRadioPlaylist = [];
let currentRadioTrackIndex = -1;
let isRadioPlaylistBuilt = false;
let isMutedGlobally = false;
let lastVolume = 1;
let hasManuallyPlayedTrack = false;
let initialRadioTakeoverComplete = false;
const failsafeSequence = ["Vestige", "Neophyte", "Tether", "Penitent", "Global"];
let userClickSequence = [];
let lastClickTime = 0;
let failsafeActivated = false;
let failsafeTimeoutId = null;
let mainPlayerWasPlayingBeforeFailsafe = false;
let currentPlaylistIdentifier = null;
let lastGTypePlaylistIdentifier = null;
let radioMutedBeforeFailsafe;
// --- Event Handlers for Failsafe ---
function failsafeClickHandler() {
if (failsafeTimeoutId) {
clearTimeout(failsafeTimeoutId);
failsafeTimeoutId = null;
}
window.location.href = 'index.html';
}
function normalCenterClickHandler() {
if (checkFailsafeSequence("Global")) {
return;
}
toggleRadioMode();
}
const gTypePlaylists = {
"Anomaly": [{"artist":"Steppa","file":"Ninja.wav","bg":"images/bgsteppa.png"},{"artist":"Valentine","file":"Addicted.wav","bg":"images/bgvalentine.png"}],
"Advent": [{"artist":"Raevo","file":"404.wav","bg":"images/bgraevo.png"},{"artist":"Chérie","file":"POV.wav","bg":"images/bgcherie.png"}],
"Vestige": [{"artist":"Other Albums","file":"The Game.wav","bg":"images/callbacklater.png"},{"artist":"Lexi","file":"Was It Worth It - Written by [Bri] from Suno.wav","bg":"images/bglexi.png"}],
"Madrigal": [{"artist":"Valentine","file":"Black Bee.wav","bg":"images/bgvalentine.png"},{"artist":"Kyarne","file":"Babylon Streets.wav","bg":"images/bgkyarne.png"}],
"Revenant": [{"artist":"Chérie","file":"33.wav","bg":"images/bgcherie.png"},{"artist":"Raevo","file":"Rage-quit.wav","bg":"images/bgraevo.png"}],
"Penitent": [{"artist":"Other Albums","file":"Still Here.wav","bg":"images/surveillance.png"},{"artist":"Valentine","file":"My Song - Written by [rvix86] from Suno.wav","bg":"images/bgvalentine.png"}],
"Aegis": [{"artist":"Steppa","file":"Man.wav","bg":"images/bgsteppa.png"},{"artist":"Other Albums","file":"Secrets.wav","bg":"images/surveillance.png"}],
"Conduit": [{"artist":"Raevo","file":"Wait, i like it.wav","bg":"images/bgraevo.png"},{"artist":"Other Albums","file":"I'm Busy.wav","bg":"images/callbacklater.png"}],
"Renegade": [{"artist":"Kyarne","file":"Juk.wav","bg":"images/bgkyarne.png"},{"artist":"Chérie","file":"Ose La Danse.wav","bg":"images/bgcherie.png"}],
"Dynamo": [{"artist":"Other Albums","file":"Lived It.wav","bg":"images/surveillance.png"},{"artist":"Raevo","file":"Reset.wav","bg":"images/bgraevo.png"}],
"Neophyte": [{"artist":"Kyarne","file":"Green Moon.wav","bg":"images/bgkyarne.png"},{"artist":"Other Albums","file":"Cherry Red.wav","bg":"images/callbacklater.png"}],
"Tether": [{"artist":"Chérie","file":"Invisible.wav","bg":"images/bgcherie.png"},{"artist":"Valentine","file":"Honey Trap.wav","bg":"images/bgvalentine.png"}],
"Guardian": [{"artist":"Other Albums","file":"Communicate.wav","bg":"images/surveillance.png"},{"artist":"Kyarne","file":"Blunt.wav","bg":"images/bgkyarne.png"}],
"Vigil": [{"artist":"Steppa","file":"Pen To Pen.wav","bg":"images/bgsteppa.png"},{"artist":"Other Albums","file":"Seizure.wav","bg":"images/callbacklater.png"}]
};
const gTypeDescriptions = {
"Advent": "This is the spark before identity forms. Sounds that match raw input, instinctive action, the pressure of becoming something when you don’t yet know what. Unfiltered momentum. No anchors, no questions.<br><br>Whether you're pacing, building, starting over, or just reacting, this playlist rides the current. It doesn’t wait. It doesn’t reflect. It just moves. Born out of silence, tuned for ignition.",
"Vestige": "This is what lingers when the story fractures. Sounds that echo through identity loss, memory loops, and sudden absences. The tension of something once known, now haunting the shape it left behind.<br><br>Whether you’re retracing steps, grieving what changed, or stuck in reverse, this playlist speaks in static. It remembers for you. It searches through the ash for proof that you were real.",
"Madrigal": "This is the mask made melody. Sounds draped in secrecy, whispers, and rituals. The play between signal and disguise. What hides in the soft edges when words won’t do.<br><br>Whether you’re watching from the fringe or performing from behind a veil, this playlist moves like coded language. It won’t ask you to reveal. It just lets you stay hidden in style.",
"Revenant": "This is what comes back when it’s not supposed to. Sounds built from vengeance, grit, and cracked resolve. The feeling of unfinished business that keeps pulsing through your pulse.<br><br>Whether you’re reclaiming power or living out the echo, this playlist doesn’t blink. It walks through the wreckage, barefoot. It knows the cost. And it’s not done paying.",
"Penitent": "This is the low hum of knowing things went too far. Sounds shaped by guilt, clarity, and a quiet hunger to atone. The weight of self-awareness when nothing feels clean anymore.<br><br>Whether you’re making peace or just trying to feel it again, this playlist stays close to the ground. It doesn’t flinch. It holds the ache and lets you breathe through it.",
"Aegis": "This is the signal shielded by purpose. Sounds forged in loyalty, grit, and a refusal to let the world go cold. The warmth that stands between chaos and collapse.<br><br>Whether you're empowering people, or being the one who stays strong, this playlist holds firm. It stays standing in the rain and keeps the light on. That’s just what it does.",
"Conduit": "This is the hum between forces. Sounds that spark recognition, fusion, and intuitive flow. The thrill of being tuned in, dialed up, completely awake to the current of connection.<br><br>Whether you're channeling feeling, syncing with others, or translating the abstract, this playlist listens back. It hears between the words and sings where meanings meet.",
"Renegade": "This is the refusal. Sounds that cut through noise, disrupt routines, and throw sparks where silence took root. The raw jolt of confronting what’s wrong just because it is.<br><br>Whether you're pacing lines or torching them, this playlist doesn’t flatter. It flips the script. It doesn’t want safe. It wants the real. And it’ll burn bridges to light the way.",
"Dynamo": "This is the overload. Sounds that spiral, crash, surge, and ignite. The voltage of a mind that won’t sit still, that feeds on friction, that explodes just to feel the shape of its limits.<br><br>Whether you’re chasing it or trying to outpace it, this playlist is high-pressure. No pause, no ease. Just pure combustion. Brilliance and burnout braided tight.",
"Neophyte": "This is the clean slate. Sounds built for quiet beginnings, cleared noise, and space to settle. You don’t have to know yet. That’s the whole point.<br><br>Whether you're reflecting, resetting, or starting to notice what matters, this playlist keeps it calm. It doesn’t rush. It’s not empty, just open. Nothing yet decided. Nothing yet ruined.",
"Tether": "This is the weight that holds. Sounds made to root you, calm the signal, and keep you here when everything else pulls. The steady pull of presence.<br><br>Whether you’re spiraling, untangling, or just trying to stop time, this playlist grounds you. It’s slow by design. Not stuck. Just real. Breath by breath. Step by step. Still here.",
"Guardian": "This is the sound of watching over. Of standing tall when no one else will. Sounds shaped by quiet courage, bone-deep duty, and the ache of care that never clocks out.<br><br>Whether you're protecting people, promises, or something no one else can see, this playlist holds the line. It doesn’t need thanks. It just needs to last.",
"Vigil": "This is what stays awake. Sounds made for thresholds, dawns, and dusk-light reckonings. The stillness of clarity when everything else has fallen away.<br><br>Whether you’re shedding something, or rising from what burned, this playlist sees it through. It glows quiet. It doesn't mourn the past. It just carries what mattered into what's next.",
"Anomaly": "This is the one that doesn’t belong. Sounds bent sideways, abstract, impossible to pin. It’s not trying to make sense, it just is. Something rare enough to feel wrong.<br><br>Whether you're orbiting the edges or right in the glitch, this playlist doesn't align. It resists pattern. It mutates on purpose. The rules didn’t see this coming."
};
function updateWelcomeBox(gTypeName) {
const isDefault = !gTypeName || gTypeName === 'Global' || !gTypeDescriptions[gTypeName];
if (isDefault) {
welcomeTitle.textContent = 'Welcome to Gnomon Radio';
welcomeContent.innerHTML = `
<p>This is a 24/7 living stream from The Blueprint. Music tuned to mindset, not mood. Sorted by G-Type, not genre.</p>
<p>Whether you’re up late thinking, mid-spiral, or chasing stillness in the noise, this stream meets your state of mind without asking questions.</p>
<p>Pick a G‑Type from the wheel to match your headspace, or hit Global for a full-spectrum ride. It’s all here. Your move.</p>
`;
} else {
welcomeTitle.textContent = gTypeName;
welcomeContent.innerHTML = `<p>${gTypeDescriptions[gTypeName]}</p>`;
}
const isExpanded = welcomeContent.classList.contains('expanded');
if (isExpanded) {
welcomeToggle.click();
}
}
function playTrack(track) {
hasManuallyPlayedTrack = true;
mainAudioPlayer.muted = isMutedGlobally;