This commit is contained in:
Thomas Chartron 2021-11-07 12:54:28 +01:00
parent 4dabbe8fd8
commit 4655f38720

View file

@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded", function() {
const overlay = document.querySelector('.modal-overlay') const overlay = document.querySelector('.modal-overlay')
overlay.addEventListener('click', toggleSearchModal) overlay.addEventListener('click', toggleSearchModal)
let closemodal = document.querySelector('.modal-close') let closemodal = document.querySelectorAll('.modal-close')
// closemodal.addEventListener('click', toggleSearchModal) // closemodal.addEventListener('click', toggleSearchModal)
for (var i = 0; i < closemodal.length; i++) { for (var i = 0; i < closemodal.length; i++) {
closemodal[i].addEventListener('click', toggleSearchModal) closemodal[i].addEventListener('click', toggleSearchModal)