Spaces:
Running
Running
File size: 447 Bytes
3363b82 | 1 2 3 4 5 6 7 8 9 10 11 12 | // Main script file for shared functionality
document.addEventListener('DOMContentLoaded', () => {
// 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'
});
});
});
}); |