Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-morais authored Apr 5, 2021
1 parent a972a67 commit 6f2ba6e
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ hamburger.addEventListener("click", () => {
});
});

anchor.addEventListener("click", () => {
anchor.classList.toggle("open");
});

// links.addEventListener("click", () => {
// links.forEach(link => {
// link.classList.toggle("close");
// });
// });

// $('.hamburger').on('click', function () {
// $('.nav-links').addClass('open');
// });

// $( '.nav-links a' ).on("click", function(){
// $('.nav-links').removeClass('open');
// });
$( '.nav-links li a' ).on("click", function(){
$('#hamburgerID').click();
});

0 comments on commit 6f2ba6e

Please sign in to comment.