6 lines
177 B
JavaScript
6 lines
177 B
JavaScript
|
const toggle = document.getElementById('toggle');
|
||
|
const nav = document.getElementById('nav');
|
||
|
|
||
|
toggle.addEventListener('click', () => {
|
||
|
nav.classList.toggle('active');
|
||
|
});
|