PageSourceSearch

https://allinbrand.com/wp-content/uploads/siteground-optimizer-assets/easypiechart.min.js?&ver=4.22.1

js allinbrand.com collected 2026-10-06 13:11:34 UTC 4,129 bytes, 10 lines download raw bytes

1/*!
2* easyPieChart
3* Lightweight plugin to render simple, animated and retina optimized pie charts
4*
5* @author Robert Fleischmann <[email protected]> (http://robert-fleischmann.de)
6* @version 2.1.5
7*
8* Modified to adapt the latest jQuery version (v3 above) included on WordPress 5.6:
9* - (2020-12-15) - jQuery isFunction method is deprecated.
10*/(function(e,t){typeof exports=="object"?module.exports=t(require("jquery")):typeof define=="function"&&define.amd?define(["jquery"],t):t(e.jQuery)})(this,function(e){var t=function(e,t){var n,o,i,a,r,c,l,d,s=document.createElement("canvas");e.appendChild(s),typeof G_vmlCanvasManager!="undefined"&&G_vmlCanvasManager.initElement(s),n=s.getContext("2d"),s.width=s.height=t.size,o=1,window.devicePixelRatio>1&&(o=window.devicePixelRatio,s.style.width=s.style.height=[t.size,"px"].join(""),s.width=s.height=t.size*o,n.scale(o,o)),n.translate(t.size/2,t.size/2),n.rotate((-1/2+t.rotate/180)*Math.PI),a=(t.size-t.lineWidth)/2,t.scaleColor&&t.scaleLength&&(a-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date},r=function(e,t,s,o){s=Math.min(Math.max(-1,s||0),1);var i=s<=0;n.beginPath(),n.arc(0,0,a,0,Math.PI*2*s,i),n.strokeStyle=e,n.globalAlpha=o,n.lineWidth=t,n.stroke()},d=function(){n.lineWidth=1,n.fillStyle=t.scaleColor,n.save();for(var e,s,o=24;o>0;--o)o%6===0?(e=t.scaleLength,s=0):(e=t.scaleLength*.6,s=t.scaleLength-e),n.fillRect(-t.size/2+s,0,e,1),n.rotate(Math.PI/12);n.restore()},c=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),l=function(){t.scaleColor&&d(),t.trackColor&&r(t.trackColor,t.lineWidth,1,t.trackAlpha)},this.getCanvas=function(){return s},this.getCtx=function(){return n},this.clear=function(){n.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){!!t.scaleColor||!!t.trackColor?n.getImageData&&n.putImageData?i?n.putImageData(i,0,0):(l(),i=n.getImageData(0,0,t.size*o,t.size*o)):(this.clear(),l()):this.clear(),n.lineCap=t.lineCap;var s;typeof t.barColor=="function"?s=t.barColor(e):s=t.barColor,r(s,t.lineWidth,e/100,t.barAlpha)}.bind(this),this.animate=function(e,n){var s,o=Date.now();t.onStart(e,n),s=function(){var i=Math.min(Date.now()-o,t.animate.duration),a=t.easing(this,i,e,n-e,t.animate.duration);this.draw(a),t.onStep(e,n,a),i>=t.animate.duration?t.onStop(e,n):c(s)}.bind(this),c(s)}.bind(this)},n=function(e,n){var s,i,a,o={barColor:"#ef1e25",barAlpha:1,trackColor:"#f9f9f9",trackAlpha:1,scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,render:!0,animate:{duration:1e3,enabled:!0},easing:function(e,t,n,s,o){return t=t/(o/2),t<1?s/2*t*t+n:-s/2*(--t*(t-2)-1)+n},onStart:function(){},onStep:function(){},onStop:function(){}};if(typeof t!="undefined")o.renderer=t;else if(typeof SVGRenderer!="undefined")o.renderer=SVGRenderer;else throw new Error("Please load either the SVG- or the CanvasRenderer");s={},i=0,a=function(){this.el=e,this.options=s;for(var t in o)o.hasOwnProperty(t)&&(s[t]=n&&typeof n[t]!="undefined"?n[t]:o[t],typeof s[t]=="function"&&(s[t]=s[t].bind(this)));typeof s.easing=="string"&&typeof jQuery!="undefined"&&"function"==typeof jQuery.easing[s.easing]?s.easing=jQuery.easing[s.easing]:s.easing=o.easing,typeof s.animate=="number"&&(s.animate={duration:s.animate,enabled:!0}),typeof s.animate=="boolean"&&!s.animate&&(s.animate={duration:1e3,enabled:s.animate}),this.renderer=new s.renderer(e,s),this.renderer.draw(i),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this),this.update=function(e){return e=parseFloat(e),s.animate.enabled?this.renderer.animate(i,e):this.renderer.draw(e),i=e,this}.bind(this),this.disableAnimation=function(){return s.animate.enabled=!1,this},this.enableAnimation=function(){return s.animate.enabled=!0,this},a()};e.fn.easyPieChart=function(t){return this.each(function(){var s;e.data(this,"easyPieChart")||(s=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new n(this,s)))})}})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.