Skip to content

Commit

Permalink
Merge pull request #7 from navahmed786/issue#3-javascript-file
Browse files Browse the repository at this point in the history
javascript outline file
  • Loading branch information
navahmed786 authored Nov 15, 2023
2 parents 8b54b31 + 8b6e634 commit 1f37850
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 1f37850

Please sign in to comment.