APM470/pixelperfect-pivot-dashboard
0
1document.addEventListener('DOMContentLoaded', function() {2 // Add active class to current nav item3 const currentPath = window.location.pathname.split('/').pop() || 'index.html';4 const navLinks = document.querySelectorAll('custom-navbar a');5 6 navLinks.forEach(link => {7 const linkPath = link.getAttribute('href').split('/').pop();8 if (currentPath === linkPath) {9 link.classList.add('active');10 }11 });12 13 // Mobile menu toggle functionality will be added by the navbar component14});