Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
316 lines (287 loc) · 12.3 KB
/
Copy pathindex.html
File metadata and controls
316 lines (287 loc) · 12.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DEAD SIGNAL</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- ============================================================
INTRO SCREEN
============================================================ -->
<div id="intro">
<div class="intro-logo">DEAD SIGNAL</div>
<div class="intro-sub">EMERGENCY BROADCAST SYSTEM — UPTIME: 14 MONTHS</div>
<div class="intro-desc">
Fourteen months ago, people stopped gathering.<br>
Cities emptied. Governments fell quiet.<br>
A few voices remain on the dial.<br><br>
You are alone in a radio station.<br>
Find out what happened.
</div>
<div class="intro-buttons">
<button class="btn" onclick="startGame(false)"
style="font-size:14px;padding:10px 28px;letter-spacing:3px;">
POWER ON
</button>
<button class="btn danger" id="continue-btn" onclick="startGame(true)"
style="display:none;font-size:14px;padding:10px 28px;letter-spacing:3px;">
CONTINUE
</button>
</div>
<div id="intro-save-note" style="margin-top:14px;font-size:10px;color:var(--text-dim);"></div>
</div>
<!-- ============================================================
NEW GAME+ CONFIRMATION MODAL
============================================================ -->
<div id="ng-confirm">
<div class="ng-box">
<h3>NEW GAME+</h3>
<p>
Your current run will be saved to the Journal.<br>
A new playthrough begins. Signals carry deeper lore.<br>
Some frequencies reveal what was hidden before.<br><br>
Nothing is lost. Everything changes.
</p>
<div class="btn-row">
<button class="btn danger" onclick="confirmNewGame()">[ BEGIN ]</button>
<button class="btn" onclick="document.getElementById('ng-confirm').classList.remove('show')">[ CANCEL ]</button>
</div>
</div>
</div>
<!-- ============================================================
MAIN GAME CONTENT
============================================================ -->
<div id="main-content">
<div id="app">
<!-- Header -->
<div class="header">
<div class="logo">DEAD SIGNAL</div>
<div class="header-right">
<span class="ng-badge" id="ng-badge">NG+</span>
<div class="day-counter">
IN-GAME DAY
<span id="day-display">1</span>
</div>
</div>
</div>
<!-- Tabs -->
<div class="tabs">
<button class="tab active" onclick="switchTab('radio')">[ RADIO ]</button>
<button class="tab" onclick="switchTab('archive')">
[ ARCHIVE ] <span id="archive-count" style="color:var(--green-dim)"></span>
</button>
<button class="tab" onclick="switchTab('ending')">[ CONCLUSIONS ]</button>
<button class="tab" onclick="switchTab('journal')">
[ JOURNAL ] <span id="journal-count" style="color:var(--text-dim)"></span>
</button>
</div>
<!-- ======================================================
RADIO SCREEN
====================================================== -->
<div class="screen active" id="screen-radio">
<div class="radio-layout">
<!-- Left column: tuner + transmission -->
<div>
<div class="panel">
<div class="panel-title">// FREQUENCY TUNER</div>
<div class="freq-display" id="freq-display">88.0</div>
<div class="signal-meter" id="signal-meter">
<div class="sig-bar" id="bar0"></div>
<div class="sig-bar" id="bar1"></div>
<div class="sig-bar" id="bar2"></div>
<div class="sig-bar" id="bar3"></div>
<div class="sig-bar" id="bar4"></div>
<div class="sig-bar" id="bar5"></div>
<div class="sig-bar" id="bar6"></div>
</div>
<div class="dial-container">
<div class="dial-track">
<input
type="range"
id="dial"
min="880"
max="1220"
value="880"
step="1"
oninput="onDialMove(this.value)"
>
</div>
<div class="dial-labels">
<span>88.0</span>
<span>94.0</span>
<span>100.0</span>
<span>107.0</span>
<span>114.0</span>
<span>122.0</span>
</div>
</div>
<div class="audio-row">
<button class="btn" id="static-btn" onclick="toggleStatic()">
[ STATIC: ON ]
</button>
</div>
</div>
<div class="panel" style="margin-top:12px;">
<div class="panel-title">// INCOMING TRANSMISSION</div>
<div class="transmission" id="transmission-box">
<span class="static-text">... scanning ... no signal detected ... adjust frequency ...</span>
</div>
<div class="log-btn-row" id="log-row" style="display:none;">
<button class="btn" id="log-btn" onclick="logCurrentFragment()">
[ LOG TO ARCHIVE ]
</button>
<span class="logged-badge" id="logged-indicator"></span>
</div>
</div>
<div class="next-day-row">
<button class="btn danger" onclick="advanceDay()">[ NEXT DAY → ]</button>
<div class="next-day-note">
Advance time to unlock new transmissions.<br>
Some signals go silent. Some appear.
</div>
</div>
<!-- NG+ button removed from here, only managed in Conclusions -->
</div>
<!-- Right column: known frequencies + session stats -->
<div>
<div class="panel">
<div class="panel-title">// KNOWN FREQUENCIES</div>
<div class="known-signals" id="known-signals-list">
<div style="font-size:11px;color:var(--text-dim);">
Scan the dial to discover signals.
</div>
</div>
</div>
<div class="panel" style="margin-top:12px;">
<div class="panel-title">// SESSION</div>
<div style="font-size:11px;color:var(--text-dim);line-height:2.2;">
Fragments: <span id="stat-logged" style="color:var(--green)">0</span><br>
Sources: <span id="stat-sources" style="color:var(--green)">0</span>/6<br>
Days: <span id="stat-days" style="color:var(--amber)">1</span><br>
Run: <span id="stat-run" style="color:var(--amber)">1</span>
</div>
</div>
</div>
</div>
</div>
<!-- ======================================================
ARCHIVE SCREEN
====================================================== -->
<div class="screen" id="screen-archive">
<div class="archive-header">
<div style="font-size:11px;color:var(--text-dim);letter-spacing:1px;">
LOGGED TRANSMISSIONS
</div>
<div style="display:flex;gap:6px;">
<button class="view-btn active" id="vg" onclick="setView('grid')">GRID</button>
<button class="view-btn" id="vt" onclick="setView('timeline')">TIMELINE</button>
</div>
</div>
<div class="archive-filter" id="filter-bar">
<button class="filter-btn active" onclick="filterArchive('all')">ALL</button>
</div>
<div id="archive-grid" class="archive-grid"></div>
<div id="archive-timeline" class="timeline" style="display:none;"></div>
</div>
<!-- ======================================================
CONCLUSIONS (ENDINGS) SCREEN
====================================================== -->
<div class="screen" id="screen-ending">
<div id="ending-content"></div>
</div>
<!-- ======================================================
JOURNAL SCREEN
====================================================== -->
<div class="screen" id="screen-journal">
<div style="font-size:11px;color:var(--text-dim);letter-spacing:1px;margin-bottom:16px;">
PREVIOUS PLAYTHROUGHS — ARCHIVED PERMANENTLY
</div>
<div id="journal-grid" class="journal-grid"></div>
</div>
</div>
</div>
<!-- ============================================================
STATUS BAR
============================================================ -->
<div class="status-bar">
<div>
<span class="status-dot" id="status-dot"></span>
<span id="status-text">STANDBY — NO SIGNAL</span>
</div>
<div>
DAY <span id="status-day">1</span> //
<span id="status-freq">88.0</span> MHz //
RUN <span id="status-run">1</span>
</div>
</div>
<!-- ============================================================
RESET PROGRESS CONFIRMATION MODAL
============================================================ -->
<div id="reset-confirm" class="modal-overlay">
<div class="ng-box">
<h3>RESET ALL PROGRESS</h3>
<p>
WARNING: This will permanently delete all your progress, archived runs in the Journal, unlocked endings, and your current save.<br><br>
This action cannot be undone. Are you sure you want to proceed?
</p>
<div class="btn-row">
<button class="btn danger" onclick="resetAllProgress()">[ RESET ]</button>
<button class="btn" onclick="document.getElementById('reset-confirm').classList.remove('show')">[ CANCEL ]</button>
</div>
</div>
</div>
<!-- ============================================================
RETURN TO BASE GAME CONFIRMATION MODAL
============================================================ -->
<div id="base-game-confirm" class="modal-overlay">
<div class="ng-box">
<h3>RETURN TO BASE GAME</h3>
<p>
Your current NG+ run will be saved to the Journal.<br>
You will return to the base game dial settings.<br><br>
Proceed back to the base game?
</p>
<div class="btn-row">
<button class="btn danger" onclick="confirmBaseGame()">[ RETURN ]</button>
<button class="btn" onclick="document.getElementById('base-game-confirm').classList.remove('show')">[ CANCEL ]</button>
</div>
</div>
</div>
<!-- ============================================================
NEXT PLAYTHROUGH CONFIRMATION MODAL
============================================================ -->
<div id="next-run-confirm" class="modal-overlay">
<div class="ng-box">
<h3>BEGIN NEXT PLAYTHROUGH</h3>
<p>
Your current run will be saved to the Journal.<br>
A new playthrough in the base game will begin, allowing you to seek other endings.<br><br>
Nothing is lost. Continue search?
</p>
<div class="btn-row">
<button class="btn danger" onclick="confirmNextRun()">[ BEGIN ]</button>
<button class="btn" onclick="document.getElementById('next-run-confirm').classList.remove('show')">[ CANCEL ]</button>
</div>
</div>
</div>
<!-- ============================================================
LOG VIEWER MODAL
============================================================ -->
<div id="log-viewer-modal" class="modal-overlay">
<div class="log-viewer-box">
<div class="log-viewer-header">
<span id="log-viewer-title">// ARCHIVED TRANSMISSION</span>
<button class="close-btn" onclick="document.getElementById('log-viewer-modal').classList.remove('show')">×</button>
</div>
<div id="log-viewer-content" class="log-viewer-body"></div>
<div class="log-viewer-footer">
<button class="btn" onclick="document.getElementById('log-viewer-modal').classList.remove('show')">[ CLOSE ]</button>
</div>
</div>
</div>
<script src="data.js"></script>
<script src="script.js"></script>
</body>
</html>