From 0bcb2998b9636323e130ccf1cd2f320d7cb929c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Mon, 17 Jun 2024 15:59:24 +0200 Subject: [PATCH] Use relative path for images --- js/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui.js b/js/ui.js index 7b7d67c..0ffc519 100644 --- a/js/ui.js +++ b/js/ui.js @@ -113,7 +113,7 @@ UI.openModal = async function (data) {

Cliccare sull'immagine per aprire la gallery

@@ -127,7 +127,7 @@ UI.openModal = async function (data) {

Cliccare sull'immagine per aprire la gallery

@@ -186,7 +186,7 @@ UI.imageGallery = function (galleryId, images) { if (element) { let gallery = []; for (let img of images) { - gallery.push({src: `/img/${img.filename}`, description: img.didascalia}); + gallery.push({src: `../img/${img.filename}`, description: img.didascalia}); } document.querySelector(`#${galleryId}`).addEventListener('click', () => {