More stupid path changes...

This commit is contained in:
Nicolò P 2024-06-17 16:05:40 +02:00
parent 0bcb2998b9
commit 8699bd01c7

View File

@ -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', () => {