diff --git a/src/components/photos/PhotoGallery.vue b/src/components/photos/PhotoGallery.vue index ac46543..b2c35e7 100644 --- a/src/components/photos/PhotoGallery.vue +++ b/src/components/photos/PhotoGallery.vue @@ -38,33 +38,6 @@ onMounted(() => { type: 'auto', }); - // $lightbox.on('uiRegister', function () { - // $lightbox.pswp.ui.registerElement({ - // name: 'test-button', - // order: 9, - // isButton: true, - // html: infoIcon, - // onClick: (event, el, pswp) => { - // for (const elem of document.querySelectorAll('.pswp__dynamic-caption')) { - // elem.style.display = "block"; - // } - // - // // pswp.currSlide.dynamicCaption.element.style.display="block"; - // // pswp.currSlide.dynamicCaption.element.hidden = false; - // pswp.dispatch("calcSlideSize", {slide: pswp.currSlide}); - // pswp.currSlide.zoomAndPanToInitial(); - // - // // captionPlugin.recalculateZoomLevelAndBounds(pswp.currSlide); - // // captionPlugin.storeAdjustedPanAreaSize(pswp.currSlide); - // // captionPlugin.storeOriginalPanAreaSize(pswp.currSlide); - // // window.resize(); - // // captionPlugin.updateCaptionPosition(pswp.currSlide); - // // captionPlugin.adjustPanArea(pswp.currSlide, pswp.currSlide.zoomLevels.initial); - // // // captionPlugin.showCaption(pswp.currSlide); - // } - // }); - // }); - $lightbox.init(); } }); @@ -93,7 +66,7 @@ onUnmounted(() => { alt="" >