From f1e6c658d50e39ca795588a35aa5f16777c2c49d Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 31 Dec 2022 18:12:22 +0100 Subject: [PATCH] gallery cleanup --- static/js/load-photoswipe.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/static/js/load-photoswipe.js b/static/js/load-photoswipe.js index 978c66d..4e8db50 100644 --- a/static/js/load-photoswipe.js +++ b/static/js/load-photoswipe.js @@ -35,7 +35,6 @@ $( document ).ready(function() { title : $title, msrc : $msrc }; - console.log("Using pre-defined dimensions for " + $src); // if not, set temp default size then load the image to check actual size } else { var item = { @@ -45,7 +44,6 @@ $( document ).ready(function() { title : $title, msrc : $msrc }; - console.log("Using default dimensions for " + $src); // load the image to check its dimensions // update the item as soon as w and h are known (check every 30ms) var img = new Image(); @@ -57,7 +55,7 @@ $( document ).ready(function() { clearInterval(wait); item.w = w; item.h = h; - console.log("Got actual dimensions for " + img.src); + // console.log("Got actual dimensions for " + img.src); } }, 30); } @@ -71,8 +69,9 @@ $( document ).ready(function() { var $pswp = $('.pswp')[0]; var options = { index: index, - bgOpacity: 0.8, - showHideOpacity: true + bgOpacity: 0.9, + showHideOpacity: true, + loop: false, } new PhotoSwipe($pswp, PhotoSwipeUI_Default, items, options).init(); });