Spaces:
Running
Running
File size: 554 Bytes
da93b9f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | // Main JavaScript file
document.addEventListener('DOMContentLoaded', function() {
// Mobile menu toggle functionality will be added here
console.log('Beyond Events Hub loaded!');
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
}); |