Skip to content

Commit

Permalink
fixes OpenClassrooms-Student-Center#1, fermeture de la modale
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaruZ committed May 20, 2021
1 parent 74e7ea1 commit bbf1341
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions starterOnly/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
});

0 comments on commit bbf1341

Please sign in to comment.