Use corect event when configuring nav dropdown
This commit is contained in:
parent
a1aab90eb9
commit
d4c7b34a15
1 changed files with 1 additions and 2 deletions
|
@ -1,9 +1,8 @@
|
|||
document.addEventListener("DOMContentLoaded", () => {
|
||||
window.addEventListener("load", () => {
|
||||
const navbarBurger = document.getElementById("navbar-burger");
|
||||
const navbar = document.getElementById("navbar");
|
||||
|
||||
navbarBurger.addEventListener("click", () => {
|
||||
console.log("click");
|
||||
navbarBurger.classList.toggle("is-active");
|
||||
navbar.classList.toggle("is-active");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue