Author in captions + images
This commit is contained in:
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', () => {
|
||||
|
||||
Reference in New Issue
Block a user