Happy Diwali 2025 | दीपावली की शुभकामनाएं
Happy
Diwali
In
Advance
2025
दीपावली की शुभकामनाएं
🌟 Wishing You 🌟
May the divine light of Diwali bring into your life peace, prosperity, happiness and good health.
✨ Happy Diwali 2025 ✨
🎆 फुलझड़ी की तरह चमको,
पटाखे की तरह धमको!
और जो बोले “Noise Pollution”
उसे भेज दो मिठाई – और कहो “मीठा खाओ, चुप रहो!” 🤭
🪔 शुभ दीपावली 🪔
${days} Days ${hours} Hours ${minutes} Minutes ${seconds} Seconds
`;
} else {
document.getElementById('countdown-timer').innerHTML = `
🎊 Happy Diwali! 🎊
May this festival bring joy and prosperity!
`;
}
}
updateCountdown();
setInterval(updateCountdown, 1000);
}
// Create floating particles
function createParticles() {
function addParticle() {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + '%';
particle.style.animationDelay = Math.random() * 8 + 's';
particle.style.animationDuration = (Math.random() * 3 + 5) + 's';
// Random colors
const colors = ['#ffd700', '#ff6b35', '#f7931e', '#ffeb3b'];
particle.style.background = colors[Math.floor(Math.random() * colors.length)];
document.body.appendChild(particle);
// Remove particle after animation
setTimeout(() => {
if (particle.parentNode) {
particle.parentNode.removeChild(particle);
}
}, 8000);
}
// Add particles continuously
setInterval(addParticle, 300);
}
// Enhanced Auto fireworks
function startFireworks() {
const fireworkEmojis = ['🎆', '🎇', '✨', '💥', '🌟', '⭐'];
const colors = ['#ff6b35', '#f7931e', '#ffeb3b', '#ffd700', '#ff1744', '#e91e63', '#9c27b0', '#673ab7', '#2196f3', '#00bcd4'];
function createFireworkLaunch() {
const startX = Math.random() * window.innerWidth;
const startY = window.innerHeight;
const endY = Math.random() * window.innerHeight * 0.4 + 100;
const color = colors[Math.floor(Math.random() * colors.length)];
// Create launch trail
const trail = document.createElement('div');
trail.className = 'firework-trail';
trail.style.background = `linear-gradient(to top, ${color}, transparent)`;
trail.style.left = startX + 'px';
trail.style.top = startY + 'px';
trail.style.animation = `fireworkLaunch 1.5s ease-out forwards`;
document.body.appendChild(trail);
// Create explosion after launch
setTimeout(() => {
createFireworkExplosion(startX, endY, color);
if (trail.parentNode) {
trail.parentNode.removeChild(trail);
}
}, 1500);
}
function createFireworkExplosion(x, y, color) {
// Create emoji burst
const burstEmoji = fireworkEmojis[Math.floor(Math.random() * fireworkEmojis.length)];
const burst = document.createElement('div');
burst.className = 'firework-burst';
burst.textContent = burstEmoji;
burst.style.left = (x - 30) + 'px';
burst.style.top = (y - 30) + 'px';
burst.style.color = color;
document.body.appendChild(burst);
// Create particle explosion
for (let i = 0; i < 20; i++) {
const particle = document.createElement('div');
particle.className = 'firework-particle';
particle.style.background = color;
particle.style.left = x + 'px';
particle.style.top = y + 'px';
const angle = (i * 18) * Math.PI / 180;
const velocity = Math.random() * 150 + 100;
const dx = Math.cos(angle) * velocity;
const dy = Math.sin(angle) * velocity;
particle.style.animation = `fireworkParticle 3s ease-out forwards`;
particle.style.setProperty('--dx', dx + 'px');
particle.style.setProperty('--dy', dy + 'px');
document.body.appendChild(particle);
setTimeout(() => {
if (particle.parentNode) {
particle.parentNode.removeChild(particle);
}
}, 3000);
}
// Remove burst emoji
setTimeout(() => {
if (burst.parentNode) {
burst.parentNode.removeChild(burst);
}
}, 2000);
}
// Add enhanced firework animation keyframes
const style = document.createElement('style');
style.textContent = `
@keyframes fireworkParticle {
0% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
50% {
opacity: 1;
}
100% {
transform: translate(var(--dx), var(--dy)) scale(0);
opacity: 0;
}
}
`;
document.head.appendChild(style);
// Create multiple fireworks with varying intervals
setInterval(createFireworkLaunch, 1500);
setTimeout(() => setInterval(createFireworkLaunch, 2000), 500);
setTimeout(() => setInterval(createFireworkLaunch, 2500), 1000);
}
// Share Functions
function shareOnWhatsApp() {
const message = `🪔 दीपावली की शुभकामनाएं! 🪔\n\n` +
`दीप जलते रहे मन से मन मिलते रहे।\n` +
`गिले शिकवे सारे मन से निकलते रहे।\n` +
`सारे विश्व में सुख-शांति की प्रभात ले आये।\n` +
`ये दीपों का त्योहार खुशी की सौगात ले आये।\n\n` +
`✨ Happy Diwali 2025! ✨\n\n` +
`🔗 ${window.location.href}`;
const whatsappUrl = `https://wa.me/?text=${encodeURIComponent(message)}`;
window.open(whatsappUrl, '_blank');
}
function shareOnFacebook() {
const facebookUrl = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}`;
window.open(facebookUrl, '_blank');
}
function copyLink() {
navigator.clipboard.writeText(window.location.href).then(() => {
const copyBtn = document.querySelector('.share-btn.copy');
const originalText = copyBtn.innerHTML;
copyBtn.innerHTML = '
✅ Copied!';
copyBtn.style.background = 'linear-gradient(45deg, #27ae60, #2ecc71)';
setTimeout(() => {
copyBtn.innerHTML = originalText;
copyBtn.style.background = 'linear-gradient(45deg, #6c5ce7, #a29bfe)';
}, 2000);
}).catch(() => {
// Fallback for older browsers
const textArea = document.createElement('textarea');
textArea.value = window.location.href;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
alert('Link copied to clipboard!');
});
}
// Click sparkle effect
document.addEventListener('click', function(e) {
const sparkle = document.createElement('div');
sparkle.textContent = '✨';
sparkle.style.cssText = `
position: fixed;
left: ${e.clientX - 10}px;
top: ${e.clientY - 10}px;
font-size: 20px;
pointer-events: none;
z-index: 1000;
animation: clickSparkle 1s ease-out forwards;
`;
// Add click sparkle animation if not exists
if (!document.getElementById('click-sparkle-style')) {
const style = document.createElement('style');
style.id = 'click-sparkle-style';
style.textContent = `
@keyframes clickSparkle {
0% {
transform: scale(0) rotate(0deg);
opacity: 1;
}
100% {
transform: scale(2) rotate(180deg);
opacity: 0;
}
}
`;
document.head.appendChild(style);
}
document.body.appendChild(sparkle);
setTimeout(() => {
sparkle.remove();
}, 1000);
});