diff --git a/script.js b/script.js index defe078..1cda622 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,3 @@ -// Smooth scrolling document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); @@ -9,7 +8,6 @@ document.querySelectorAll('a[href^="#"]').forEach(anchor => { }); }); -// Highlight active navigation link window.addEventListener('scroll', function() { let currentSection = ''; @@ -27,4 +25,4 @@ window.addEventListener('scroll', function() { link.classList.add('active'); } }); -}); \ No newline at end of file +});