window.addEventListener('DOMContentLoaded', function() {
const burger = document.querySelector('.menu-button');
burger.addEventListener('click', (e) => {
e.currentTarget.classList.toggle('menu-button-active');
document.querySelector('.nav').classList.toggle('nav-opened');
document.querySelector('.nav').classList.contains('nav-opened')
? scrollLock.disablePageScroll()
: scrollLock.enablePageScroll()
});
});