Ooooooook good !

This commit is contained in:
2026-01-31 16:16:06 +01:00
parent 8d0586cfb4
commit a98c23ed1d
20 changed files with 1439 additions and 50 deletions

View File

@ -101,11 +101,11 @@ document.addEventListener('DOMContentLoaded', () => {
photoEl.addEventListener('click', () => {
console.log('Photo clicked');
// get next photo-full element inside the parent div
let fullPhoto = photoEl.parentElement.querySelector('.photo-full');
let fullPhoto = photoEl.parentElement.querySelector('.modal');
if (!fullPhoto) return;
fullPhoto.style.display = 'block';
fullPhoto.classList.toggle('is-active');
fullPhoto.addEventListener('click', () => {
fullPhoto.style.display = 'none';
fullPhoto.classList.toggle('is-active');
})
});
});