proxitok/scripts/navbar.js
2022-01-02 17:39:22 +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')
})