7 lines
173 B
JavaScript
7 lines
173 B
JavaScript
|
let menu = document.querySelector(".menu");
|
||
|
let menuToggle = document.querySelector(".toggle");
|
||
|
menuToggle.onclick = function(){
|
||
|
menu.classList.toggle('active');
|
||
|
}
|
||
|
|