Skip to content

Commit

Permalink
dropdowns?
Browse files Browse the repository at this point in the history
  • Loading branch information
CherrelleTucker committed Jan 6, 2025
1 parent 05d2f96 commit e1b28f9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
document.querySelectorAll('.menu-item > a').forEach(link => {
link.addEventListener('click', function (e) {
const parent = this.parentElement;
const submenu = parent.querySelector('.submenu');
if (submenu) {
e.preventDefault();
parent.classList.toggle('open');
}
});
});

0 comments on commit e1b28f9

Please sign in to comment.