require('../app'); // event for hamburger-toggle document.addEventListener('click',function(e){ // Hamburger menu if(e.target.classList.contains('hamburger-toggle')){ e.target.children[0].classList.toggle('active'); } })