add locally built, local warranty support- you done have to send interstae to get your warranty and wait weeks without your gaming machine
c042b21 verified | // Main JavaScript for Vortex Rampage | |
| document.addEventListener('DOMContentLoaded', () => { | |
| console.log('Vortex Rampage - Gaming PCs & Accessories'); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| if (targetId === '#') return; | |
| const targetElement = document.querySelector(targetId); | |
| if (targetElement) { | |
| targetElement.scrollIntoView({ | |
| behavior: 'smooth', | |
| block: 'start' | |
| }); | |
| } | |
| }); | |
| }); | |
| // Product hover effects | |
| const products = document.querySelectorAll('[id^="product-"]'); | |
| products.forEach(product => { | |
| product.addEventListener('mouseenter', () => { | |
| product.classList.add('shadow-lg'); | |
| }); | |
| product.addEventListener('mouseleave', () => { | |
| product.classList.remove('shadow-lg'); | |
| }); | |
| }); | |
| // Mobile menu toggle would be added here if needed | |
| }); |