Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
immortalist
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
global
:
photoswipeImages.min.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
!function(h){woodmartThemeModule.photoswipeImages=function(){h(".photoswipe-images, .wp-block-wd-gallery:has(.photoswipe-images)").each(function(){var a=h(this);a.on("click","a",function(e){e.preventDefault();var e=h(e.currentTarget).parents(".wd-gallery-item, .wp-block-wd-gallery-item").index(),t=o(a,[]);woodmartThemeModule.callPhotoSwipe(e,t)})});var o=function(e,t){var a,o,r,i;return e.find("a").each(function(){var e=h(this);a=e.attr("href"),o=e.data("width"),r=e.data("height"),i=e.attr("title"),n(t,a)||t.push({src:a,w:o,h:r,title:i})}),t},n=function(e,t){for(var a=0;a<e.length;a++)if(e[a].src===t)return!0;return!1}},h(document).ready(function(){woodmartThemeModule.photoswipeImages()})}(jQuery);