From e197158737929fbc8e9b8f4d2d4e22972a14e776 Mon Sep 17 00:00:00 2001 From: JGHartel <155636863+JGHartel@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:30:37 +0200 Subject: [PATCH] removed debug --- assets/js/script.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index f3cfb96..fa6e2b4 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -1,5 +1,4 @@ 'use strict'; -alert("Script is loaded!"); // Element toggle function const elementToggleFunc = function (elem) { @@ -21,12 +20,9 @@ if (sidebarBtn) { const navigationLinks = document.querySelectorAll("[data-nav-link]"); const pages = document.querySelectorAll("[data-page]"); -console.log("Number of navigation links:", navigationLinks.length); - // Add event to all nav links navigationLinks.forEach(function (link) { link.addEventListener("click", function () { - alert("Clicked on " + this.dataset.page); const targetPage = this.textContent.trim().toLowerCase(); // Convert button text to match the section's data-page value // Remove 'active' class from all navigation links