From 8f3e0d51263c0150eb949a7a99bd7bd91976634b Mon Sep 17 00:00:00 2001 From: Akash T K Date: Sat, 2 Mar 2024 23:31:21 +0530 Subject: [PATCH] Update script.js --- script.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 +});