Spaces:
Running
Running
File size: 438 Bytes
18c19b5 | 1 2 3 4 5 6 7 8 9 10 11 12 | // Initialize any global functionality
document.addEventListener('DOMContentLoaded', () => {
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
}); |