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) { <td colspan="2" style="max-width: 70%"> <p class="is-size-6 has-text-centered p-2">Cliccare sull'immagine per aprire la gallery</p> <figure class="image is-clickable" id="gallery-1"> - <img src="/img/${data.surveys[0].filename}" /> + <img src="../img/${data.surveys[0].filename}" /> <figcaption class="p-2 has-text-centered">${data.surveys[0].didascalia}</figcaption> </figure> </td> @@ -127,7 +127,7 @@ UI.openModal = async function (data) { <td colspan="2" style="max-width: 70%"> <p class="is-size-6 has-text-centered p-2">Cliccare sull'immagine per aprire la gallery</p> <figure class="image is-clickable" id="gallery-2"> - <img src="/img/${data.photos[0].filename}" /> + <img src="../img/${data.photos[0].filename}" /> <figcaption class="p-2 has-text-centered">${data.photos[0].didascalia}</figcaption> </figure> </td> @@ -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', () => {