Server IP : 192.158.238.246 / Your IP : 18.118.149.213 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/7779/task/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/donut-progress-bar/ |
Upload File : |
(()=>{"use strict";const e=e=>{const t=new IntersectionObserver((r=>{r.forEach((r=>{r.isIntersecting&&(new EasyPieChart(r.target,{scaleColor:!1,size:250,lineCap:e?.lineCap,lineWidth:e?.lineWidth||5,trackColor:e?.trackColor||"#f5f5f5",barColor:function(t){const r=this.renderer.getCtx(),n=this.renderer.getCanvas(),o=e?.barColor;return function(e,t,r){if(!e||"object"!=typeof e)return"#72e9cd";const n=e.gradient?.includes("linear-gradient"),o=e.gradient?.includes("radial-gradient");if(n||o){const a=e.gradient.match(/(\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3})/g),i=t[n?"createLinearGradient":"createRadialGradient"](...function(e,t){return e?[t/2,t/2,0,t/2,t/2,t/2]:[0,0,t,0]}(o,r));return a.forEach(((e,t)=>{i.addColorStop(t/(a.length-1),`rgb(${e})`)})),i}return e.backgroundColor?e.backgroundColor:"#72e9cd"}(o,r,n.width)}}),t.unobserve(r.target))}))}),{threshold:.5});return t};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll(".gkit-piechart-element");if(t&&void 0!==window?.EasyPieChart)for(const r of t){const t=JSON.parse(r.dataset.settings);e(t).observe(r)}}))})();