Server IP : 192.158.238.246 / Your IP : 3.143.7.75 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 : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/build/blocks/fun-fact/ |
Upload File : |
(()=>{"use strict";window.addEventListener("load",(()=>{(()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting)try{(e=>{((e,t)=>{const n=e.target,r=JSON.parse(n.getAttribute("data-animation")),o=n.querySelector(".number-percentage");r&&(()=>{const{endTime:e,duration:c,style:i}=r;if("static"===i){if(t){const u=document.createElement("span");u.classList.add("number-percentage"),o.replaceWith(u)}function a(e){const t=e.toString().split("."),n=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");return t.length>1?n+"."+t[1]:n}function s(e,t,r,o){let c=t;const i=(r-t)/(o/16),s=n.querySelector(e);if(!s)return void console.error("Element not found:",e);const u=()=>{c+=i,s.innerHTML=c>999?a(Math.round(c)):Math.round(c),i>0&&c<r||i<0&&c>r?requestAnimationFrame(u):s.innerHTML=r>999?a(r):r};u()}s(".number-percentage",0,e,c)}else new Odometer({el:o,value:0}).update(e)})()})(e,!1)})(e)}catch(e){console.warn(e)}}))})),t=document.querySelectorAll(".gkit-funfact-inner");t&&t.forEach((t=>{const n=t.getAttribute("id"),r=document.getElementById(n);e.observe(r)}))})()}))})();