Update site data and add photos lightbox

This commit is contained in:
2024-06-24 00:17:35 +01:00
parent 010e8b2485
commit fca4eb190e
17 changed files with 81 additions and 136 deletions

View File

@@ -23,7 +23,7 @@ function resizeMasonryItem(item){
* Net height of the implicit row-track = T = G + R
* S = H1 / T
*/
var rowSpan = Math.ceil((item.querySelector('a').getBoundingClientRect().height+rowGap)/(rowHeight+rowGap));
var rowSpan = Math.ceil((item.querySelector('div').getBoundingClientRect().height+rowGap)/(rowHeight+rowGap));
/* Set the spanning as calculated above (S) */
item.style.gridRowEnd = 'span '+rowSpan;
@@ -76,4 +76,4 @@ masonryEvents.forEach( function(event) {
} );
/* Do a resize once more when all the images finish loading */
waitForImages();
waitForImages();