From 41d4fbe43ff92670d1f1003649dd3c12b60e1e86 Mon Sep 17 00:00:00 2001 From: mish-1 Date: Sat, 12 Oct 2024 21:00:20 +0530 Subject: [PATCH] Update script.js --- frontend/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/script.js b/frontend/script.js index ca89860..2f06d52 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -12,7 +12,7 @@ function signup() { // add functionality to hamburger // Select the hamburger icon and navigation links -document.getElementById('hamburger').addEventListener('click', function() { +document.getElementById('hamburger').addEventListener('click', function()){ const navLinks = document.querySelector('.nav-links'); const icon = this.querySelector('i'); @@ -25,5 +25,5 @@ document.getElementById('hamburger').addEventListener('click', function() { icon.classList.remove('fa-times'); icon.classList.add('fa-bars'); // Revert to hamburger icon } -}); +}