proxitok/scripts/navbar.js
2022-03-13 18:22:36 +01:00

7 lines
242 B
JavaScript

const navbar_menu = document.getElementById('navbar-menu')
const burger = document.getElementById('navbar-burger')
burger.addEventListener('click', () => {
burger.classList.toggle('is-active')
navbar_menu.classList.toggle('is-active')
})