christmas/static/js/nav.js
2018-11-20 14:19:58 -05:00

8 lines
282 B
JavaScript

window.onload = () => {
const burger = document.getElementById('navBarBurger');
const navBarMenu = document.getElementById('navBarMenu');
burger.addEventListener('click', () => {
burger.classList.toggle('is-active');
navBarMenu.classList.toggle('is-active');
});
};