Skip to content

Commit

Permalink
removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JGHartel committed Oct 17, 2024
1 parent cdb7ffc commit e197158
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
alert("Script is loaded!");

// Element toggle function
const elementToggleFunc = function (elem) {
Expand All @@ -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
Expand Down

0 comments on commit e197158

Please sign in to comment.