-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathindex.html
More file actions
676 lines (592 loc) · 23.3 KB
/
index.html
File metadata and controls
676 lines (592 loc) · 23.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Button That Does Nothing</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/clock.css" />
<link rel="stylesheet" href="css/shop.css" />
<link rel="stylesheet" href="css/invisibleButton.css">
<link rel="stylesheet" href="css/epilepsywarning.css" />
<link rel="icon" type="image/x-icon" href="image/favicon.ico" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
<link rel="stylesheet" href="css/leaderboard.css" />
<link rel="stylesheet" href="css/buttonThemes.css" />
<link rel="stylesheet" href="css/buttonRipple.css" />
<link rel="stylesheet" href="css/buttonEvolution.css" />
<link rel="stylesheet" href="css/recenter.css" />
<link rel="stylesheet" href="css/downloadButton.css" />
<link rel="stylesheet" href="css/clickEffects.css" />
<link rel="stylesheet" href="css/themeUnlock.css" />
<link rel="stylesheet" href="css/contributors.css" />
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
<script>
// Mobile-Only Optimizer (FIXED)
(function() {
const isMobile = window.innerWidth <= 768;
if (!isMobile) {
console.log('Desktop - no optimizations');
return;
}
console.log('Mobile detected - applying fixes...');
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', applyMobileFixes);
} else {
applyMobileFixes();
}
function applyMobileFixes() {
const style = document.createElement('style');
style.innerHTML = `
@media (max-width: 768px) {
/* Kill animations */
*, *::before, *::after {
animation: none !important;
transition: transform 0.2s ease, opacity 0.2s ease !important;
}
/* Prevent horizontal scroll */
html, body {
overflow-x: hidden !important;
max-width: 100vw !important;
}
/* Optimize button */
#useless-button {
animation: none !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}
#useless-button::before,
#useless-button::after,
.button-container::before {
display: none !important;
}
/* Hide particles */
.floating-particle,
.confetti {
display: none !important;
}
/* Simplify background */
body::after {
animation: none !important;
opacity: 0.2 !important;
}
/* Fix motivation button */
.motivation-btn {
bottom: 85px !important;
left: 15px !important;
max-width: calc(100vw - 100px) !important;
animation: none !important;
font-size: 0.85rem !important;
padding: 8px 16px !important;
}
/* Top panel shrink animation */
#top-panel {
transition: transform 0.3s ease, padding 0.3s ease, top 0.3s ease !important;
}
#top-panel.scrolled {
transform: translateX(-50%) scale(0.85) !important;
padding: 4px 8px !important;
top: 5px !important;
}
#top-panel.scrolled .panel-buttons button {
font-size: 1em !important;
padding: 6px !important;
}
#top-panel.scrolled .panel-item {
font-size: 0.75em !important;
padding: 3px 6px !important;
}
}
`;
document.head.appendChild(style);
// FIX: Properly get topPanel element
const topPanel = document.getElementById('top-panel');
if (topPanel) {
window.addEventListener('scroll', function() {
if (window.scrollY > 50) {
topPanel.classList.add('scrolled');
} else {
topPanel.classList.remove('scrolled');
}
}, { passive: true });
console.log(' Scroll handler added');
}
console.log(' Mobile optimizations complete!');
}
})();
</script>
<style>
@media (max-width: 768px) {
/* Compact but visible top bar - MATCH DESKTOP STYLE */
#top-panel {
position: fixed !important;
top: 15px !important;
left: 50% !important;
transform: translateX(-50%) !important;
z-index: 10000 !important;
padding: 6px 12px !important;
gap: 10px !important;
background: rgba(255, 255, 255, 0.1) !important; /* Same as desktop */
backdrop-filter: blur(12px) !important; /* Same as desktop */
-webkit-backdrop-filter: blur(12px) !important;
border: 1px solid rgba(255, 255, 255, 0.18) !important;
border-radius: 18px !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
/* Push content just below */
.app-container {
margin-top: 89px !important;
padding-top: 65px !important;
}
/* Title visible below bar */
.app-container h1 {
margin-top: 0 !important;
margin-bottom: 20px !important;
font-size: 1.9rem !important;
}
#achievement-popup,
.notification-popup {
top: 105px !important;
z-index: 9999 !important;
}
#easter-card {
top: 105px !important;
z-index: 9999 !important;
}
/* FIX: Hide tooltips on mobile */
#top-panel .panel-buttons button::before {
display: none !important;
}
/* FIX: All modals/dropdowns ABOVE panel */
#theme-selector,
#sound-panel,
.popup-container,
.modal {
z-index: 10005 !important;
}
.theme-selector-content,
.popup-content {
z-index: 10006 !important;
}
/* Time attack menu */
#time-attack-menu,
.time-attack-menu {
z-index: 10005 !important;
}
/* Shrink on scroll */
#top-panel.scrolled {
transform: translateX(-50%) scale(0.85) !important;
padding: 4px 8px !important;
top: 8px !important;
}
body.scrolled {
padding-top: 85px !important;
}
#top-panel .panel-item {
font-size: 0.8em !important;
padding: 4px 8px !important;
}
#top-panel .panel-buttons button {
font-size: 1.1em !important;
padding: 6px !important;
}
}
/* Desktop: unchanged */
@media (min-width: 769px) {
body {
padding-top: var(--top-panel-offset) !important;
}
.app-container {
margin-top: 0 !important;
}
}
</style>
</head>
<body>
<!-- ⚠️ Epilepsy Warning Modal -->
<div id="epilepsy-warning" class="warning-modal">
<div class="warning-content">
<h2>⚠️ Epilepsy Warning</h2>
<p>
This page may contain flashing lights or rapidly changing colors that could
trigger seizures in individuals with photosensitive epilepsy.
Viewer discretion is advised.
</p>
<button id="continue-warning">I Understand & Continue</button>
</div>
</div>
<div id="dev-comments-container">
<div class="dev-comment" style="top: 15%; left: 20%;">// TODO: Give meaning to life.</div>
<div class="dev-comment" style="top: 30%; left: 60%;">// Is anyone even clicking this?</div>
<div class="dev-comment" style="top: 50%; left: 10%;">// FIXME: Button does too much. Needs more nothing.</div>
<div class="dev-comment" style="top: 75%; left: 70%;">// Hope the boss doesn't see this.</div>
<div class="dev-comment" style="top: 85%; left: 30%;">// A single click... a single dream...</div>
</div>
<!-- Background Scrolling Sections -->
<div class="background-container">
<!-- Grid Overlay -->
<div class="grid-overlay"></div>
<div class="scroll-wrapper">
<section class="scene" id="studio-lobby">
<div class="prop rotating"></div>
</section>
<section class="scene" id="game-zone">
</section>
</div>
</div>
<!-- NEW: Top Control Panel -->
<div id="top-panel">
<!-- Moved Coin Display Here -->
<div id="currency-display" class="currency-panel">
<span>🪙 Nothing Coins: </span><span id="coin-count">0</span>
</div>
<!-- Combined Buttons -->
<div class="panel-buttons">
<button id="dark-mode-toggle" title="Toggle Dark Mode">🌙</button>
<button id="theme-toggle" title="Theme">🎨</button>
<button id="sound-toggle" title="Sound Settings">🎵</button>
<button id="open-shop-btn" title="Open Shop">🛍️</button>
</div>
<!-- Moved Clock Here -->
<div class="clock-container">
<div class="clock">
<span id="hrs">00</span>:<span id="min">00</span>:<span id="sec">00</span>
</div>
</div>
<!-- Moved Timer Here -->
<div id="timer" class="timer">⏱️ Time spent doing nothing: 00:00</div>
</div>
<!-- END NEW Top Control Panel -->
<div id="time-attack-progress-bar" style="display: none;">
<div id="time-attack-progress-inner"></div>
</div>
<div class="app-container">
<h1>The Button That Does Nothing</h1>
<!-- Hidden Easter Egg Button -->
<button id="hidden-button">
<img src="image/Invisible-Egg.png" class="hidden-image" width="75px" height="100px" alt="Easter Egg">
</button>
<!-- Popup Card -->
<div id="easter-card" class="easter-card">
<h1>🥚 You found the Easter Egg!</h1>
<h3>Congrats! You discovered a hidden feature 🎉</h3>
<!-- Badge container for JS to fill -->
<div id="badge-box"></div>
</div>
<div class="toggle-container">
<label class="toggle-label">
<input type="checkbox" id="impossible-toggle" aria-label="Toggle Impossible Mode" />
<span class="toggle-slider"></span>
<span class="toggle-text">🔥 IMPOSSIBLE MODE</span>
</label>
<div class="time-attack-controls">
<button id="time-attack-button" class="toggle-label" title="Time Attack Mode" aria-pressed="false">⏱️ Time
Attack</button>
<div class="time-attack-settings">
<button id="time-attack-settings" class="time-attack-settings-btn" title="Time Attack Settings"
aria-label="Time Attack Settings" aria-haspopup="true" aria-expanded="false"
aria-controls="time-attack-menu">⚙️</button>
<div id="time-attack-menu" class="time-attack-menu" role="menu" aria-label="Select Time Attack duration">
<button type="button" data-duration="15" role="menuitemradio" aria-checked="false">15s Sprint</button>
<button type="button" data-duration="30" role="menuitemradio" aria-checked="false">30s Challenge</button>
<button type="button" data-duration="60" role="menuitemradio" aria-checked="false">60s Marathon</button>
</div>
</div>
</div>
</div>
<div class="button-container">
<button id="useless-button" aria-label="The useless button">Click Me!</button>
</div>
<div class="high-score-display">
<div
style="position: relative; z-index: 1; font-size: var(--text-sm); letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; margin-bottom: var(--space-xs);">
My High Score</div>
<span id="high-score">0</span>
</div>
<div style="margin-top: 20px; text-align: center;">
<button id="download-report" class="download-btn">📄 Download Wasted Time Report</button>
</div>
<div class="high-score-display">
<div
style="position: relative; z-index: 1; font-size: var(--text-sm); letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; margin-bottom: var(--space-xs);">
Time Attack High Score</div>
<span id="time-attack-high-score">0</span>
</div>
<div class="leaderboard-section">
<h2>🏆 Global Leaderboard</h2>
<!-- Inline Username Section -->
<div class="username-inline" id="username-inline">
<h3>Enter Your Name</h3>
<input type="text" id="username-input" placeholder="Enter your display name" maxlength="100">
<div class="github-section">
<label>
<input type="checkbox" id="is-github-username"> This is my GitHub username
</label>
</div>
<button id="save-username">Save</button>
</div>
<div id="leaderboard-container">
<div id="leaderboard-list"></div>
</div>
<div class="leaderboard-buttons">
<button id="share-button">Share My Score</button>
<button id="reset-score-button">🔄 Reset Score</button>
</div>
</div>
<!-- Start Popup Modal -Dev/Jetrock -->
<div id="share-modal" class="modal">
<div class="modal-content">
<h3>Share Your Score</h3>
<p id="share-text"></p>
<div class="social-icons">
<i class="fab fa-whatsapp" data-platform="whatsapp"></i>
<i class="fab fa-x-twitter" data-platform="twitter"></i>
<i class="fab fa-facebook" data-platform="facebook"></i>
<i class="fab fa-linkedin" data-platform="linkedin"></i>
</div>
</div>
</div>
<!-- End Popup Modal -->
<div id="counter">Clicks: 0 | Failed clicks: 0</div>
<div id="achievement-popup">
<span class="achievement-icon"></span>
<span class="achievement-text"></span>
</div>
<div id="quote" class="quote">"Loading some wisdom..."</div>
<div id="time-attack-timer" class="timer" style="display: none;">Time Left: 60s</div>
</div>
<!-- Removed the old .top-right-controls block and old #currency-display -->
<audio id="click-sound" src="audio/click1.mp3"></audio>
<audio id="fail-sound" src="audio/failedClick.mp3"></audio>
<audio id="bg-music" loop></audio>
<div id="still-clicking-popup" class="popup-container">
<div class="popup-content">
<h2>Are you still clicking?</h2>
<div class="popup-buttons">
<button id="popup-yes">Yes</button>
<button id="popup-no">No</button>
</div>
</div>
</div>
<!-- Time Attack Result Modal -->
<div id="time-attack-result-popup" class="popup-container">
<div class="popup-content time-attack-result">
<div class="result-icon">⏰</div>
<h2>Time's Up!</h2>
<div class="result-stats">
<div class="result-stat-item">
<span class="result-label">You clicked</span>
<span class="result-value" id="time-attack-final-score">0</span>
<span class="result-label">times!</span>
</div>
</div>
<div id="time-attack-new-record" class="new-record" style="display: none;">
🏆 NEW HIGH SCORE! 🏆
</div>
<div class="popup-buttons">
<button id="time-attack-close-btn">OK</button>
</div>
</div>
</div>
<div id="sound-panel" class="popup-container">
<div class="popup-content">
<h2>🎵 Sound Settings</h2>
<div class="sound-controls">
<label><input type="checkbox" id="sounds-toggle" checked> 🔊 Sounds</label>
<label><input type="checkbox" id="music-toggle" checked> 🎵 Music</label>
<label>🔉 Volume: <input type="range" id="volume-slider" min="0" max="100" value="50"></label>
<label>🎶 Track:
<select id="track-selector">
<option value="8bit" selected>8-Bit Retro</option>
<option value="lofi">Lo-Fi Chill</option>
<option value="boss">Boss Battle</option>
<option value="suspense">Suspense</option>
<option value="horror">Horror</option>
</select>
</label>
<button id="close-sound-panel">Close</button>
</div>
</div>
</div>
<div id="theme-selector">
<div class="theme-selector-content">
<div class="theme-selector-header">
<h2>🎨 Theme Selector</h2>
<button id="close-theme-selector">✕</button>
</div>
<div class="theme-tabs">
<button class="theme-tab active" data-tab="predefined">Predefined Themes</button>
<button class="theme-tab" data-tab="custom">Custom Theme</button>
</div>
<div class="theme-tab-content active" id="predefined-tab">
<div class="themes-grid" id="themes-grid"></div>
</div>
<div class="custom-theme-creator">
<h3>✨ Create Your Custom Theme</h3>
<div class="color-picker-group">
<div class="color-picker-item">
<label>
Background Start
<div class="color-input-wrapper">
<input type="color" id="custom-bg-start">
<input type="text" id="custom-bg-start-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Background End
<div class="color-input-wrapper">
<input type="color" id="custom-bg-end">
<input type="text" id="custom-bg-end-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Text Color
<div class="color-input-wrapper">
<input type="color" id="custom-text-color">
<input type="text" id="custom-text-color-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Accent Color
<div class="color-input-wrapper">
<input type="color" id="custom-accent-color">
<input type="text" id="custom-accent-color-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Button Gradient Start
<div class="color-input-wrapper">
<input type="color" id="custom-button-start">
<input type="text" id="custom-button-start-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Button Gradient End
<div class="color-input-wrapper">
<input type="color" id="custom-button-end">
<input type="text" id="custom-button-end-text">
</div>
</label>
</div>
<div class="color-picker-item">
<label>
Font Family:
<input type="text" id="custom-font-family" value="'Poppins', sans-serif">
</label>
</div>
</div>
<div class="custom-theme-actions">
<button id="save-custom-theme" class="save-custom-theme">Apply Custom Theme</button>
<button id="reset-custom-theme" class="reset-custom-theme">Reset</button>
<button id="random-color-theme" class="random-color-theme">Randomize Colors</button>
</div>
</div>
</div>
</div>
<!-- === NOTHING SHOP (Collapsible) === -->
<div id="nothing-shop" class="nothing-shop closed">
<div class="shop-header">
<h2>🛒 Nothing Shop</h2>
<button id="close-shop" class="shop-close-btn" title="Close Shop">✖</button>
</div>
<div id="shop-items" class="shop-items"></div>
</div>
<!-- Bot Detection Puzzle Modal -->
<div id="bot-detection-popup"
style="display:none; justify-content:center; align-items:center; position:fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index:9999;">
<div class="popup-content"
style="background: linear-gradient(135deg, rgba(30,30,30,0.85), rgba(60,60,60,0.85)); border-radius: 16px; padding: 30px 35px; box-shadow: 0 12px 30px rgba(0,0,0,0.7); max-width: 360px; width: 90%; text-align: center; color: #eee; font-family: 'Poppins', sans-serif;">
<h2 style="color: #ffffff; font-weight: 700; margin-bottom: 15px;">🤖 Bot Check!</h2>
<p style="color: #cccccc; font-size: 1.1rem; margin-bottom: 20px;">Prove you're human: What is 5 + 3?</p>
<input type="text" id="bot-answer" placeholder="Enter your answer"
style="width: 80%; padding: 10px 12px; border-radius: 10px; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1rem; outline: none; box-shadow: 0 0 8px rgba(255,255,255,0.3); transition: box-shadow 0.3s ease;" />
<div class="popup-buttons" style="margin-top: 20px;">
<button id="submit-bot-answer"
style="background: linear-gradient(90deg, #667eea, #764ba2); color: white; border: none; padding: 10px 22px; border-radius: 12px; cursor: pointer; font-size: 1rem; font-weight: 600; box-shadow: 0 0 12px rgba(102,126,234,0.7); transition: transform 0.3s ease, box-shadow 0.3s ease;">
Submit
</button>
</div>
<p id="bot-feedback" style="margin-top:10px; color: #eee; min-height: 1.2em;"></p>
</div>
</div>
<a href="motivation.html" class="motivation-btn">
💭 Lack Motivation?
</a>
<p style="text-align:center;margin-top:12px">
<a href="contributors.html" class="view-contrib-btn">
<span class="dot" aria-hidden="true"></span>
View Contributors
</a>
</p>
<button class="recenter-btn" id="recenter" title="Recenter View">
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
d="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM128 256a160 160 0 1 0 320 0 160 160 0 1 0 -320 0zm160-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z" />
</svg>
</button>
<div id="tooltip" class="tooltip">I’m here!</div>
<!-- Start kronpatel -->
<!-- Module scripts -->
<script type="module" src="js/script.js"></script>
<script type="module" src="js/shop.js"></script>
<script type="module" src="js/leaderboard.js"></script>
<!-- Regular scripts -->
<!-- End kronpatel -->
<script src="js/clock.js"></script>
<script src="js/epilepsywarning.js"></script>
<script src="js/invisibleButton.js"></script>
<script src="js/buttonRipple.js"></script>
<script src="js/buttonThemes.js"></script>
<script src="js/buttonEvolution.js"></script>
<script src="js/clickMore.js"></script>
<script src="js/recenter.js"></script>
<script src="js/downloadReport.js"></script>
<script src="js/clickEffects.js"></script>
<script src="js/themeUnlock.js"></script>
<script>
window.onload = function () {
let clickCount = 0;
const uselessButton = document.getElementById("useless-button");
const botPopup = document.getElementById("bot-detection-popup");
const submitAnswerBtn = document.getElementById("submit-bot-answer");
if (uselessButton) {
uselessButton.addEventListener("click", function () {
clickCount++;
// 🔢 Change this number to 1500 for real use
if (clickCount === 1500) {
botPopup.style.display = "flex";
}
});
}
if (submitAnswerBtn) {
submitAnswerBtn.addEventListener("click", function () {
const answer = document.getElementById("bot-answer").value.trim();
const feedback = document.getElementById("bot-feedback");
if (answer === "8") {
feedback.textContent = "✅ Verified! You’re human.";
feedback.style.color = "limegreen";
setTimeout(() => {
botPopup.style.display = "none";
clickCount = 0;
}, 1000);
} else {
feedback.textContent = "❌ Wrong answer. Try again.";
feedback.style.color = "red";
}
});
}
};
</script>
</body>
</html>