PageSourceSearch

https://shop.pv-magazine.com/wp-content/themes/pvmagazine/dist/js/modules/gallery-1e7ef716.js

js pv-magazine.com collected 2026-10-01 08:18:56 UTC 1,451 bytes, 1 lines download raw bytes

1import e from"../vendor/simplelightbox/dist/simple-lightbox.modules-72c98308.js";class t{constructor(){let t={captionsData:"data-caption",sourceAttr:"data-original-image"};new e(".single-post .pvmagazine-post-featured-image",t),new e(".pvmagazine-gallery [data-original-image]",t);let o=document.querySelectorAll("div.pvmagazine-gallery__image"),a=document.querySelectorAll(".pvmagazine-gallery__load-more-container .load-more-button"),n=document.querySelectorAll(".pvmagazine-gallery__close"),l=document.querySelectorAll(".pvmagazine-gallery__popup-overlay"),i="gallery-popup-open";const r=e=>{"Escape"===e.key&&document.body.classList.contains(i)&&document.body.classList.remove(i)};o.forEach((e=>{e.addEventListener("click",(function(){let e=this.closest(".pvmagazine-gallery");if(e){e.querySelector(".pvmagazine-gallery__popup")&&(document.body.classList.add(i),document.addEventListener("keydown",r))}}))})),a.forEach((e=>{e.addEventListener("click",(function(){let e=this.closest(".pvmagazine-gallery__wrapper");if(e){e.querySelector(".pvmagazine-gallery__popup")&&(document.body.classList.add(i),document.addEventListener("keydown",r))}}))})),n.forEach((e=>{e.addEventListener("click",(function(){document.body.classList.remove(i),document.removeEventListener("keydown",r)}))})),l.forEach((e=>{e.addEventListener("click",(function(){document.body.classList.remove(i),document.removeEventListener("keydown",r)}))}))}}new t;export{t as Gallery};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.