Author in captions + images

This commit is contained in:
Nicolò P 2024-11-30 12:21:28 +01:00
parent 165806ae05
commit c895894b0d
3 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

View File

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