Switch all pics to webp, + stuphs

This commit is contained in:
2026-01-29 12:35:41 +01:00
parent 87b5105f3f
commit 67189dd7ee
11 changed files with 90 additions and 27 deletions

View File

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