-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (92 loc) · 3.85 KB
/
index.html
File metadata and controls
108 lines (92 loc) · 3.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Pattern Explorer Pro</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/main.js" type="module"></script>
</head>
<body class="theme-forest">
<canvas id="confetti-canvas"></canvas>
<!-- TOP NAVIGATION: hamburger only -->
<nav id="top-nav">
<button id="drawer-toggle" aria-label="Open Themes">
<div class="hamburger"><span></span><span></span><span></span></div>
</button>
</nav>
<!-- PROGRESS ROW: directly above the game -->
<div id="progress-row">
<div id="progress-wrapper">
<span id="progress-label">Progress</span>
<div id="progress-container">
<div id="progress-fill"></div>
</div>
</div>
</div>
<!-- DRAWER OVERLAY -->
<div id="drawer-overlay"></div>
<!-- SETTINGS DRAWER -->
<div id="settings-drawer">
<div class="drawer-header">
<h2>Choose theme</h2>
<button id="drawer-close" aria-label="Close Drawer">×</button>
</div>
<div class="theme-list">
<button class="theme-option" data-theme="forest">
<span class="name">🌲 Forest</span>
</button>
<button class="theme-option" data-theme="space">
<span class="name">🚀 Space</span>
</button>
<button class="theme-option" data-theme="candy">
<span class="name">🍭 Candy</span>
</button>
<button class="theme-option" data-theme="ocean">
<span class="name">🌊 Ocean</span>
</button>
<button class="theme-option" data-theme="retro">
<span class="name">👾 Retro</span>
</button>
<button class="theme-option" data-theme="winter">
<span class="name">❄️ Winter</span>
</button>
<button class="theme-option" data-theme="desert">
<span class="name">🏜️ Desert</span>
</button>
</div>
</div>
<!-- MAIN GAME CARD -->
<div id="game-container">
<!-- Combo badge floats above the card -->
<div id="combo-badge">Combo x2!</div>
<!-- Score / Lives / Level row -->
<div id="stats">
<span id="score-text">Score: 0</span>
<div id="lives-container"></div>
<span id="level-indicator">Level: 1/15</span>
</div>
<!-- Boss banner (shown via CSS when .boss-level) -->
<div class="boss-text">⚠️ BOSS LEVEL ⚠️</div>
<h1 id="instruction">What comes next?</h1>
<div id="pattern-display"></div>
<div id="choices-container"></div>
<div id="feedback-message"></div>
<!-- Victory overlay -->
<div id="end-screen">
<h1 style="font-size:3rem;margin:0;">🌟 VICTORY 🌟</h1>
<p style="font-size:1.4rem;opacity:0.75;margin-top:8px;">You're a pattern master!</p>
<h2 id="final-score" style="font-size:2.2rem;color:var(--secondary);margin-top:12px;">Final Score: 0</h2>
<button class="restart-btn">Play Again</button>
</div>
<!-- Game Over overlay -->
<div id="game-over-screen" class="overlay-screen">
<h1 style="font-size:3rem;margin:0;">💔 GAME OVER 💔</h1>
<p style="font-size:1.4rem;opacity:0.75;margin-top:8px;">Don't give up!</p>
<h2 id="fail-score" style="font-size:2.2rem;color:var(--error);margin-top:12px;">Score: 0</h2>
<button class="restart-btn">Try Again</button>
</div>
</div><!-- /#game-container -->
<footer id="game-footer">Pattern Explorer Pro | v1.6.0</footer>
</body>
</html>