Skip to content

Commit

Permalink
merged javascript into main issue1
Browse files Browse the repository at this point in the history
  • Loading branch information
navahmed786 committed Nov 20, 2023
2 parents 5bb5d71 + 8b6e634 commit 3e223d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

// Function to handle navigation menu
function toggleMenu() {
const nav = document.querySelector('header nav ul');
nav.classList.toggle('active');
}

// Event listener for the navigation menu
document.querySelector('.menu-btn').addEventListener('click', toggleMenu);

0 comments on commit 3e223d9

Please sign in to comment.