Skip to content

Commit

Permalink
Fix javascript linters errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcarrascof committed Apr 18, 2023
1 parent dadfe30 commit 34fc6e1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ hamburger.addEventListener('click', () => {
navBar.classList.toggle('active');
});

document.querySelectorAll('.nav-link').forEach(n => n.addEventListener('click',
() => {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
navBar.classList.remove('active');
document.querySelectorAll('.nav-link').forEach(n => n.addEventListener('click', () => {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
navBar.classList.remove('active');
}));

0 comments on commit 34fc6e1

Please sign in to comment.