6 lines
177 B
JavaScript
6 lines
177 B
JavaScript
{4a781a184ba0f470039433bf38b80f2fd163fedd true 177 app.js 0xc0084b4d90}
const toggle = document.getElementById('toggle');
|
|
const nav = document.getElementById('nav');
|
|
|
|
toggle.addEventListener('click', () => {
|
|
nav.classList.toggle('active');
|
|
}); |