Skip to content

Commit

Permalink
update js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzair-Manzoor committed Jun 27, 2023
1 parent a101da0 commit c8cc1e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const mobieMenu = document.getElementById('mobile-nav-items');
const mobileMenu = document.getElementById('mobile-nav-items');
function openmenu() {
popup.style.display = 'block';
mobileMenu.style.display = 'block';
}

function closemenu() {
popup.style.display = 'none';
mobileMenu.style.display = 'none';
}
popup.addEventListener('click', openmenu);
popup.addEventListener('click', closemenu);
mobileMenu.addEventListener('click', openmenu);
mobileMenu.addEventListener('click', closemenu);

0 comments on commit c8cc1e3

Please sign in to comment.