| // Mobile menu toggle functionality | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Mobile menu toggle would be implemented here | |
| // Since we're using web components, this would need to be handled differently | |
| // This is a placeholder for any shared JavaScript functionality | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| // Feather icons replacement (already being called in HTML) | |
| }); |