File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/kadence-blocks/includes/assets/js/kb-off-canvas-trigger.min.js
Back
(function(){const a=function(a,b,c){let d=b.querySelectorAll("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex=\"0\"], [contenteditable]");d=Array.prototype.slice.call(d);const e=d[0],f=d[d.length-1],g=window.innerWidth-document.documentElement.clientWidth,h=function(c){document.body.style.setProperty("--kb-scrollbar-offset",g+"px"),document.body.classList.add("kb-modal-open"),document.body.classList.add("kb-scrollbar-fixer"),c.target.classList.add("triggered"),b.classList.add("show-off-canvas"),setTimeout(function(){b.classList.add("active"),a.forEach(a=>a.setAttribute("aria-expanded","true")),e.focus()},10)},i=function(){document.body.classList.remove("kb-modal-open"),document.body.classList.remove("kb-scrollbar-fixer"),b.classList.remove("active"),a.forEach(a=>a.setAttribute("aria-expanded","false"));for(let b=0;b<a.length;b++)a[b].classList.contains("triggered")&&(a[b].focus(),a[b].classList.remove("triggered"));setTimeout(function(){b.classList.remove("show-off-canvas")},250)};a.forEach(a=>{a.addEventListener("click",h)}),c.addEventListener("click",i),document.addEventListener("click",function(a){var c=a.target,d=b.querySelector(".kb-off-canvas-overlay");c===d&&i()}),b.addEventListener("keydown",function(a){const b="Tab"===a.key||9===a.keyCode;b&&(a.shiftKey?document.activeElement===e&&(a.preventDefault(),f.focus()):document.activeElement===f&&(a.preventDefault(),e.focus()))}),document.addEventListener("keydown",function(a){("Escape"===a.key||27===a.keyCode)&&i()});var j=b.querySelectorAll("a[href]:not(.kt-tab-title)");if(j.length)for(let a=0;a<j.length;a++)j[a].addEventListener("click",function(){i()})},b=function(b){const c=b.querySelectorAll(".wp-block-kadence-off-canvas-trigger"),d=b.querySelector(".wp-block-kadence-off-canvas"),e=d.querySelector(".kb-off-canvas-close");0<c.length&&d&&e&&a(c,d,e)};(function(){const a=document.querySelectorAll(".wp-block-kadence-header");if(0<a.length)for(let c=0;c<a.length;c++)b(a[c])})()})();
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings