wp-rdnyc/assets/js/_hamburger-helper.js
2021-10-31 16:43:36 -04:00

10 lines
336 B
JavaScript
Executable file

const togglerBtn = document.getElementById("btn-burger");
const navbarContent = document.getElementById("nt-mainmenu");
navbarContent.addEventListener("show.bs.collapse", () => {
togglerBtn.classList.toggle("is-active");
});
navbarContent.addEventListener("hide.bs.collapse", () => {
togglerBtn.classList.toggle("is-active");
});