PageSourceSearch

https://mrsbowtie.com/cdn/shop/t/4/assets/product-photoswipe.js?v=94579208574020290241690911947

js mrsbowtie.com collected 2026-10-04 10:27:56 UTC 2,174 bytes, 2 lines download raw bytes

1jQuery(function($){var ProductPhotoswipe=function($target){this.$target=$target,this.$images=$('.product__media-item[data-media-type="image"]',$target),this.$images.length!==0&&(this.photoswipe_enabled=typeof PhotoSwipe!="undefined",this.getGalleryItems=this.getGalleryItems.bind(this),this.initPhotoswipe=this.initPhotoswipe.bind(this),this.openPhotoswipe=this.openPhotoswipe.bind(this),this.photoswipe_enabled&&this.initPhotoswipe())};ProductPhotoswipe.prototype.initPhotoswipe=function(){var $this=this;$(document).on("click",".product-gallery-photoswipe__trigger",function(e){$this.openPhotoswipe(e)}),window.ZOOM||$(document).on("click",".product-image-main .product-media.media-image > img",function(e){$this.openPhotoswipe(e)})},ProductPhotoswipe.prototype.getGalleryItems=function(){var $slides=this.$images,items=[];return $slides.length>0&&$slides.each(function(i,el){var img=$(el).find("img");img.length&&items.push({src:img.attr("data-master-image"),w:img.attr("data-master-image-width"),h:img.attr("data-master-image-height"),title:img.attr("data-caption")?img.attr("data-caption"):""})}),items},ProductPhotoswipe.prototype.openPhotoswipe=function(e){e.preventDefault();var pswpElement=document.querySelector(".pswp"),items=this.getGalleryItems(),eventTarget=$(e.target),clicked;$(this.$target).hasClass("swiper")?clicked=this.$target.find(".swiper-slide-active"):clicked=$(eventTarget).closest(".gallary-item.product__media-item");var photoswipe_additional_options={shareEl:!1,history:!1,closeOnScroll:!1,bgOpacity:.85,closeOnVerticalDrag:!1};if($(this.$target).hasClass("product-style-2"))var index=parseInt($(eventTarget).closest(".gallary-item.product__media-item").attr("data-swiper-slide-index"));else var index=$(clicked).index();var options=$.extend({index:index,addCaptionHTMLFn:function(item,captionEl){return!1}},photoswipe_additional_options),photoswipe=new PhotoSwipe(pswpElement,PhotoSwipeUI_Default,items,options);photoswipe.init()},$(".product-image-main, .product-style-2-main-img").each(function(){var psws=new ProductPhotoswipe($(this))})});
2//# sourceMappingURL=/cdn/shop/t/4/assets/product-photoswipe.js.map?v=94579208574020290241690911947

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.