diff --git a/starterOnly/modal.js b/starterOnly/modal.js index 694a848564..ae253c82fd 100644 --- a/starterOnly/modal.js +++ b/starterOnly/modal.js @@ -20,4 +20,9 @@ function launchModal() { modalbg.style.display = "block"; } +// fermer la modale +const closeModalBtn = document.querySelector(".close"); +closeModalBtn.addEventListener("click", function(){ + modalbg.style.display = "none"; +});