dvadf
File manager - Edit - /home/centroca/public_html/wp/wp-content/plugins/nextgen-gallery/static/Lightbox/simplelightbox/nextgen_simple_lightbox_init.min.js
Back
jQuery(function(i){function e(){i(".ngg-simplelightbox").each(function(){var e=i(this).attr("title");e&&(e=o(e),i(this).attr("title",e))})}function t(e){var r=e.handleContent,n=e.cleanupContent,o=e.eventName||"simplelightbox";return function(e){e.each(function(){var t=this;t.addEventListener("shown."+o,function(){setTimeout(function(){var e=document.querySelector(".sl-image");e&&r(t,e)},150)}),t.addEventListener("changed."+o,function(){setTimeout(function(){var e=document.querySelector(".sl-image");e&&(n(e),r(t,e))},150)}),t.addEventListener("close."+o,function(){var e=document.querySelector(".sl-image");e&&n(e)})})}}var r=null,n=null,l={a:["href","title","target","rel"],b:[],i:[],u:[],em:[],strong:[],p:[],br:[],span:["class","id","style"],img:["src","alt","title"],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],ul:[],ol:[],li:[]},o=function(e){var t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("*").forEach(function(e){var t=e.tagName.toLowerCase();if(l.hasOwnProperty(t))for(var r=l[t],n=e.attributes.length-1;0<=n;n--){var o=e.attributes[n].name,i=e.attributes[n].value;r.includes(o)||e.removeAttribute(o),["href","src"].includes(o)&&i.startsWith("javascript:")&&e.removeAttribute(o),"title"===o&&e.setAttribute("title",a(i))}else e.replaceWith(e.innerHTML)}),t.innerHTML.replace(/\\/g,"")},a=function(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},s=t({handleContent:function(e,t){var r=e.getAttribute("data-tiktok-play-url"),e=e.getAttribute("data-tiktok-share-url");if(!r&&!e)return t.classList.remove("sl-tiktok-mode"),!1;t.classList.add("sl-tiktok-mode");var n=t.querySelector(".ngg-tiktok-container"),n=(n&&n.remove(),t.querySelector(".ngg-tiktok-error")),o=(n&&n.remove(),i(t).find("img"));return NextGEN_TikTok.handle_content({playUrl:r,shareUrl:e,container:t,width:o.width(),height:o.height(),onBeforeAppend:function(){o.hide()}}),!0},cleanupContent:function(e){e.classList.remove("sl-tiktok-mode");var t=e.querySelector(".ngg-tiktok-container"),t=(t&&t.remove(),e.querySelector(".ngg-tiktok-error"));t&&t.remove()}}),d=t({handleContent:function(e,t){var r=document.querySelector(".sl-wrapper"),n=e.getAttribute("data-video-url")||e.getAttribute("href");if(!n)return r.classList.remove("sl-video-mode"),!1;if(!window.NextGEN_Video||!window.NextGEN_Video.detect_platform(n))return r.classList.remove("sl-video-mode"),!1;r.classList.add("sl-video-mode");var r=t.querySelector(".ngg-video-container"),r=(r&&r.remove(),t.querySelector(".ngg-video-error")),r=(r&&r.remove(),null),e=i(e).closest("[data-gallery-id]"),e=(e.length&&(r=e.attr("data-gallery-id")||e.data("gallery-id")),e=r,window.ngg_video_gallery_settings?(r=window.ngg_video_gallery_settings,(e=e?String(e):null)&&r["gallery_"+e]?r["gallery_"+e]:r.default||{show_video_controls:!0,show_play_pause_controls:!0,autoplay_videos:!1}):{show_video_controls:!0,show_play_pause_controls:!0,autoplay_videos:!1}),o=i(t).find("img");return window.NextGEN_Video&&window.NextGEN_Video.handle_content&&window.NextGEN_Video.handle_content({videoUrl:n,container:t,settings:e,containerClass:"ngg-video-container",videoClass:"ngg-video-player",errorClass:"ngg-video-error",onBeforeAppend:function(){o.hide()}}),!0},cleanupContent:function(e){e.classList.remove("sl-video-mode");var t=e.querySelector(".ngg-video-container"),t=(t&&t.remove(),e.querySelector(".ngg-video-error"));t&&t.remove()}}),c={history:!1,animationSlide:!1,animationSpeed:100,captionSelector:"self"};e(),0<(r=nextgen_lightbox_filter_selector(i,i(".ngg-simplelightbox"))).length&&(n=r.simpleLightbox(c),s(r),d(r)),i(window).on("refreshed",function(){n&&n.destroy(),e(),0<(r=nextgen_lightbox_filter_selector(i,i(".ngg-simplelightbox"))).length&&(n=r.simpleLightbox(c),s(r),d(r))})});
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings