-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
1647 lines (1504 loc) · 75.2 KB
/
404.html
File metadata and controls
1647 lines (1504 loc) · 75.2 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
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- Save as 404.html — full single-file, offline-friendly interactive 404 page -->
<!--
404 Offline Interactive Page
- Self-contained (no external fonts or images)
- Animations, particle background, glitch 404 headline
- Home and Portfolio buttons (use your domains)
- Three offline games: Snake, Tic-Tac-Toe, Memory Match (saved high scores in localStorage)
- Typing-banner replicates your "typing SVG" lines locally
- Footer includes your provided credit snippet
Author: ChatGPT for Deep Dey — edit freely
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/png" href="https://www.deepdeyiitk.com/web/image/website/1/favicon?unique=e5fe8cd">
<title>404 — Deep Dey</title>
<script src="script.js" defer></script>
<!-- Open Graph Meta Tags -->
<meta property="og:type" content="website"/>
<meta property="og:title" content="StudyBot — Your Study Companion • Deep Dey"/>
<meta property="og:site_name" content="Deep Dey - The FUTURE IITIAN 🎯"/>
<meta property="og:url" content="https://bots.deepdeyiitk.com/404.html"/>
<meta property="og:image" content="https://i.postimg.cc/YSV9JqBD/Neon-Green-Circle-Frame-Fitness-You-Tube-Profile-Picturedurga-puja.png"/>
<meta property="og:description" content="📘 StudyBot — the AI-powered Discord companion built by Deep Dey to boost discipline, focus, and consistency for JEE 2027 aspirants. Track uptime, check productivity, and stay accountable 24×7. Made with 🩷 and vision for IIT Kanpur."/>
<div>
<!-- Diwali Popup HTML, CSS, and JS merged -->
<style>
.diwali-popup-content {
background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
padding: 40px;
border-radius: 20px;
position: relative;
max-width: 500px;
text-align: center;
border: 2px solid #ff9933;
box-shadow: 0 0 50px rgba(255, 153, 51, 0.3), inset 0 0 30px rgba(255, 153, 51, 0.2);
animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
0% { box-shadow: 0 0 50px rgba(255, 153, 51, 0.3), inset 0 0 30px rgba(255, 153, 51, 0.2); }
100% { box-shadow: 0 0 70px rgba(255, 153, 51, 0.4), inset 0 0 40px rgba(255, 153, 51, 0.3); }
}
.close-diwali-popup {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
color: #ff9933;
font-size: 24px;
cursor: pointer;
transition: all 0.3s ease;
z-index: 1;
}
.close-diwali-popup:hover {
transform: scale(1.2);
color: #ffb366;
}
.diwali-title {
color: #ff9933;
font-size: 36px;
margin: 20px 0;
text-shadow: 0 0 10px rgba(255, 153, 51, 0.5);
font-family: 'Poppins', sans-serif;
animation: titleGlow 2s infinite alternate;
}
@keyframes titleGlow {
0% { text-shadow: 0 0 10px rgba(255, 153, 51, 0.5); }
100% { text-shadow: 0 0 20px rgba(255, 153, 51, 0.8); }
}
.diwali-message {
color: #ffb366;
font-size: 18px;
margin: 20px 0;
line-height: 1.6;
font-family: 'Poppins', sans-serif;
}
.diya-container {
position: relative;
width: 100px;
height: 100px;
margin: 0 auto;
}
.flame {
position: absolute;
top: 25%;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 30px;
background: linear-gradient(to bottom,rgba(255,255,255,0.8) 0%,rgba(255,204,0,0.8) 60%,rgba(255,153,51,0.4) 100%);
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
animation: flicker 1s infinite alternate;
filter: blur(2px);
}
@keyframes flicker {
0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
50% { transform: translateX(-50%) scale(0.8); opacity: 0.8; }
}
.diwali-footer {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 20px;
color: #ffb366;
font-family: 'Poppins', sans-serif;
}
.diwali-logo {
width: 40px;
height: 40px;
border-radius: 50%;
animation: logoSpin 4s infinite alternate;
}
@keyframes logoSpin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Lighting wire */
#lighting-wire svg circle {
filter: drop-shadow(0 0 8px #fff) brightness(1.2);
animation: lightBlink 1.5s infinite alternate;
}
@keyframes lightBlink {
0% { opacity: 1; }
100% { opacity: 0.7; }
}
/* Skyshot and lantern styles */
.skyshot {
transition: box-shadow 0.2s;
}
.blast-particle {
box-shadow: 0 0 12px #FFD700;
}
.lantern-real {
pointer-events: none;
}
</style>
<div class="diwali-popup-content" style="position:relative;">
<button class="close-diwali-popup">×</button>
<!-- Festive Lighting Wire -->
<div id="lighting-wire" style="position:absolute;top:0;left:0;width:100%;height:48px;pointer-events:none;z-index:10;">
<svg width="100%" height="48" viewBox="0 0 500 48" style="overflow:visible;">
<path d="M10,20 Q250,-10 490,20" stroke="#8B4513" stroke-width="4" fill="none"/>
<g>
<circle cx="40" cy="16" r="8" fill="#FFD700"/>
<circle cx="90" cy="12" r="7" fill="#FF9933"/>
<circle cx="140" cy="18" r="8" fill="#4CAF50"/>
<circle cx="190" cy="10" r="7" fill="#E91E63"/>
<circle cx="240" cy="14" r="8" fill="#FFC107"/>
<circle cx="290" cy="12" r="7" fill="#FF0000"/>
<circle cx="340" cy="18" r="8" fill="#FFD700"/>
<circle cx="390" cy="10" r="7" fill="#4CAF50"/>
<circle cx="440" cy="16" r="8" fill="#FF9933"/>
</g>
</svg>
</div>
<div class="diya-container">
<svg viewBox="0 0 100 100" width="100" height="100">
<path d="M50 70 C20 70 20 40 50 40 C80 40 80 70 50 70" fill="#CD853F"/>
<ellipse cx="50" cy="40" rx="15" ry="5" fill="#8B4513"/>
</svg>
<div class="flame"></div>
</div>
<h2 class="diwali-title">Happy Diwali! 🪔</h2>
<div class="diwali-decoration">
<svg viewBox="0 0 100 20" width="100%" height="40">
<pattern id="rangoli" patternUnits="userSpaceOnUse" width="20" height="20">
<circle cx="10" cy="10" r="3" fill="#ff9933"/>
<circle cx="10" cy="10" r="6" fill="none" stroke="#ff9933" stroke-width="0.5"/>
</pattern>
<rect width="100" height="20" fill="url(#rangoli)"/>
</svg>
</div>
<p class="diwali-message">
May the festival of lights brighten your studies and illuminate your path to success! <br><br>
Study with joy, learn with passion! ✨
</p>
<div id="diwali-timer" style="font-size:1.2rem;color:#FFD700;margin:12px 0;"></div>
<div class="diwali-footer">
<img src="https://i.postimg.cc/MHYsLfPz/Neon-Green-Circle-Frame-Fitness-You-Tube-Profile-Picturedurga-puja.png" alt="StudyBot Logo" class="diwali-logo">
<span>~ StudyBot Team</span>
</div>
<div id="popup-skyshot" style="position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:100;"></div>
<div id="popup-lantern" style="position:absolute;left:0;width:100%;height:100%;top:0;pointer-events:none;z-index:101;"></div>
</div>
<script>
// Diwali dates (2025-2045)
const diwaliDates = [
'2025-10-20', '2026-11-08', '2027-10-29', '2028-10-17', '2029-11-05',
'2030-10-26', '2031-11-14', '2032-11-02', '2033-10-22', '2034-11-10',
'2035-10-30', '2036-10-19', '2037-11-07', '2038-10-27', '2039-10-17',
'2040-11-04', '2041-10-25', '2042-11-12', '2043-11-01', '2044-10-20', '2045-11-08'
];
function getNextDiwali(now) {
for (let i = 0; i < diwaliDates.length; i++) {
const d = new Date(diwaliDates[i] + 'T00:00:00');
if (d > now) return {date: d, idx: i};
}
return null;
}
let timerState = 'diwali';
let timerIdx = null;
let timerEnd = null;
const timerEl = document.getElementById('diwali-timer');
function updateTimer() {
const now = new Date();
let next = getNextDiwali(now);
if (!next) {
timerEl.textContent = 'No upcoming Diwali dates.';
return;
}
timerIdx = next.idx;
let diwaliDate = next.date;
let diff = diwaliDate - now;
let days = Math.floor(diff / (1000*60*60*24));
let hours = Math.floor((diff % (1000*60*60*24)) / (1000*60*60));
let mins = Math.floor((diff % (1000*60*60)) / (1000*60));
let secs = Math.floor((diff % (1000*60)) / 1000);
if (diff > 0 && diff < 1000*60*60*24*31) {
timerState = 'diwali';
timerEl.textContent = `Diwali will start in: ${days}d ${hours}h ${mins}m ${secs}s`;
timerEnd = diwaliDate;
} else {
timerState = 'upcoming';
timerEl.textContent = `Upcoming Diwali will be: ${diwaliDate.toDateString()}`;
timerEnd = diwaliDate;
}
}
updateTimer();
let timerInterval = setInterval(() => {
updateTimer();
if (timerState === 'diwali' && timerEnd) {
const now = new Date();
if (now >= timerEnd) {
clearInterval(timerInterval);
timerEl.textContent = 'Diwali is here! 🎉';
setTimeout(() => {
setTimeout(() => {
timerIdx = timerIdx + 1;
if (timerIdx < diwaliDates.length) {
timerState = 'upcoming';
timerEnd = new Date(diwaliDates[timerIdx] + 'T00:00:00');
timerEl.textContent = `Upcoming Diwali will be: ${timerEnd.toDateString()}`;
timerInterval = setInterval(updateTimer, 1000);
} else {
timerEl.textContent = 'No upcoming Diwali dates.';
}
}, 3*24*60*60*1000);
}, 2000);
}
}
}, 1000);
// Skyshot and lantern animation for popup
function launchSkyshot(target, width, height) {
const shot = document.createElement('div');
shot.className = 'skyshot';
const x = Math.random() * width * 0.8 + width * 0.1;
shot.style.left = x + 'px';
shot.style.bottom = '0px';
shot.style.position = 'absolute';
shot.style.width = '6px';
shot.style.height = '60px';
shot.style.background = 'linear-gradient(to top, #FFD700 0%, #ff9933 100%)';
shot.style.borderRadius = '3px';
shot.style.opacity = '0.8';
shot.style.zIndex = '9999';
target.appendChild(shot);
let t = 0;
const duration = 60 + Math.random()*40;
const interval = setInterval(() => {
t += 4;
shot.style.bottom = t + 'px';
if (t > height * (0.5 + Math.random()*0.3)) {
clearInterval(interval);
createBlast(x, t, target);
shot.remove();
}
}, 12);
}
function createBlast(x, y, target) {
for (let i = 0; i < 18; i++) {
const p = document.createElement('div');
p.className = 'blast-particle';
p.style.position = 'absolute';
p.style.left = x + 'px';
p.style.bottom = y + 'px';
p.style.width = '8px';
p.style.height = '8px';
p.style.borderRadius = '50%';
p.style.background = `hsl(${Math.random()*60+30},100%,60%)`;
p.style.opacity = '0.9';
p.style.zIndex = '9999';
target.appendChild(p);
const angle = (i/18)*2*Math.PI;
const dist = 60 + Math.random()*40;
let step = 0;
const blastInterval = setInterval(() => {
step += 1.5;
p.style.left = (x + Math.cos(angle)*dist*step/20) + 'px';
p.style.bottom = (y + Math.sin(angle)*dist*step/20) + 'px';
p.style.opacity = (1-step/20).toFixed(2);
if (step > 20) {
clearInterval(blastInterval);
p.remove();
}
}, 18);
}
}
function launchLantern(target, width, height) {
const lantern = document.createElement('div');
lantern.className = 'lantern-real';
lantern.style.position = 'absolute';
lantern.style.left = (Math.random()*80+10)*(width/100)+'px';
lantern.style.bottom = '0px';
lantern.style.width = '32px';
lantern.style.height = '48px';
lantern.style.zIndex = '9999';
lantern.innerHTML = `<svg width="32" height="48" viewBox="0 0 32 48"><ellipse cx="16" cy="24" rx="14" ry="20" fill="url(#lg)"/><defs><linearGradient id="lg" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#FFD700"/><stop offset="100%" stop-color="#ff9933"/></linearGradient></defs><ellipse cx="16" cy="40" rx="6" ry="4" fill="#fff" opacity="0.7"/><rect x="14" y="44" width="4" height="4" rx="2" fill="#FFD700"/></svg>`;
target.appendChild(lantern);
let t = 0;
const floatHeight = height * (0.7 + Math.random()*0.2);
const interval = setInterval(() => {
t += 2.5;
lantern.style.bottom = t + 'px';
lantern.style.opacity = (1-t/floatHeight).toFixed(2);
if (t > floatHeight) {
clearInterval(interval);
lantern.remove();
}
}, 22);
}
let popupSkyshotInterval = setInterval(() => launchSkyshot(document.getElementById('popup-skyshot'), document.getElementById('popup-skyshot').offsetWidth, document.getElementById('popup-skyshot').offsetHeight), 1800);
let popupLanternInterval = setInterval(() => launchLantern(document.getElementById('popup-lantern'), document.getElementById('popup-lantern').offsetWidth, document.getElementById('popup-lantern').offsetHeight), 2200);
document.querySelector('.close-diwali-popup').addEventListener('click', function() {
clearInterval(timerInterval);
clearInterval(popupSkyshotInterval);
clearInterval(popupLanternInterval);
document.querySelector('.diwali-popup-content').remove();
});
</script>
</div>
<div>
<!-- Navaratri & Dussehra Popup | Dates: 22 Sept 2025 – 2 Oct 2025 ~04 oct 2025 14:02:10 pm-->
<div id="festive-popup-container">
<div id="festive-popup-overlay">
<div id="festive-popup">
<button id="close-popup-btn" title="Close">×</button>
<h2 id="popup-title"></h2>
<p id="popup-message"></p>
<div id="countdown-timer"></div>
<div id="stopwatch" style="display:none;"></div>
<div class="popup-buttons">
<button class="popup-btn" id="generate-flowers-btn">🌸 Shower Flowers</button>
<button class="popup-btn" id="get-blessed-btn">🙏 Receive Blessings</button>
</div>
</div>
</div>
<div id="blessing-popup-overlay">
<div id="blessing-popup">
<h3 id="blessing-title"></h3>
<p id="blessing-message"></p>
<button class="popup-btn" id="close-blessing-btn">Close</button>
</div>
</div>
<style>
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:wght@400;600&display=swap');
#festive-popup-overlay, #blessing-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
z-index: 99999; /* Highest z-index to stay on top */
display: none;
justify-content: center;
align-items: center;
padding: 15px;
box-sizing: border-box;
}
#festive-popup, #blessing-popup {
position: relative;
background-size: cover;
background-position: center;
padding: 30px 40px;
border-radius: 20px;
text-align: center;
color: white;
font-family: 'Poppins', sans-serif;
max-width: 95%;
width: 600px;
box-shadow: 0 10px 40px rgba(255,152,0,0.5);
border: 2px solid #ff9800;
animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform-origin: center;
}
#blessing-popup {
background: #fff;
color: #333;
}
@keyframes zoomIn {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
@keyframes zoomOut {
from { opacity: 1; transform: scale(1); }
to { opacity: 0; transform: scale(0.8); }
}
#festive-popup h2 {
font-family: 'Lobster', cursive;
font-size: clamp(2rem, 6vw, 2.8rem);
margin-bottom: 15px;
text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
color: #FFD700; /* Gold color */
}
#festive-popup p {
font-size: clamp(1rem, 3vw, 1.2rem);
margin-bottom: 20px;
text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
line-height: 1.6;
}
#countdown-timer, #stopwatch {
font-size: clamp(1.2rem, 4vw, 1.5rem);
font-weight: 600;
margin-top: 25px;
background-color: rgba(0, 0, 0, 0.6);
padding: 12px;
border-radius: 10px;
display: inline-block;
}
.popup-buttons {
margin-top: 30px;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
.popup-btn {
background: linear-gradient(45deg, #ff9800, #f57c00);
color: white;
border: none;
padding: 12px 25px;
border-radius: 50px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.3s ease;
text-transform: uppercase;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.popup-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
#blessing-popup h3 {
font-family: 'Lobster', cursive;
font-size: 2rem;
color: #f57c00;
}
#blessing-popup p {
font-size: 1.1rem;
color: #555;
}
#close-popup-btn {
position: absolute;
top: 10px;
right: 15px;
background: transparent;
border: none;
color: white;
font-size: 2.5rem;
cursor: pointer;
text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
line-height: 1;
}
.flower-petal {
position: fixed; /* Use fixed to fall over the whole page */
top: -20px;
width: 15px;
height: 15px;
background-color: #ffeb3b;
border-radius: 50% 0;
animation: fall linear infinite;
z-index: 100000;
}
@keyframes fall {
to {
transform: translateY(105vh) rotate(720deg);
opacity: 0;
}
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
// --- Configuration ---
const festiveData = {
'2025-09-23': { day: 1, title: 'Happy Navaratri! Day 1', message: 'May the divine grace of Maa Shailaputri bring you unparalleled strength, peace, and prosperity. Wishing you a joyous start to Navaratri!', blessing: 'On Day 1, we worship Maa Shailaputri, the daughter of the Himalayas. She embodies purity and unwavering determination.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-24': { day: 2, title: 'Shubh Navaratri! Day 2', message: 'Let the blessings of Maa Brahmacharini guide your spirit towards devotion and inner calm. Have a spiritually uplifting day!', blessing: 'Maa Brahmacharini, worshipped on Day 2, represents asceticism and devotion. She grants her devotees wisdom and tranquility.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-25': { day: 3, title: 'Joyous Navaratri! Day 3', message: 'May the radiant glow of Maa Chandraghanta fill your life with courage, grace, and serenity. Wishing you a blessed day!', blessing: 'Day 3 is for Maa Chandraghanta. Adorned with a crescent moon, she is the symbol of bravery and dispels all evils.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-26': { day: 4, title: 'Happy Navaratri! Day 4', message: 'May the creative energy of Maa Kushmanda bless your world with happiness, health, and abundance. Stay joyful!', blessing: 'Maa Kushmanda, worshipped on Day 4, is believed to be the creator of the universe. She bestows good health and wealth.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-27': { day: 5, title: 'Blessed Navaratri! Day 5', message: 'Feel the warmth of Maa Skandamata\'s love. May she shower you and your loved ones with boundless affection and care.', blessing: 'Day 5 honours Maa Skandamata, the mother of Lord Kartikeya. She symbolizes the pure, selfless love of a mother.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-28': { day: 6, title: 'Divine Navaratri! Day 6', message: 'May the fierce and benevolent Maa Katyayani empower you to conquer all challenges with courage and conviction. Jai Mata Di!', blessing: 'Maa Katyayani, worshipped on Day 6, is the warrior goddess who grants strength to overcome life\'s obstacles.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093/free-photo-of-a-statue-of-a-goddess-in-a-temple.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-29': { day: 7, title: 'Shubho Maha Saptami!', message: 'As the dhak beats echo, may your heart be filled with immense joy. Wishing you a vibrant start to Durga Puja celebrations!', blessing: 'Maha Saptami marks the formal beginning of Durga Puja. The Goddess is invoked into the idols, bringing her divine presence to the pandals.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116/free-photo-of-a-statue-of-a-god-with-many-arms.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-09-30': { day: 8, title: 'Shubho Maha Ashtami!', message: 'May the divine power of Maa Durga bless you with strength and fortitude. Wishing you a spiritually profound Maha Ashtami!', blessing: 'Maha Ashtami celebrates Maa Durga\'s victory over evil. It is the day of the powerful Sandhi Puja, a highlight of the festival.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116/free-photo-of-a-statue-of-a-god-with-many-arms.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-10-01': { day: 9, title: 'Shubho Maha Navami!', message: 'On this auspicious Maha Navami, may all your prayers be answered and your life be filled with prosperity and success!', blessing: 'Maha Navami is the culminating day of worship, celebrating the final victory of the Goddess. Grand aartis and rituals are performed.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116/free-photo-of-a-statue-of-a-god-with-many-arms.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' },
'2025-10-02': { day: 10, title: 'Happy Vijayadashami!', message: 'May the victory of good over evil inspire you towards a life of truth and courage. Shubho Bijoya and Happy Dussehra to you and your family!', blessing: 'Vijayadashami, or Dussehra, celebrates triumph and new beginnings. It is a day of joy, feasting, and exchanging heartfelt greetings.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116/free-photo-of-a-statue-of-a-god-with-many-arms.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1' }
};
const postDussehraDate = new Date('2025-10-02T00:00:00');
// --- End Configuration ---
const popupOverlay = document.getElementById('festive-popup-overlay');
const popup = document.getElementById('festive-popup');
const closeBtn = document.getElementById('close-popup-btn');
const titleEl = document.getElementById('popup-title');
const messageEl = document.getElementById('popup-message');
const countdownEl = document.getElementById('countdown-timer');
const stopwatchEl = document.getElementById('stopwatch');
const flowersBtn = document.getElementById('generate-flowers-btn');
const blessedBtn = document.getElementById('get-blessed-btn');
const blessingOverlay = document.getElementById('blessing-popup-overlay');
const blessingTitle = document.getElementById('blessing-title');
const blessingMessage = document.getElementById('blessing-message');
const closeBlessingBtn = document.getElementById('close-blessing-btn');
let intervalId;
const today = new Date();
// Use this for testing any date: const today = new Date('2025-09-28');
const todayString = today.getFullYear() + '-' + String(today.getMonth() + 1).padStart(2, '0') + '-' + String(today.getDate()).padStart(2, '0');
const currentData = festiveData[todayString];
function showMainPopup() {
if (sessionStorage.getItem('festivePopupShown')) return;
if (currentData) {
setupPopupContent(currentData);
popupOverlay.style.display = 'flex';
startCountdown();
sessionStorage.setItem('festivePopupShown', 'true');
} else if (today >= postDussehraDate) {
setupStopwatchPopup();
popupOverlay.style.display = 'flex';
startStopwatch();
sessionStorage.setItem('festivePopupShown', 'true');
}
}
function setupPopupContent(data) {
titleEl.textContent = data.title;
messageEl.textContent = data.message;
popup.style.backgroundImage = `linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('${data.image}')`;
blessedBtn.style.display = 'inline-flex';
countdownEl.style.display = 'inline-block';
stopwatchEl.style.display = 'none';
}
function setupStopwatchPopup() {
titleEl.textContent = 'It will happen again next year! 🌸';
messageEl.textContent = '✨ Victory of Good Over Evil, Light Over Darkness, and Love Over Hatred. May this Vijaya Dashami remind us that every ending carries the seed of a new beginning — every goodbye, a promise of return.';
popup.style.backgroundImage = `linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://i.postimg.cc/Y9CkRzsq/65155711dce8135d31068666-1695897361989.jpg')`;
blessedBtn.style.display = 'none';
countdownEl.style.display = 'none';
stopwatchEl.style.display = 'inline-block';
}
function closeMainPopup() {
popup.style.animation = 'zoomOut 0.4s forwards';
setTimeout(() => {
popupOverlay.style.display = 'none';
popup.style.animation = 'zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)';
}, 400);
}
function startCountdown() {
if(intervalId) clearInterval(intervalId);
intervalId = setInterval(() => {
const now = new Date();
const nextDay = new Date(now);
nextDay.setDate(now.getDate() + 1);
nextDay.setHours(0, 0, 0, 0);
const diff = nextDay - now;
const h = Math.floor(diff / (1000*60*60));
const m = Math.floor((diff % (1000*60*60)) / (1000*60));
const s = Math.floor((diff % (1000*60)) / 1000);
countdownEl.innerHTML = `Next day begins in: ${String(h).padStart(2,'0')}h ${String(m).padStart(2,'0')}m ${String(s).padStart(2,'0')}s`;
}, 1000);
}
function startStopwatch() {
if(intervalId) clearInterval(intervalId);
intervalId = setInterval(() => {
const diff = new Date() - postDussehraDate;
const d = Math.floor(diff / (1000*60*60*24));
const h = Math.floor((diff % (1000*60*60*24)) / (1000*60*60));
const m = Math.floor((diff % (1000*60*60)) / (1000*60));
const s = Math.floor((diff % (1000*60)) / 1000);
stopwatchEl.innerHTML = `Time since Dussehra: ${d}d ${h}h ${m}m ${s}s`;
}, 1000);
}
flowersBtn.addEventListener('click', () => {
for (let i = 0; i < 30; i++) {
const petal = document.createElement('div');
petal.className = 'flower-petal';
petal.style.left = Math.random() * 100 + 'vw';
petal.style.animationDuration = Math.random() * 3 + 4 + 's';
petal.style.animationDelay = Math.random() * 2 + 's';
petal.style.backgroundColor = `hsl(${Math.random() * 60 + 300}, 100%, 70%)`;
petal.style.transform = `rotate(${Math.random() * 360}deg)`;
document.getElementById('festive-popup-container').appendChild(petal);
setTimeout(() => petal.remove(), 7000);
}
});
blessedBtn.addEventListener('click', () => {
if (currentData) {
blessingTitle.textContent = currentData.title;
blessingMessage.textContent = currentData.blessing;
blessingOverlay.style.display = 'flex';
}
});
closeBtn.addEventListener('click', closeMainPopup);
closeBlessingBtn.addEventListener('click', () => blessingOverlay.style.display = 'none');
// Initialize the popup
showMainPopup();
});
</script>
</div>
</div> </div>
<!-- ======================= -->
<!-- Background Music Control -->
<!-- ======================= -->
<div id="bgm-popup">
<div class="bgm-header">
<img src="https://happysoulmusic.com/wp-content/grand-media/image/thumb/Aakash_Gandhi_free_music_download_1.webp"
alt="BGM Logo" class="bgm-logo">
<span class="bgm-title">Now Playing</span>
</div>
<div class="bgm-controls">
<button id="bgm-playpause">⏸</button>
<button id="bgm-volup">🔊+</button>
<button id="bgm-voldown">🔉-</button>
</div>
</div>
<style>
/* Popup container */
#bgm-popup {
position: fixed;
top: 15px;
left: 15px;
z-index: 99999;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px 16px;
border-radius: 12px;
backdrop-filter: blur(12px);
background: rgba(30, 30, 30, 0.55);
color: #fff;
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
font-family: Arial, sans-serif;
user-select: none;
}
.bgm-header {
display: flex;
align-items: center;
gap: 10px;
}
.bgm-logo {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.bgm-title {
font-size: 14px;
font-weight: bold;
}
.bgm-controls {
display: flex;
gap: 8px;
justify-content: center;
}
.bgm-controls button {
background: rgba(255, 255, 255, 0.1);
border: none;
color: #fff;
font-size: 14px;
padding: 6px 10px;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s;
}
.bgm-controls button:hover {
background: rgba(255, 255, 255, 0.25);
}
</style>
<script>
// Wait until bgMusic from script.js exists
document.addEventListener("DOMContentLoaded", () => {
const playPauseBtn = document.getElementById("bgm-playpause");
const volUpBtn = document.getElementById("bgm-volup");
const volDownBtn = document.getElementById("bgm-voldown");
const updateBtn = () => {
if (window.bgMusic && !window.bgMusic.paused) {
playPauseBtn.textContent = "⏸";
} else {
playPauseBtn.textContent = "▶️";
}
};
// Sync state from localStorage (for popup persistence)
if (localStorage.getItem("bg-music-paused") === "true" && window.bgMusic) {
window.bgMusic.pause();
}
updateBtn();
playPauseBtn.addEventListener("click", () => {
if (!window.bgMusic) return;
if (window.bgMusic.paused) {
window.bgMusic.play();
localStorage.setItem("bg-music-paused", "false");
} else {
window.bgMusic.pause();
localStorage.setItem("bg-music-paused", "true");
}
updateBtn();
});
volUpBtn.addEventListener("click", () => {
if (!window.bgMusic) return;
window.bgMusic.volume = Math.min(1, window.bgMusic.volume + 0.1);
});
volDownBtn.addEventListener("click", () => {
if (!window.bgMusic) return;
window.bgMusic.volume = Math.max(0, window.bgMusic.volume - 0.1);
});
});
</script>
<style>
/* Hide the container by default (on all screen sizes) */
.hide-on-mobile {
display: none;
}
/* Make the container visible only on larger screens */
@media (min-width: 768px) { /* Adjust '768px' to your desired breakpoint */
.desktop-only-container {
display: block; /* Or grid, flex, etc., depending on your layout */
}
}
</style>
<style>
:root{
--bg:#0b0f1a; --accent:#7c3aed; --muted:#9aa3b2; --card:#0f1724;
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
html,body{height:100%;margin:0;background:linear-gradient(180deg,#071026 0%, #05070b 100%);color:#e6eef8;overflow:hidden}
#bgCanvas{position:fixed;inset:0;z-index:0}
.app{position:relative;z-index:2;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}
.card{width:min(1100px,96%);background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:16px;padding:22px;backdrop-filter: blur(6px);box-shadow: 0 8px 34px rgba(2,6,23,0.7);display:grid;grid-template-columns:1fr 420px;gap:18px;align-items:start}
@media (max-width:960px){ .card{grid-template-columns:1fr; padding:16px;} .desktop-only-container{display:none} .hide-on-mobile{display:none} }
.left{padding:6px 10%}
.headline{font-size:clamp(36px,6vw,72px);margin:0;display:flex;gap:14px;align-items:center}
.glitch{position:relative;color:transparent;-webkit-text-stroke:1px #fff}
.glitch::before,.glitch::after{content:attr(data-text);position:absolute;left:0;top:0}
.glitch::before{color:var(--accent);transform:translate(6px,-3px);opacity:.85}
.glitch::after{color:#49f0ff;transform:translate(-6px,3px);opacity:.85}
.sub{color:var(--muted);margin:12px 0 18px;max-width:56ch}
.buttons{display:flex;gap:10px;flex-wrap:wrap}
.btn{background:linear-gradient(180deg,var(--accent), #5b21b6);border:none;color:white;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.btn.secondary{background:transparent;border:1px solid rgba(255,255,255,0.05);color:var(--muted);box-shadow:none}
.panel{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:10px;padding:12px;min-height:320px;border:1px solid rgba(255,255,255,0.02)}
.game-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.game-card{background:rgba(255,255,255,0.02);padding:10px;border-radius:8px;display:flex;flex-direction:column;gap:8px}
.typing{height:44px;padding:10px;border-radius:10px;background:linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));display:flex;align-items:center;gap:12px;font-weight:600;color:var(--muted);overflow:hidden}
footer{margin-top:12px;color:var(--muted);font-size:13px}
.robot{width:96px;height:96px;border-radius:10px;background:linear-gradient(180deg,#071026,#071a36);display:flex;align-items:center;justify-content:center}
.modal{position:fixed;inset:0;background:rgba(2,6,23,0.75);display:none;align-items:center;justify-content:center;z-index:9999;padding:18px}
.modal.open{display:flex}
.box{width:min(980px,96%);background:linear-gradient(180deg,#071026,#0b1330);border-radius:12px;padding:16px;border:1px solid rgba(255,255,255,0.03)}
.game-area{display:flex;gap:14px;align-items:stretch}
.game-canvas{flex:1;background:#05061a;border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:360px}
.sidebar{width:220px;background:var(--card);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px}
.chip{background:rgba(255,255,255,0.02);padding:8px 10px;border-radius:8px}
.desktop-only{display:block}
@media (max-width:960px){ .desktop-only{display:none} }
/* small helpers */
button:focus{outline:2px solid rgba(124,58,237,0.2);outline-offset:3px}
.controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
label.small{font-size:13px;color:var(--muted)}
select,input[type=range]{background:#071225;color:#e6eef8;border-radius:8px;padding:6px;border:1px solid rgba(255,255,255,0.04)}
kbd{background:#0b1220;padding:4px 6px;border-radius:6px;font-size:12px}
</style>
</head>
<body>
<canvas id="bgCanvas" aria-hidden="true"></canvas>
<div class="app" role="main">
<div class="card" role="article" aria-labelledby="title-404">
<div class="left">
<h1 id="title-404" class="headline">
<span class="glitch" data-text="404">404</span>
<div style="display:flex;flex-direction:column">
<span style="font-size:18px;color:var(--muted);font-weight:700">Page not found</span>
<span style="font-size:12px;color:var(--muted);margin-top:4px">Koi tension nahi — thoda games, thoda fix, phir wapas.</span>
</div>
</h1>
<p class="sub">URL kahin kho gaya. Ghar jao ya ek quick offline game khelo — sab kuch localStorage pe chalega.</p>
<div class="buttons">
<a class="btn" href="https://www.deepdeyiitk.com" title="Home — Deep Dey">🏠 Home</a>
<a class="btn secondary" href="https://apps.deepdeyiitk.com" title="Portfolio — Apps">🧩 Portfolio</a>
<button class="btn" id="openGames">🎮 Play (offline)</button>
<a class="btn secondary" id="reportBroken" href="mailto:thedeeparise@gmail.com?subject=Broken%20Link%20404">✉️ Report</a>
</div>
<div style="margin-top:14px">
<div class="typing" id="typingBanner" aria-live="polite">
<span id="typingText">JEE 2027 Aspirant — AI + Prompt Engineering Enthusiast — Web & App Innovator — Consistent 5AM Study Streaks</span>
<span style="width:2px;height:18px;background:var(--accent);margin-left:8px;animation:blink 1s steps(2) infinite"></span>
</div>
</div>
<footer>
<div style="margin-top:12px">
<div><em>Made with ❤️, AI power, and relentless focus by <b>Deep Dey</b></em></div>
</div>
</footer>
</div>
<div class="panel desktop-only-container">
<div style="display:flex;gap:12px;align-items:center">
<div class="robot" aria-hidden="true">
<!-- simple robot svg -->
<svg viewBox="0 0 64 64" width="72" height="72"><rect x="8" y="12" width="48" height="36" rx="6" fill="#071a36"/><circle cx="22" cy="28" r="4" fill="#e6eef8"/><circle cx="42" cy="28" r="4" fill="#49f0ff"/></svg>
</div>
<div style="flex:1">
<h3 style="margin:0">Offline Funbox</h3>
<p style="margin:6px 0 0;color:var(--muted);font-size:13px">Play quick games. High scores saved in your browser.</p>
</div>
</div>
<!-- Fotor/graphic only on desktop -->
<div style="margin-top:10px" class="desktop-only">
<!-- external svg from GitHub (display only on desktop). loading=lazy -->
<img src="https://raw.githubusercontent.com/Anuj579/Anuj579/output/github-contribution-grid-snake-dark.svg" alt="Contribution Snake" style="width:100%;border-radius:8px;margin-top:10px" loading="lazy" onerror="this.style.display='none'">
</div>
<div style="margin-top:10px">
<div style="display:flex;gap:8px;margin-bottom:8px;align-items:center;justify-content:space-between">
<small style="color:var(--muted)">Choose game & difficulty</small>
<small style="color:var(--muted)"><kbd>G</kbd> open • <kbd>Esc</kbd> close</small>
</div>
<div class="game-list">
<div class="game-card">
<strong>Snake</strong>
<small style="color:var(--muted)">Speed levels + custom slider. Score increases difficulty optionally.</small>
<div class="controls">
<label class="small">Level:
<select id="snakeLevel">
<option value="easy">Easy (slow)</option>
<option value="normal" selected>Normal</option>
<option value="hard">Hard</option>
<option value="custom">Custom</option>
</select>
</label>
<label class="small" id="snakeSliderWrap" style="display:none">Speed:
<input id="snakeSpeed" type="range" min="3" max="18" step="1" value="8">
</label>
</div>
<div style="display:flex;gap:8px;margin-top:6px">
<button class="btn" data-game="snake">Play Snake</button>
<button class="btn secondary" id="snakeToggleAuto">Auto-Level: Off</button>
</div>
</div>
<div class="game-card">
<strong>Tic-Tac-Toe</strong>
<small style="color:var(--muted)">3 levels: Easy, Medium, Hard (Minimax)</small>
<div style="margin-top:6px" class="controls">
<label class="small">Level:
<select id="t3Level"><option value="easy">Easy</option><option value="medium" selected>Medium</option><option value="hard">Hard</option></select>
</label>
</div>
<div style="margin-top:8px"><button class="btn" data-game="t3">Play TTT</button></div>
</div>
<div class="game-card">
<strong>Memory Match</strong>
<small style="color:var(--muted)">Grid size by level. Mobile safe mode reduces hard size.</small>
<div style="margin-top:6px" class="controls">
<label class="small">Level:
<select id="memLevel"><option value="easy">Easy (2×2)</option><option value="medium" selected>Medium (4×4)</option><option value="hard">Hard (6×6)</option></select>
</label>
</div>
<div style="margin-top:8px"><button class="btn" data-game="memory">Play Memory</button></div>
</div>
<div class="game-card">
<strong>Utilities</strong>
<small style="color:var(--muted)">Download editable source</small>
<div style="margin-top:6px"><a class="btn secondary" href="#" id="editSource">Download source</a></div>
</div>
</div>
</div>
<div style="margin-top:10px;display:flex;justify-content:space-between;align-items:center">
<small style="color:var(--muted)">Highscores saved locally</small>
<div style="display:flex;gap:8px">
<div class="chip">Snake: <span id="highSnake">—</span></div>
<div class="chip">T3 Wins: <span id="highT3">—</span></div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal" id="modal" aria-hidden="true">
<div class="box" role="dialog" aria-modal="true" aria-labelledby="gameTitle">
<header style="display:flex;justify-content:space-between;align-items:center;margin-bottom:8px">
<div><h3 id="gameTitle" style="margin:0">Game</h3><small id="gameHint" style="color:var(--muted)">controls</small></div>
<div><button class="btn secondary" id="closeModal">Close</button></div>
</header>
<div class="game-area">
<div class="game-canvas" id="gameCanvasArea"></div>
<aside class="sidebar">
<div class="chip" id="stat1">Score: 0</div>
<div class="chip" id="stat2">Time: 0s</div>
<div style="display:flex;gap:8px;margin-top:10px">
<button class="btn" id="restartBtn">Restart</button>
<button class="btn secondary" id="quitBtn">Quit</button>
</div>
<div style="margin-top:10px"><small style="color:var(--muted)">Notes: Hard memory downscales on small screens.</small></div>
</aside>
</div>
</div>
</div>
<script>
/* ---------- Utilities ---------- */
const $ = (s,r=document)=>r.querySelector(s), $$=(s,r=document)=>Array.from(r.querySelectorAll(s));
const modal = $('#modal'), canvasArea = $('#gameCanvasArea');
const stat1 = $('#stat1'), stat2 = $('#stat2'), highSnake = $('#highSnake'), highT3 = $('#highT3');