File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/kadence-blocks/includes/assets/js/kb-gallery-simple-init.min.js
Back
(function(){"use strict";var a={simulateClick(a){const b=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),c=!a.dispatchEvent(b)},checkImage(a){return /(png|jpg|jpeg|gif|tiff|bmp|webp)$/.test(a.getAttribute("href").toLowerCase().split("?")[0].split("#")[0])},handleClones(b){const d=b.querySelectorAll(".slick-cloned a.kb-gallery-item-link"),e=b.querySelectorAll(".slick-slide:not(.slick-cloned) a.kb-gallery-item-link");for(let f=0;f<d.length;f++)d[f].addEventListener("click",function(b){b.preventDefault();const c=d[f].getAttribute("href");for(let d=0;d<e.length;d++)if(c===e[d].getAttribute("href")){a.simulateClick(e[d]);break}})},findGalleries(){const b=document.querySelectorAll(".kb-gallery-magnific-init");if(b.length&&b){const c=[];for(let d=0;d<b.length;d++){c[d]=b[d].querySelector(".kt-blocks-carousel-init"),c[d]&&setTimeout(function(){a.handleClones(c[d])},200);const e=b[d].classList,f=b[d].getAttribute("data-lightbox-caption"),g=b[d].getAttribute("data-image-filter");let h=!1;for(let a=0;a<e.length;a++)if(-1!==e[a].indexOf("kb-gallery-id")){h=e[a];break}if("true"==f){const a=b[d].querySelectorAll("a.kb-gallery-item-link");for(let b=0;b<a.length;b++){const c=a[b].querySelector(".kadence-blocks-gallery-item__caption");c&&a[b].setAttribute("data-caption",c.innerText)}}h&&(SimpleLightbox.defaults.elementClass=g?"slg-kt-blocks kb-gal-light-filter-"+g:"slg-kt-blocks",new SimpleLightbox({elements:"."+h+" a.kb-gallery-item-link"}))}}},initAll(){SimpleLightbox.defaults.captionAttribute="data-caption",a.findGalleries()},init(){if("function"==typeof SimpleLightbox)a.initAll();else var b=setInterval(function(){"function"==typeof SimpleLightbox&&(a.initAll(),clearInterval(b))},200)}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a.init):a.init()})();
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.5 |
proxy
|
phpinfo
|
Settings