⚡ BOLT SMP
Initializing Nether Core
⚡ BOLT
SMP
Home
Ranks
Features
Donate
Discord
FAQ
Support
▶ Play Now
✓
Server IP Copied!
⚡ BOLT SMP
India's Premium Minecraft Lifesteal Server
Play Now
{ anchor.addEventListener('click', function (e) { e.preventDefault(); const target = document.querySelector(this.getAttribute('href')); if (target) { target.scrollIntoView({ behavior: 'smooth', block: 'start' }); // Update active nav link document.querySelectorAll('.nav-links a').forEach(link => { link.classList.remove('active'); }); this.classList.add('active'); } }); }); // Play Now button functionality document.getElementById('heroPlayBtn').addEventListener('click', function() { const serverIP = 'boltsmp'; navigator.clipboard.writeText(serverIP).then(() => { const toast = document.getElementById('toast'); toast.classList.add('show'); setTimeout(() => { toast.classList.remove('show'); }, 3000); }); }); // Modal functionality document.getElementById('navPlayBtn').addEventListener('click', function() { document.getElementById('modal-qr').classList.add('active'); }); document.getElementById('modal-close').addEventListener('click', function() { document.getElementById('modal-qr').classList.remove('active'); }); document.getElementById('modal-overlay').addEventListener('click', function(e) { if (e.target === this) { document.getElementById('modal-qr').classList.remove('active'); } }); // Close modal on ESC key document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { const modal = document.getElementById('modal-overlay'); if (modal.classList.contains('active')) { modal.classList.remove('active'); } } }); // Update scroll position for navbar window.addEventListener('scroll', function() { const navbar = document.getElementById('navbar'); if (window.scrollY > 50) { navbar.classList.add('scrolled'); } else { navbar.classList.remove('scrolled'); } }); // Add hover effect to rank cards document.querySelectorAll('.rank-card').forEach(card => { card.addEventListener('mouseenter', function() { this.style.transform = 'translateY(-12px) scale(1.02)'; }); card.addEventListener('mouseleave', function() { this.style.transform = 'translateY(0) scale(1)'; }); }); // Add counter animation function startCounter(element, end, duration) { const start = +element.textContent; const increment = (end - start) / (duration / 1000); let current = start; const timer = setInterval(() => { current += increment; if (current >= end) { element.textContent = end; clearInterval(timer); } else { element.textContent = Math.floor(current); } }, 10); } // Initialize counters const counters = document.querySelectorAll('.stat-value'); const targetValues = [1000, 500, 100, 50, 25]; counters.forEach((counter, index) => { if (targetValues[index]) { startCounter(counter, targetValues[index], 2000); } }); // Add pulse animation to buttons document.querySelectorAll('.btn, .rank-btn, .donate-btn, .discord-btn, .faq-question').forEach(btn => { btn.addEventListener('click', function() { this.style.animation = 'none'; setTimeout(() => { this.style.animation = ''; }, 10); }); }); // Add hover sound effect (visual feedback) document.querySelectorAll('a, button').forEach(element => { element.addEventListener('click', function() { this.style.transform = 'scale(0.98)'; setTimeout(() => { this.style.transform = ''; }, 100); }); }); // Initialize FAQ accordion document.querySelectorAll('.faq-question').forEach(question => { question.addEventListener('click', function() { const item = this.parentElement; const answer = item.querySelector('.faq-answer'); const isActive = item.classList.contains('active'); item.classList.toggle('active'); answer.style.maxHeight = isActive ? '0px' : answer.scrollHeight + 'px'; answer.style.padding = isActive ? '0 2rem 1.5rem' : '0 2rem 1.5rem'; }); }); // Add particle container for floating particles const particleContainer = document.createElement('div'); particleContainer.className = 'particle-container'; particleContainer.style.position = 'fixed'; particleContainer.style.top = '0'; particleContainer.style.left = '0'; particleContainer.style.width = '100%'; particleContainer.style.height = '100%'; particleContainer.style.pointerEvents = 'none'; particleContainer.style.zIndex = '1'; document.body.appendChild(particleContainer); // Add floating particles setInterval(() => { const particle = document.createElement('div'); particle.className = 'particle'; particle.style.width = Math.random() * 8 + 2 + 'px'; particle.style.height = particle.style.width; particle.style.left = Math.random() * 100 + '%'; particle.style.top = Math.random() * 100 + '%'; particle.style.background = `hsl(${Math.random() * 60 + 10}, 100%, 50%)`; particle.style.animationDuration = (3 + Math.random() * 2) + 's'; particle.style.animationDelay = (1 + Math.random() * 2) + 's'; particle.style.animationDirection = 'linear'; particle.style.animationIterationCount = 'infinite'; particleContainer.appendChild(particle); // Remove particle after animation setTimeout(() => { if (particle.parentNode) { particle.parentNode.removeChild(particle); } }, 4000); }, 1000); });
⚡ BOLT SMP
India's Premium Minecraft Lifesteal Server
Play Now