From a12aa31ce6ef290d214623567f64125ab9fa57eb Mon Sep 17 00:00:00 2001 From: M Sarmad Qadeer Date: Thu, 27 Oct 2022 17:29:12 +0500 Subject: [PATCH] nav issue fixed --- website/src/_includes/navbar.html | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/_includes/navbar.html b/website/src/_includes/navbar.html index aaef7ca238..98d654b052 100644 --- a/website/src/_includes/navbar.html +++ b/website/src/_includes/navbar.html @@ -142,6 +142,7 @@ const themeSwitch = () => { } } +const nav = document.querySelector('header nav'); window.addEventListener('click',(e)=>{ if(e.target.closest('.nav-link')){ if(e.target.closest('.nav-link').classList.contains('active')){