File manager - Edit - /home/acsexpp/www/wp-content/plugins/kadence-blocks/includes/assets/js/kb-glight-video-pop-init.min.js
Back
(function(){"use strict";var a={cache:[],wrapper:[],trigger:[],initAll(){const b=["zoom","zoomBack","fade","slide","slideBack","flip","none"];a.cache=document.querySelectorAll(".kadence-video-popup-link");for(let e=0;e<a.cache.length;e++){var c=b[0],d=a.cache[e].getAttribute("data-effect");b.includes(d)?c=d:"fade-right"==d||"fade-left"==d?c="fade":"slide-right"==d?c="slideBack":"slide-left"==d?c="slide":"zoom-out"==d?c="zoomBack":"3d-unfold"==d&&(c="flip");const f=a.cache[e].classList.contains("kadence-video-type-local"),g=a.cache[e].getAttribute("data-popup-id"),h=a.cache[e].getAttribute("data-popup-class"),i=!("true"!==a.cache[e].getAttribute("data-popup-auto")),j=!("true"!==a.cache[e].getAttribute("data-youtube-cookies"));if(f)console.log(1,c),a.wrapper[e]=document.getElementById(g),a.cache[e].addEventListener("click",function(b){b.preventDefault(),a.trigger[e]=GLightbox({elements:[{href:a.wrapper[e].querySelector(".kadence-local-video-popup").getAttribute("src"),type:"video",source:"local"}],touchNavigation:!0,skin:"kadence-dark "+h,loop:!1,openEffect:c,closeEffect:c,autoplayVideos:i,preload:!1,plyr:{css:kadence_pro_video_pop.plyr_css,js:kadence_pro_video_pop.plyr_js,config:{hideControls:!0}},cssEfects:{flip:{in:"flipIn",out:"flipOut"},zoomBack:{in:"zoomBackIn",out:"zoomBackOut"}}}),a.trigger[e].open()});else{console.log(2,c);const a=GLightbox({selector:".kadence-video-popup-link[data-popup-class=\""+h+"\"]",touchNavigation:!0,skin:"kadence-dark",loop:!1,openEffect:c,closeEffect:c,autoplayVideos:i,preload:!1,plyr:{css:kadence_pro_video_pop.plyr_css,js:kadence_pro_video_pop.plyr_js,config:{hideControls:!0,youtube:{noCookie:j},vimeo:{dnt:j}}},cssEfects:{flip:{in:"flipIn",out:"flipOut"},zoomBack:{in:"zoomBackIn",out:"zoomBackOut"}}});a.on("slide_before_load",()=>{const a=document.getElementById("glightbox-body");h&&a&&(a.classList="",a.classList.add("glightbox-container"),a.classList.add("glightbox-kadence-dark"),a.classList.add(h))}),a.on("slide_after_load",a=>{const b=a.slideConfig.href.match(/^(.*vimeo.com\/|.*video\/)?(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);if(b){const c=a.slideNode.querySelector("iframe");c.src=c.src+"&h="+b[b.length-1]}})}}},init(){if("function"==typeof GLightbox)a.initAll();else var b=setInterval(function(){"function"==typeof GLightbox&&(a.initAll(),clearInterval(b))},200)}};"loading"===document.readyState?(document.addEventListener("DOMContentLoaded",a.init),document.addEventListener("kb-query-loaded",a.init)):a.init()})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings