Server IP : 192.158.238.246 / Your IP : 18.222.48.95 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/4082427/root/proc/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/back-to-top/ |
Upload File : |
(()=>{"use strict";window.addEventListener("load",(()=>{document.querySelectorAll(".gkit-back-to-top").forEach((e=>{const t=e.getAttribute("data-settings"),o=JSON.parse(t),r=e.querySelector("span");r.addEventListener("click",(e=>{((e,t)=>{(window.frames["editor-canvas"]||window).scrollTo({left:0,top:t?.offset_top,behavior:"smooth"})})(0,o)})),document.addEventListener("scroll",(e=>{o?.show_scroll&&((e,t)=>{let o=window.frames["editor-canvas"]?.document.querySelector("html")||document.querySelector(".interface-interface-skeleton__content");const{offset_top:r,show_after:n}=t,l=wp?.editor?o.scrollTop:window.scrollY,s=Math.ceil(l)>parseInt(n,10)+parseInt(r,10);let c=e.classList.contains("gkit-tt-show");s&&!c&&e.classList.add("gkit-tt-show"),!s&&c&&e.classList.remove("gkit-tt-show")})(r,o),"progress-indicator"===o?.style&&((e,t)=>{const{background:o,foreground:r}=t;(({percentage:e=100,onScroll:t=!1,speed:o=1,element:r,size:n=50,backgroundClr:l="white",color:s="blue",strokeWidth:c=5})=>{let i=window.frames["editor-canvas"]?.document.querySelector("html")||document.querySelector(".interface-interface-skeleton__content");if(wp?.editor)var a=Math.ceil(i.scrollHeight-i.clientHeight);else a=Math.ceil(document.body.scrollHeight-window.innerHeight);if(!r)return void console.error("Invalid element:",r);const d=r,h=d.getContext("2d"),w=2*n+c,u=w,g=w/2,f=u/2;var p;d.width=w,d.height=u,p=t?Math.floor(window.scrollY/a*100):e>100?100:e+o,wp?.editor&&(p=t?Math.floor(i.scrollTop/a*100):e>100?100:e+o),h.clearRect(0,0,w,u),h.beginPath(),h.lineWidth=c,h.arc(g,f,n,0,2*Math.PI),h.strokeStyle=l,h.stroke(),(e=>{h.beginPath(),h.lineWidth=c,h.strokeStyle=s,h.arc(g,f,n,0,2*Math.PI*e/100),h.stroke()})(p)})({element:e.querySelector("canvas"),size:100,percentage:100,onScroll:!0,speed:50,backgroundClr:o,color:r,strokeWidth:10})})(r,o)}))}))}))})();