-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
221 lines (196 loc) Β· 7.72 KB
/
index.html
File metadata and controls
221 lines (196 loc) Β· 7.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StatStack β Daily Higher or Lower Statistics Game</title>
<meta name="description" content="Test your knowledge with StatStack! Guess which statistic is higher or lower in this free daily trivia game. New challenge every day.">
<meta name="keywords" content="statistics game, higher or lower, daily game, trivia, number game, StatStack">
<link rel="canonical" href="https://thatch26.github.io/statstack/">
<!-- Open Graph -->
<meta property="og:title" content="StatStack β Daily Higher or Lower Statistics Game">
<meta property="og:description" content="Guess which statistic is higher or lower. New challenge every day!">
<meta property="og:type" content="website">
<meta property="og:url" content="https://thatch26.github.io/statstack/">
<meta property="og:image" content="https://thatch26.github.io/statstack/img/og-image.png">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="StatStack β Daily Higher or Lower">
<meta name="twitter:description" content="Guess which statistic is higher or lower. New challenge every day!">
<meta name="twitter:image" content="https://thatch26.github.io/statstack/img/og-image.png">
<!-- PWA -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#1a1a2e">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Favicon -->
<link rel="icon" href="img/favicon.svg" type="image/svg+xml">
<!-- Styles -->
<link rel="stylesheet" href="css/style.css">
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "StatStack",
"description": "A free daily higher-or-lower statistics guessing game.",
"url": "https://thatch26.github.io/statstack/",
"applicationCategory": "Game",
"operatingSystem": "Any",
"offers": { "@type": "Offer", "price": "0" }
}
</script>
</head>
<body>
<!-- Header -->
<header class="header">
<div class="header-inner">
<a href="/" class="logo">
<span class="logo-icon">π</span>
<span class="logo-text">StatStack</span>
</a>
<div class="header-right">
<span id="day-number" class="day-number"></span>
<button id="help-btn" class="icon-btn" aria-label="How to play" title="How to play">?</button>
</div>
</div>
</header>
<!-- How to Play Modal -->
<div id="help-modal" class="modal hidden">
<div class="modal-content">
<button class="modal-close" aria-label="Close">×</button>
<h2>How to Play</h2>
<p>You'll be shown two real-world statistics. One value is revealed β <strong>guess whether the hidden stat is higher or lower</strong>.</p>
<ul>
<li>π© = Correct guess</li>
<li>π₯ = Wrong guess</li>
<li>10 rounds per day</li>
<li>New puzzle every midnight</li>
</ul>
<p><strong>Keyboard shortcuts:</strong> β or H = Higher, β or L = Lower, Enter = Next</p>
<p>Share your results and challenge your friends!</p>
</div>
</div>
<!-- Main -->
<main class="main">
<!-- Ad Slot: Top Banner -->
<div class="ad-slot ad-top" id="ad-top">
<!-- AdSense placeholder β replace with real ad unit after approval -->
</div>
<!-- Score Bar -->
<div class="score-bar">
<div class="progress-container">
<div id="progress-fill" class="progress-fill"></div>
</div>
<div class="score-info">
<span id="progress-text" class="progress-text">1 / 10</span>
<span class="score-label">Score: <strong id="score-display">0</strong></span>
</div>
</div>
<!-- Game Area -->
<div id="game-area" class="game-area">
<div class="cards-container">
<!-- Card A (Known) -->
<div id="card-a" class="card card-a">
<div class="card-label">Known Value</div>
<p id="stat-a-text" class="stat-text"></p>
<p id="stat-a-value" class="stat-value"></p>
<p id="stat-a-source" class="stat-source"></p>
</div>
<!-- VS Divider -->
<div class="vs-divider">
<span>VS</span>
</div>
<!-- Card B (Unknown) -->
<div id="card-b" class="card card-b">
<div class="card-label">Your Guess</div>
<p id="stat-b-text" class="stat-text"></p>
<p id="stat-b-value" class="stat-value">?</p>
<p id="stat-b-source" class="stat-source"></p>
</div>
</div>
<!-- Feedback -->
<div id="feedback" class="feedback hidden"></div>
<!-- Guess Buttons -->
<div id="guess-buttons" class="guess-buttons">
<button id="btn-higher" class="btn btn-higher">
<span class="btn-arrow">β²</span>
Higher
</button>
<button id="btn-lower" class="btn btn-lower">
<span class="btn-arrow">βΌ</span>
Lower
</button>
</div>
<!-- Next Button -->
<button id="next-button" class="btn btn-next hidden">Next</button>
</div>
<!-- Results Area -->
<div id="results-area" class="results-area hidden">
<h2 id="result-title" class="result-title"></h2>
<div class="result-score-container">
<span id="result-score" class="result-score"></span>
<p id="result-message" class="result-message"></p>
</div>
<pre id="result-grid" class="result-grid"></pre>
<button id="share-button" class="btn btn-share">
π Share Results
</button>
<!-- Countdown -->
<div class="countdown-container">
<p class="countdown-label">Next StatStack in</p>
<p id="countdown" class="countdown">00:00:00</p>
</div>
<!-- Stats -->
<div class="stats-grid">
<div class="stats-item">
<span id="stat-played" class="stats-number">0</span>
<span class="stats-label">Played</span>
</div>
<div class="stats-item">
<span id="stat-win-pct" class="stats-number">0%</span>
<span class="stats-label">7+ Score</span>
</div>
<div class="stats-item">
<span id="stat-current-streak" class="stats-number">0</span>
<span class="stats-label">Streak</span>
</div>
<div class="stats-item">
<span id="stat-max-streak" class="stats-number">0</span>
<span class="stats-label">Best</span>
</div>
</div>
<!-- Ad Slot: Results -->
<div class="ad-slot ad-results" id="ad-results">
<!-- AdSense placeholder -->
</div>
</div>
<!-- Ad Slot: Bottom Banner -->
<div class="ad-slot ad-bottom" id="ad-bottom">
<!-- AdSense placeholder -->
</div>
</main>
<!-- Footer -->
<footer class="footer">
<p>© 2025 StatStack · <a href="about.html">About</a> · <a href="privacy.html">Privacy</a></p>
</footer>
<!-- Toast -->
<div id="toast" class="toast"></div>
<!-- Scripts -->
<script src="js/stats-data.js"></script>
<script src="js/share.js"></script>
<script src="js/game.js"></script>
<script>
// Help modal
document.getElementById('help-btn').addEventListener('click', () => {
document.getElementById('help-modal').classList.remove('hidden');
});
document.querySelector('.modal-close').addEventListener('click', () => {
document.getElementById('help-modal').classList.add('hidden');
});
document.getElementById('help-modal').addEventListener('click', (e) => {
if (e.target === e.currentTarget) e.currentTarget.classList.add('hidden');
});
</script>
</body>
</html>