From 6f2ba6e47ed9b0a8d53edb85658672014f42a72a Mon Sep 17 00:00:00 2001 From: Edilson Morais <61170661+ed-morais@users.noreply.github.com> Date: Mon, 5 Apr 2021 18:42:12 -0300 Subject: [PATCH] Update app.js --- app.js | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/app.js b/app.js index 01a61c4..f8a6432 100644 --- a/app.js +++ b/app.js @@ -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'); -// }); \ No newline at end of file +$( '.nav-links li a' ).on("click", function(){ + $('#hamburgerID').click(); +});