-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathping.html
More file actions
819 lines (753 loc) · 33.1 KB
/
ping.html
File metadata and controls
819 lines (753 loc) · 33.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StudyBot — Your Study Companion • Bot Status🏓 || deepdeyiitk.com</title>
<link rel="icon" type="image/png" href="https://i.postimg.cc/YSV9JqBD/Neon-Green-Circle-Frame-Fitness-You-Tube-Profile-Picturedurga-puja.png">
<!-- 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/"/>
<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>
<!-- Festive Popup (user-provided code integrated) || Last Update: 10/10/2025 17:02:11 pm -->
<!-- Navaratri & Dussehra Popup | Dates: 22 Sept 2025 – 2 Oct 2025 -->
<style>
body {
font-family: sans-serif;
margin: 0;
padding: 2rem;
}
/* --- Popup Styles --- */
#festive-popup-overlay, #blessing-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: none; /* Hidden by default */
justify-content: center;
align-items: center;
z-index: 1000;
}
#festive-popup, #blessing-popup {
background-color: #fff;
padding: 25px;
border-radius: 15px;
text-align: center;
color: #fff;
background-size: cover;
background-position: center;
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
max-width: 500px;
width: 90%;
position: relative;
animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#close-popup-btn {
position: absolute;
top: 10px;
right: 15px;
background: transparent;
border: none;
font-size: 2.5rem;
color: #fff;
cursor: pointer;
line-height: 1;
}
#popup-title, #blessing-title {
margin-top: 0;
font-size: 2rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
#popup-message, #blessing-message {
font-size: 1.1rem;
line-height: 1.6;
text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
#countdown-timer, #stopwatch {
background-color: rgba(0, 0, 0, 0.5);
padding: 10px 15px;
border-radius: 8px;
font-size: 1.2rem;
font-weight: bold;
display: inline-block;
margin: 15px 0;
}
.popup-buttons {
margin-top: 20px;
}
.popup-btn {
background: linear-gradient(45deg, #ff8c00, #ff4500);
color: white;
border: none;
padding: 12px 25px;
border-radius: 25px;
cursor: pointer;
font-size: 1rem;
font-weight: bold;
margin: 5px;
transition: transform 0.2s, box-shadow 0.2s;
}
.popup-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(255, 100, 0, 0.4);
}
#close-blessing-btn {
background: #555;
}
/* --- Flower Petal Animation --- */
.flower-petal {
position: fixed;
top: -20px;
width: 15px;
height: 15px;
background-color: #ffc0cb;
border-radius: 0 50% 0 50%;
opacity: 0.9;
animation: fall linear forwards;
z-index: 1100;
}
/* --- Keyframe Animations --- */
@keyframes zoomIn {
from { transform: scale(0.3); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
@keyframes zoomOut {
from { transform: scale(1); opacity: 1; }
to { transform: scale(0.3); opacity: 0; }
}
@keyframes fall {
to {
top: 105vh;
transform: translateX(50px) rotate(360deg);
opacity: 0;
}
}
</style>
<div id="festive-popup-container">
<div id="festive-popup-overlay">
<div id="festive-popup">
<button id="close-popup-btn" title="Close" aria-label="Close popup">×</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" aria-label="Close blessing popup">Close</button>
</div>
</div>
</div>
<script>
(function() {
const festiveData = {
'2025-09-23': { day: 1, title: 'Happy Navaratri! Day 1', message: 'May the divine grace of Maa Shailaputri bring you strength. Shower blessings.', blessing: 'On Day 1, we worship Maa Shailaputri.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-24': { day: 2, title: 'Shubh Navaratri! Day 2', message: 'May Maa Brahmacharini guide your spirit.', blessing: 'Maa Brahmacharini represents asceticism and devotion.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-25': { day: 3, title: 'Joyous Navaratri! Day 3', message: 'May the glow of Maa Chandraghanta fill your life with courage.', blessing: 'Maa Chandraghanta is the symbol of bravery.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-26': { day: 4, title: 'Happy Navaratri! Day 4', message: 'Creative energy of Maa Kushmanda bless your world.', blessing: 'Maa Kushmanda bestows health and abundance.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-27': { day: 5, title: 'Blessed Navaratri! Day 5', message: 'Feel the warmth of Maa Skandamata\'s love.', blessing: 'Skandamata symbolizes selfless love.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-28': { day: 6, title: 'Divine Navaratri! Day 6', message: 'May Maa Katyayani empower you to conquer challenges.', blessing: 'Maa Katyayani grants strength to overcome obstacles.', image: 'https://images.pexels.com/photos/17585093/pexels-photo-17585093.jpeg' },
'2025-09-29': { day: 7, title: 'Shubho Maha Saptami!', message: 'Wishing you a vibrant start to Durga Puja celebrations!', blessing: 'Maha Saptami marks the formal beginning of Durga Puja.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116.jpeg' },
'2025-09-30': { day: 8, title: 'Shubho Maha Ashtami!', message: 'May Maa Durga bless you with strength and fortitude.', blessing: 'Maha Ashtami celebrates Maa Durga\'s victory over evil.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116.jpeg' },
'2025-10-01': { day: 9, title: 'Shubho Maha Navami!', message: 'May all your prayers be answered and life filled with prosperity.', blessing: 'Maha Navami celebrates final victory of the Goddess.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116.jpeg' },
'2025-10-02': { day: 10, title: 'Happy Vijayadashami!', message: 'Victory of good over evil — Shubho Bijoya!', blessing: 'Vijayadashami celebrates triumph and new beginnings.', image: 'https://images.pexels.com/photos/17585116/pexels-photo-17585116.jpeg' }
};
const navaratriStartDate = new Date('2025-09-23T00:00:00');
const postDussehraDate = new Date('2025-10-02T23:59:59');
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();
const todayString = today.getFullYear() + '-' + String(today.getMonth() + 1).padStart(2, '0') + '-' + String(today.getDate()).padStart(2, '0');
const currentData = festiveData[todayString];
function showMainPopup() {
try {
if (sessionStorage.getItem('festivePopupShown')) return;
} catch (e) { /* Fallback */ }
if (currentData) {
setupPopupContent(currentData);
popupOverlay.style.display = 'flex';
startCountdown();
} else if (today < navaratriStartDate) {
setupPreFestivalPopup();
popupOverlay.style.display = 'flex';
startPreFestivalCountdown();
} else if (today > postDussehraDate) {
setupStopwatchPopup();
popupOverlay.style.display = 'flex';
startStopwatch();
}
try { sessionStorage.setItem('festivePopupShown', '1'); } catch (e) {}
}
function setupPreFestivalPopup() {
titleEl.textContent = 'Navaratri is Coming Soon!';
messageEl.textContent = 'Get ready for nine nights of devotion, dance, and divine blessings. The celebration begins shortly!';
popup.style.backgroundImage = `linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.pexels.com/photos/17585116/pexels-photo-17585116.jpeg')`;
blessedBtn.style.display = 'none';
countdownEl.style.display = 'inline-block';
stopwatchEl.style.display = 'none';
}
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 startPreFestivalCountdown() {
if (intervalId) clearInterval(intervalId);
intervalId = setInterval(() => {
const diff = navaratriStartDate - new Date();
if (diff <= 0) {
clearInterval(intervalId);
countdownEl.innerHTML = "The festival has begun!";
return;
}
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);
countdownEl.innerHTML = `Celebration begins in: ${d}d ${h}h ${m}m ${s}s`;
}, 1000);
}
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.body.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');
showMainPopup();
})();
</script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #0d1117;
color: #c9d1d9;
text-align: center;
padding-top: 40px;
}
a {
color: #58a6ff;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
.container {
border: 1px solid #30363d;
border-radius: 10px;
display: inline-block;
padding: 20px 30px;
background-color: #161b22;
}
</style>
</head>
<body>
<div class="container">
<h2>✅ Bot is Alive!</h2>
<p><a href="https://bots.deepdeyiitk.com" target="_blank" style="color: inherit; text-decoration: none;">Made With 🩷 Deep</a></p>
<p>Support: <a href="https://www.instagram.com/deepdey.official/" target="_blank">@deepdey.official</a></p>
<p id="ping">⚡ Ping: 0ms</p>
<p id="uptime">⏱️ Uptime: 0:00:00</p>
<p><a href="https://deepdey-discord-bot.onrender.com/" target="_blank" style="color: inherit; text-decoration: none;">To Get Real States, Click Me! 🏓🩷</a></p>
</div>
<script>
async function updateStats() {
try {
const res = await fetch('/stats');
const data = await res.json();
document.getElementById('ping').innerText = "⚡ Ping: " + data.ping + "ms";
document.getElementById('uptime').innerText = "⏱️ Uptime: " + data.uptime;
} catch(e) {
console.log("Failed to fetch stats:", e);
}
}
setInterval(updateStats, 1000); // update every 1 sec
updateStats();
</script>
<div>
<h1> Here Is The Ping 🏓</h1>
<div style="position:relative; width:100%; height:400px;">
<iframe id="botIframe" src="https://deepdey-discord-bot.onrender.com/"
style="width:100%; height:100%; border:0;"
sandbox="allow-same-origin allow-scripts"></iframe>
<!-- Enhanced overlay to block all interactions except left clicks -->
<div id="iframeOverlay" style="position:absolute; top:0; left:0; width:100%; height:100%; z-index:10;
user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;"></div>
</div>
<script>
const overlay = document.getElementById('iframeOverlay');
const iframe = document.getElementById('botIframe');
// Prevent text selection on the overlay
overlay.addEventListener('selectstart', e => e.preventDefault());
// Use pointerdown so touch + mouse are handled. For primary (left) button,
// temporarily disable the overlay's hit-testing so the click reaches the iframe.
overlay.addEventListener('pointerdown', e => {
if (e.button !== 0) {
// Non-left click: block it
e.preventDefault();
e.stopPropagation();
return false;
}
// Left click: allow it through by disabling pointer events briefly.
// This makes the current click/focus go to the iframe underneath.
overlay.style.pointerEvents = 'none';
// Re-enable after a short delay so subsequent unwanted interactions remain blocked.
setTimeout(() => {
overlay.style.pointerEvents = 'auto';
}, 300);
});
// Block context menu (right click) inside the iframe area
overlay.addEventListener('contextmenu', e => {
e.preventDefault();
e.stopPropagation();
return false;
});
// Block drag events starting on the overlay
overlay.addEventListener('dragstart', e => {
e.preventDefault();
e.stopPropagation();
return false;
});
// Block auxiliary mouse buttons at the document level as a fallback
document.addEventListener('auxclick', e => {
if (e.button !== 0) {
e.preventDefault();
e.stopPropagation();
return false;
}
}, true);
// Block most keyboard events while the overlay is active (when pointer-events is not disabled)
window.addEventListener('keydown', e => {
// If overlay is currently allowing pointer events to pass (i.e. temporarily disabled),
// we shouldn't block keyboard because the user likely interacts with the iframe.
if (overlay.style.pointerEvents === 'none') return;
// Block default keyboard actions to avoid copy/paste/etc while overlay is active
e.preventDefault();
e.stopPropagation();
}, {capture: true});
</script>
</div>
<script>
// =======================
// Blockers (Ctrl Keys & Right Click)
// =======================
document.addEventListener('keydown', (e) => {
const blockedKeys = ['a','c','v','x','u'];
if(e.ctrlKey && blockedKeys.includes(e.key.toLowerCase())) {
e.preventDefault();
const alertDiv = document.createElement('div');
alertDiv.textContent = `🚫 Ctrl+${e.key.toUpperCase()} is blocked!`;
Object.assign(alertDiv.style, {
position: 'fixed', top: '20px', right: '20px', background: 'rgba(255,0,0,0.9)',
color: '#fff', padding: '10px 15px', borderRadius: '5px', fontFamily: 'Arial, sans-serif',
zIndex: 9999, boxShadow: '0 0 10px rgba(0,0,0,0.5)', transition: 'opacity 0.5s'
});
document.body.appendChild(alertDiv);
setTimeout(() => { alertDiv.style.opacity = '0'; setTimeout(()=>alertDiv.remove(),500); }, 1500);
}
});
document.addEventListener('contextmenu', e => e.preventDefault());
</script>
</body>
</html>