Spaces:
Running
Running
File size: 650 Bytes
6638a84 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | // Main JavaScript functionality
document.addEventListener('DOMContentLoaded', function() {
// Initialize Feather Icons
feather.replace();
// Mobile menu toggle functionality will be handled by the header component
// 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'
});
});
});
// You can add more global functionality here as needed
}); |