Author in captions + images
This commit is contained in:
parent
165806ae05
commit
c895894b0d
BIN
webgis/img/VILLA_DAMECUTA_FOTOGRAMMETRICO.jpg
Normal file
BIN
webgis/img/VILLA_DAMECUTA_FOTOGRAMMETRICO.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
BIN
webgis/img/VILLA_DAMECUTA_PLANIMETRIA_MAIURI.jpg
Normal file
BIN
webgis/img/VILLA_DAMECUTA_PLANIMETRIA_MAIURI.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 464 KiB |
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user