Création des répertoires js, html, css etc...

This commit is contained in:
2024-01-12 19:10:38 +01:00
parent 7ea6a7a60c
commit 829795f10a
5 changed files with 13 additions and 64 deletions

8
js/script.js Normal file
View File

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