-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
568 lines (517 loc) · 26.1 KB
/
index.html
File metadata and controls
568 lines (517 loc) · 26.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Pritamx4 - Digital Portfolio. Frontend development, interactive UI, and elegant digital experiences by Pritam Singh." />
<meta name="p:domain_verify" content="071586d542de83c09dc53a8415c530b4"/>
<meta name="keywords" content="Pritam Singh, Pritamx4, Frontend Developer, Interactive UI, Web Portfolio, CSS Animations, Three.js" />
<meta name="author" content="Pritam Singh" />
<meta property="og:title" content="Pritamx4" />
<meta property="og:description" content="Building high-performance digital ecosystems with a focus on immersive UX." />
<meta name="google-site-verification" content="p8UOK504pYEThuvuJi2X8lOGNO5gBkvOQh8LsRrsO60" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://pritamx4.github.io/CYBERDECK_Px4/" />
<meta property="og:image" content="https://pritamx4.github.io/CYBERDECK_Px4/images/px4%20main%20logo.svg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Pritamx4" />
<meta name="twitter:description" content="Explore the digital portfolio of Pritam Singh." />
<link rel="canonical" href="https://pritamx4.github.io/CYBERDECK_Px4/">
<!-- Preload critical assets -->
<link rel="preload" href="style.css" as="style">
<link rel="preload" href="script.js" as="script">
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="preconnect" href="https://cdn.lordicon.com" crossorigin>
<link rel="preconnect" href="https://media.lordicon.com" crossorigin>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css">
<!-- External Typography, Icons & 3D Engine -->
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700;900&family=JetBrains+Mono:wght@400;700&family=Major+Mono+Display&family=Oxanium:wght@300;400;700&family=Plus+Jakarta+Sans:wght@300;400;500;700&family=Space+Mono:wght@400;700&family=Zen+Dots&family=Michroma&family=VT323&display=swap" rel="stylesheet">
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<!-- Debug Diagnostic -->
<script>
window.addEventListener('error', function(e) {
console.error('GLOBAL_ERROR:', e.message, 'at', e.filename, ':', e.lineno);
}, true);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js" defer></script>
<script src="https://cdn.lordicon.com/lordicon.js" defer></script>
<!-- Utility Modules -->
<script src="modules/config.js" defer></script>
<script src="modules/loader.js" defer></script>
<script src="modules/audio.js" defer></script>
<script src="modules/contact.js" defer></script>
<script src="modules/ui.js" defer></script>
<!-- Class Definitions -->
<script type="module" src="modules/hero-logo-3d.js"></script>
<script src="modules/hud-cursor.js" defer></script>
<script type="module" src="modules/project-sphere-3d.js"></script>
<script type="module" src="modules/galaxy-background.js"></script>
<script type="module" src="modules/journey-timeline-3d.js"></script>
<!-- Main Application Script -->
<script src="script.js" defer></script>
<title>Pritamx4</title>
<link rel="icon" href="images/px4 main logo.svg" />
</head>
<body>
<!-- Galaxy Background Container -->
<div id="galaxy-bg-container" class="galaxy-bg-container"></div>
<!-- Skip-to-Content Link for Accessibility -->
<a href="#section-home" class="skip-to-content">SKIP TO CONTENT</a>
<!-- Loading Screen -->
<div id="loadingScreen" class="loading-screen">
<div class="particles" id="particles"></div>
<div class="loading-logo">
<!-- Defined Chrome Gradient for the Loader -->
<svg width="0" height="0" class="svg-defs" aria-hidden="true" focusable="false">
<defs>
<linearGradient id="chrome-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#ffffff" stop-opacity="1" />
<stop offset="20%" stop-color="#a1a1a1" stop-opacity="1" />
<stop offset="40%" stop-color="#ffffff" stop-opacity="1" />
<stop offset="60%" stop-color="#d1d1d1" stop-opacity="1" />
<stop offset="80%" stop-color="#717171" stop-opacity="1" />
<stop offset="100%" stop-color="#ffffff" stop-opacity="1" />
</linearGradient>
</defs>
</svg>
<!-- P Logo Part -->
<svg width="620" height="705" viewBox="0 0 620 705" fill="none" xmlns="http://www.w3.org/2000/svg" class="logo-part logo-p" id="logoP">
<path d="M72.4605 93.74L1.01306 0.5H62.2538L130.129 74.5V130.74L88.2811 178.1H72.4605V93.74Z" />
<path d="M618.013 0.5H97.9775L161.77 74.5V148.007L118.901 203.753H72.4605L71.4399 703.5L184.225 567.34V83.38H337.837L457.767 203.753L618.013 0.5Z" />
<path d="M332.733 136.167L287.313 196.353H301.603L346.002 148.007L332.733 136.167Z" />
<path d="M323.547 217.567C328.311 210.496 344.471 188.953 371.009 159.353L429.188 217.567L371.009 293.047H208.211L263.327 217.567H323.547Z" />
</svg>
<!-- x Logo Part -->
<svg width="368" height="531" viewBox="0 0 368 531" fill="none" xmlns="http://www.w3.org/2000/svg" class="logo-part logo-x" id="logoX">
<path d="M0.63385 210.528L165.563 0.5H292.314L129.93 226.798L366.634 530.5H248.027L0.63385 210.528Z" />
</svg>
<!-- 4 Logo Part -->
<svg width="264" height="689" viewBox="0 0 264 689" fill="none" xmlns="http://www.w3.org/2000/svg" class="logo-part logo-4" id="logo4">
<path d="M86.3011 265.141H1.01062L202.235 1.47929V483.464H263.011L141.459 688.479H113.88V568.722H1.01062V483.464H113.88V227.687L86.3011 265.141Z" />
</svg>
</div>
</div>
<!-- Toast Notification -->
<div id="toast" class="toast">
<span class="toast-message"></span>
</div>
<!-- Navbar -->
<nav class="navbar" role="navigation" aria-label="Main navigation">
<div class="container glow-text">
<div class="logo">
<img src="images/px4 main logo.svg" alt="PritamX4 Logo" class="navbar-logo" id="navbarLogo" />
</div>
<ul id="navLinks" class="nav-links" role="list">
<li class="nav-item"><a href="#section-home" aria-label="Navigate to home section">HOME</a></li>
<li class="nav-item"><a href="#section-about" aria-label="Navigate to about section">ABOUT</a></li>
<li class="nav-item"><a href="#section-projects" aria-label="Navigate to projects section">PROJECTS</a></li>
<li class="nav-item"><a href="#section-contact" aria-label="Navigate to contact section">CONTACT</a></li>
</ul>
<div class="menu-icon" onclick="toggleMenu()" onkeydown="handleMenuKeydown(event)" role="button" aria-label="Toggle mobile menu" aria-expanded="false" tabindex="0">
<span class="menu-line"></span>
<span class="menu-line"></span>
<span class="menu-line"></span>
</div>
</div>
</nav>
<!-- Main Section with Background Image -->
<main class="scroll-container" tabindex="0">
<section id="section-home" class="hero-section">
<div class="hero-grid">
<div class="hero-content reveal-left">
<span class="tech-label">[ STATUS: ONLINE ]</span>
<h1 class="hero-title">Pritamx4</h1>
<p class="hero-description">
Architecting high-performance digital ecosystems with a focus on
immersive UX and design precision. Bringing ideas to life.
</p>
<div class="hero-actions">
<a href="#section-projects" class="btn-sleek">
<lord-icon src="https://cdn.lordicon.com/piurhpdv.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff"
stroke="bold"
class="icon-24" target="self"></lord-icon>
EXPLORE_WORK
</a>
<a href="#section-contact" class="btn-outline">
<lord-icon src="https://cdn.lordicon.com/motnbmtz.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff"
stroke="bold"
class="icon-24" target="self"></lord-icon>
GET_IN_TOUCH
</a>
</div>
</div>
<div class="hero-visual reveal-right">
<div class="hero-frame">
<div class="retina-scan-line"></div>
<div id="hero-logo-canvas" class="hero-logo-3d"></div>
<div class="frame-bracket br-tl"></div>
<div class="frame-bracket br-br"></div>
<span class="frame-id">MODEL_PX4 // DESIGN_CORE</span>
</div>
</div>
</div>
</section>
<!-- About Section - NEURAL_GRID -->
<section id="section-about" class="about-section">
<!-- Three.js Canvas Container (Background) -->
<div id="neural-canvas-container" class="neural-canvas-container"></div>
<div class="about-header reveal-up">
<span class="about-header-tag">STATUS: ONLINE</span>
<h2 class="about-title glow-heading">ABOUT_ME</h2>
<div class="about-header-line"></div>
</div>
<div class="about-content">
<!-- Left: Operator Profile Card -->
<div class="operator-card reveal-up">
<div class="operator-card-accent"></div>
<span class="operator-tag">[ OPERATOR_PROFILE ]</span>
<h3 class="operator-name">PRITAM</h3>
<p class="operator-role">Frontend Developer & UI Architect</p>
<p class="operator-bio">
Architecting high-performance digital ecosystems with a focus on
immersive UX and hardware-level precision. Bridging the void between
brutalist structures and fluid interactivity.
</p>
<div class="operator-stats">
<div class="stat-block">
<span class="stat-label">EXP_DURATION</span>
<span class="stat-value">3+</span>
<span class="stat-unit">YEARS</span>
</div>
<div class="stat-block">
<span class="stat-label">DATA_DEPLOYED</span>
<span class="stat-value">5+</span>
<span class="stat-unit">PROJ</span>
</div>
<div class="stat-block">
<span class="stat-label">TOOL_STACK</span>
<span class="stat-value">4+</span>
<span class="stat-unit">SKILLS</span>
</div>
</div>
<!-- Corner brackets decoration -->
<div class="corner-bracket corner-tl"></div>
<div class="corner-bracket corner-br"></div>
</div>
<!-- Neural Data Visualizer (Legacy Spacer) -->
<div class="neural-visualizer-spacer">
<div class="timeline-trigger-wrapper">
<button id="enter-timeline-btn" class="btn-sleek timeline-btn">
<lord-icon src="https://cdn.lordicon.com/uvvbewxh.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff" stroke="bold" class="icon-24"></lord-icon>
ENTER_TIMELINE
</button>
</div>
</div>
</div>
<!-- Data Ticker -->
<div class="data-ticker">
<span>SYS_READY | PX4_ARCHITECT_MODE</span>
<span>SYNC_LEVEL: ACTIVE</span>
</div>
</section>
<section id="section-projects" class="project-sphere-section">
<div class="section-header reveal-up">
<span class="tech-tag">DATA_CORE_v4.0</span>
<h2 class="section-title glow-heading">PROJECT_HUB</h2>
<div class="header-line"></div>
</div>
<!-- 3D ORBITAL CANVAS -->
<div id="project-canvas-container" class="project-canvas-container">
<div class="canvas-instructions">
<span class="ui-glitch" data-text="DRAG_TO_ROTATE">DRAG_TO_ROTATE</span>
<span class="ui-glitch" data-text="CLICK_SHARD_FOR_DATA">CLICK_SHARD_FOR_DATA</span>
</div>
</div>
<!-- PROJECT DETAIL OVERLAY -->
<div id="project-detail-overlay" class="project-detail-overlay">
<div class="detail-container glass-morphic">
<button class="close-detail" aria-label="Close project detail">
<span class="close-text">DISCONNECT</span>
<lord-icon src="https://cdn.lordicon.com/ebyacdql.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff" class="icon-30"></lord-icon>
</button>
<!-- Decorative Corners -->
<div class="corner tl"></div><div class="corner tr"></div>
<div class="corner bl"></div><div class="corner br"></div>
<div class="detail-grid">
<div class="detail-visual">
<div class="visual-frame">
<div class="scanline"></div>
<img id="detail-img" src="" alt="Project Preview" />
</div>
</div>
<div class="detail-content">
<span class="tech-label">[ MODULE_READY ]</span>
<h3 id="detail-title">PROJECT_TITLE</h3>
<p id="detail-description">Initialising neural link...</p>
<div class="detail-actions">
<a id="detail-code" href="#" class="btn-sleek" target="_blank">
<lord-icon src="https://cdn.lordicon.com/lrubprlz.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff" class="icon-20"></lord-icon>
GET_CODE
</a>
<a id="detail-live" href="#" class="btn-outline" target="_blank">
<lord-icon src="https://cdn.lordicon.com/dicvhxpz.json" trigger="hover" colors="primary:#ffffff,secondary:#00f0ff" class="icon-20"></lord-icon>
LIVE_PREVIEW
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="section-contact" class="contact-fusion">
<div class="fusion-header reveal-up">
<span class="fusion-header-tag">GET_IN_TOUCH</span>
<h2 class="section-title glow-heading">CONTACT</h2>
<div class="fusion-header-line"></div>
</div>
<div class="fusion-grid">
<!-- Left: Portrait Frame -->
<div class="portrait-container reveal-up">
<div class="portrait-frame">
<div class="scan-line"></div>
<img src="images/contact.png" alt="Operator Portrait" class="portrait-img" loading="lazy" decoding="async" width="400" height="500" onerror="this.onerror=null;this.src='images/px4 main logo.svg';this.alt='Operator Portrait (Fallback Logo)';" />
<div class="frame-decal bracket-tl"></div>
<div class="frame-decal bracket-br"></div>
<div class="frame-label">OPERATOR // PX4</div>
</div>
</div>
<!-- Right: Connect Panel -->
<div class="connect-panel reveal-up">
<div class="corner-bracket corner-tl"></div>
<div class="corner-bracket corner-tr"></div>
<div class="corner-bracket corner-bl"></div>
<div class="corner-bracket corner-br"></div>
<div class="panel-content">
<span class="tech-label">[ CHANNEL: ENCRYPTED ]</span>
<p class="connect-description">
Bridging the gap between conceptual architecture and digital reality.
Transmit your coordinates or inject a message to begin the sync.
</p>
<div class="social-matrix">
<a href="https://github.com/Pritamx4" target="_blank" rel="noopener noreferrer" class="social-item">
<lord-icon src="https://cdn.lordicon.com/jjxzcivr.json" trigger="hover" colors="primary:#ffffff,secondary:#00FFD1"
stroke="bold"
class="icon-30"></lord-icon>
<span class="social-label">GITHUB // SOURCE</span>
</a>
<a href="https://www.instagram.com/pritamxfour/" target="_blank" rel="noopener noreferrer" class="social-item">
<lord-icon src="https://cdn.lordicon.com/tgyvxauj.json" trigger="hover" colors="primary:#ffffff,secondary:#00FFD1"
stroke="bold"
class="icon-30"></lord-icon>
<span class="social-label">INSTAGRAM // INTEL</span>
</a>
<a href="https://www.linkedin.com/in/pritamx4/" target="_blank" rel="noopener noreferrer" class="social-item">
<lord-icon src="https://cdn.lordicon.com/dsdlqjde.json" trigger="hover" colors="primary:#ffffff,secondary:#00FFD1"
stroke="bold"
class="icon-30"></lord-icon>
<span class="social-label">LINKEDIN // NETWORK</span>
</a>
<a href="https://www.youtube.com/@Pritamx4" target="_blank" rel="noopener noreferrer" class="social-item">
<lord-icon src="https://cdn.lordicon.com/lyjuidpq.json" trigger="hover" colors="primary:#ffffff,secondary:#00FFD1"
stroke="bold"
class="icon-30"></lord-icon>
<span class="social-label">YOUTUBE // BROADCAST</span>
</a>
</div>
<div class="terminal-input-wrapper">
<div class="terminal-prefix">>></div>
<label for="messageInput" class="message-label"></label>
<input type="text" id="messageInput" class="message-input" placeholder="inject_message..." aria-describedby="messageError" aria-invalid="false" />
<p id="messageCount" class="message-count" aria-live="polite">0 / 240</p>
<p id="messageError" class="message-error" role="alert" aria-live="polite"></p>
<button class="send-btn" aria-label="Send Message">
<lord-icon src="https://cdn.lordicon.com/vpbspaec.json" trigger="hover" colors="primary:#000000,secondary:#00f0ff"
stroke="bold"
class="icon-24"></lord-icon>
</button>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Stat Capsule (Morphed HUD) -->
<div class="stat-capsule" id="statCapsule" onclick="toggleStatPill(event)">
<div class="capsule-glass"></div>
<div class="capsule-internal">
<!-- Expanded Analytics (Hidden by default) -->
<div class="capsule-expanded-section" id="statExpandedSection">
<div class="drawer-header">
<span class="drawer-header-label">SYSTEM_ANALYTICS</span>
<span class="drawer-header-status" id="repo-status">SYNC_STABLE</span>
</div>
<!-- Technical DNA (Housed in Drawer) -->
<div class="technical-row">
<div class="tech-item">
<span class="tech-label">HTML</span>
<span class="tech-value" id="val-html">0%</span>
</div>
<div class="tech-divider"></div>
<div class="tech-item">
<span class="tech-label">CSS</span>
<span class="tech-value" id="val-css">0%</span>
</div>
<div class="tech-divider"></div>
<div class="tech-item">
<span class="tech-label">JS</span>
<span class="tech-value" id="val-js">0%</span>
</div>
</div>
<div class="drawer-grid">
<div class="drawer-item">
<span class="d-label">FORKS</span>
<span class="d-value" id="val-forks">0</span>
</div>
<div class="drawer-item">
<span class="d-label">WATCHERS</span>
<span class="d-value" id="val-watchers">0</span>
</div>
<div class="drawer-item">
<span class="d-label">ISSUES</span>
<span class="d-value" id="val-issues">0</span>
</div>
<div class="drawer-item">
<span class="d-label">DISK_SIZE</span>
<span class="d-value" id="val-size">0 KB</span>
</div>
<div class="drawer-item">
<span class="d-label">TOTAL_REPOS</span>
<span class="d-value" id="val-repos">0</span>
</div>
<div class="drawer-item">
<span class="d-label">UPTIME</span>
<span class="d-value">99.9%</span>
</div>
</div>
<div class="drawer-footer">
<span class="d-footer-label">LAST_UPDATE:</span>
<span class="d-footer-value" id="val-updated">NEVER</span>
</div>
</div>
<!-- Summary Bar (Always visible) -->
<div class="capsule-summary-bar">
<div class="stat-pulse" id="pulse-commits" title="Total Commits">
<span class="pulse-label">CMD_COMMITS</span>
<span class="pulse-value" id="val-commits">---</span>
<div class="sparkline-container" id="spark-commits"></div>
</div>
<div class="capsule-divider"></div>
<div class="stat-pulse" id="pulse-stars" title="GitHub Stars">
<span class="pulse-label">CMD_STARS</span>
<span class="pulse-value" id="val-stars">---</span>
<div class="sparkline-container" id="spark-stars"></div>
</div>
<div class="capsule-divider"></div>
<div class="stat-pulse" id="pulse-contributors" title="Total Contributors">
<span class="pulse-label">CMD_CONTRIBS</span>
<span class="pulse-value" id="val-contributors">---</span>
<div class="sparkline-container" id="spark-contributors"></div>
</div>
</div>
</div>
</div>
<!-- HUD Targeting Cursor -->
<div id="hud-cursor" class="hud-cursor">
<div class="cursor-dot"></div>
<div class="cursor-ring"></div>
<div class="cursor-brackets">
<div class="bracket br-tl"></div>
<div class="bracket br-tr"></div>
<div class="bracket br-bl"></div>
<div class="bracket br-br"></div>
</div>
<div class="cursor-coords">
<span class="x">000</span>
<span class="y">000</span>
</div>
</div>
<!-- Timeline Under Construction Overlay -->
<div id="journey-timeline-container" class="journey-timeline-overlay" aria-hidden="true">
<div class="construction-shell" role="dialog" aria-modal="true" aria-labelledby="construction-title" aria-describedby="construction-copy">
<div class="construction-ribbon">ACCESS RESTRICTED</div>
<div class="construction-icon" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<p class="construction-kicker">NEURAL SUBSYSTEM</p>
<h2 id="construction-title" class="construction-title">UNDER CONSTRUCTION</h2>
<p id="construction-copy" class="construction-copy">
The timeline experience is currently being rebuilt. Public access is disabled while the new version is in progress.
</p>
<div class="construction-status">
<div class="status-chip">LOCKED</div>
<div class="status-chip">NO PUBLIC ACCESS</div>
<div class="status-chip">UPGRADE IN PROGRESS</div>
</div>
<div class="construction-meter" aria-hidden="true">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<button id="exit-timeline-btn" class="exit-btn construction-exit" type="button">
<span class="exit-text">RETURN_HOME</span>
</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const enterBtn = document.getElementById('enter-timeline-btn');
const exitBtn = document.getElementById('exit-timeline-btn');
const overlay = document.getElementById('journey-timeline-container');
let savedScrollY = 0;
const lockScroll = () => {
savedScrollY = window.scrollY || window.pageYOffset || 0;
document.body.style.overflow = 'hidden';
document.documentElement.style.overflow = 'hidden';
document.documentElement.style.overscrollBehavior = 'none';
document.body.style.overscrollBehavior = 'none';
document.body.classList.add('timeline-active');
};
const unlockScroll = () => {
document.body.style.overflow = '';
document.documentElement.style.overflow = '';
document.documentElement.style.overscrollBehavior = '';
document.body.style.overscrollBehavior = '';
document.body.classList.remove('timeline-active');
window.scrollTo(0, savedScrollY);
};
const openConstructionOverlay = () => {
if (!overlay) return;
overlay.classList.add('active');
overlay.setAttribute('aria-hidden', 'false');
lockScroll();
};
const closeConstructionOverlay = () => {
if (!overlay) return;
overlay.classList.remove('active');
overlay.setAttribute('aria-hidden', 'true');
unlockScroll();
};
if (enterBtn) {
enterBtn.addEventListener('click', openConstructionOverlay);
}
if (exitBtn) {
exitBtn.addEventListener('click', closeConstructionOverlay);
}
if (overlay) {
overlay.addEventListener('click', (event) => {
if (event.target === overlay) {
closeConstructionOverlay();
}
});
}
});
</script>
</body>
</html>