SAE_S1.05_S1.06/script.js

9 lines
281 B
JavaScript

document.addEventListener('DOMContentLoaded', function () {
const menuIcon = document.getElementById('menu-icon');
const navList = document.querySelector('nav ul');
menuIcon.addEventListener('click', function () {
navList.classList.toggle('show');
});
});