{"size": 3184, "ext": "js", "max_stars_repo_path": "plugins/circliful/js/jquery.circliful.min.js", "max_stars_repo_name": "LeoWyatt666/golgi", "max_stars_repo_stars_event_min_datetime": "2017-01-31T17:14:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-10T14:28:01.000Z", "max_issues_repo_path": "plugins/circliful/js/jquery.circliful.min.js", "max_issues_repo_name": "LeoWyatt666/golgi", "max_issues_repo_issues_event_min_datetime": "2017-01-30T01:01:29.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T20:59:14.000Z", "max_forks_repo_path": "plugins/circliful/js/jquery.circliful.min.js", "max_forks_repo_name": "LeoWyatt666/golgi", "max_forks_repo_forks_event_min_datetime": "2017-02-23T17:53:30.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-18T20:04:17.000Z"}
{"max_stars_count": 34, "max_issues_count": 1293, "max_forks_count": 43, "avg_line_length": 3184.0, "max_line_length": 3184, "alphanum_fraction": 0.6595477387}
"use strict";!function(t){t.fn.circliful=function(r,o){var e=t.extend({foregroundColor:"#3498DB",backgroundColor:"#ccc",fillColor:"none",foregroundBorderWidth:15,backgroundBorderWidth:15,fontColor:"#aaa",percent:75,animation:1,animationStep:5,icon:"none",iconSize:"30",iconColor:"#ccc",iconPosition:"top",target:0,start:0,showPercent:1,textSize:22,textAdditionalCss:"",targetPercent:0,targetTextSize:17,targetColor:"#2980B9",text:null,textStyle:null,textColor:"#666"},r);return this.each(function(){var r,o,n,i=t(this),a=e.percent,c=83,l=100,s=110,d=100;"bottom"==e.iconPosition?(c=124,s=95):"left"==e.iconPosition?(l=80,c=110,d=117):"middle"==e.iconPosition?(c=110,o='<g stroke="'+("none"!=e.backgroundColor?e.backgroundColor:"#ccc")+'" ><line x1="133" y1="50" x2="140" y2="40" stroke-width="2"  /></g>',o+='<g stroke="'+("none"!=e.backgroundColor?e.backgroundColor:"#ccc")+'" ><line x1="140" y1="40" x2="200" y2="40" stroke-width="2"  /></g>',d=175,s=35):"right"==e.iconPosition&&(l=120,c=110,d=80),e.targetPercent>0&&(s=95,o='<g stroke="'+("none"!=e.backgroundColor?e.backgroundColor:"#ccc")+'" ><line x1="75" y1="101" x2="125" y2="101" stroke-width="1"  /></g>',o+='<text text-anchor="middle" x="'+d+'" y="120" style="font-size: '+e.targetTextSize+'px;" fill="'+e.targetColor+'">'+e.targetPercent+"%</text>",o+='<circle cx="100" cy="100" r="69" fill="none" stroke="'+e.backgroundColor+'" stroke-width="3" stroke-dasharray="450" transform="rotate(-90,100,100)" />',o+='<circle cx="100" cy="100" r="69" fill="none" stroke="'+e.targetColor+'" stroke-width="3" stroke-dasharray="'+3.6*e.targetPercent+', 20000" transform="rotate(-90,100,100)" />'),null!=e.text&&(o+='<text text-anchor="middle" x="100" y="125" style="'+e.textStyle+'" fill="'+e.textColor+'">'+e.text+"</text>"),"none"!=e.icon&&(n='<text text-anchor="middle" x="'+l+'" y="'+c+'" class="icon" style="font-size: '+e.iconSize+'px" fill="'+e.iconColor+'">&#x'+e.icon+"</text>"),i.addClass("svg-container").append(t('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 194 186" class="circliful">'+o+'<circle cx="100" cy="100" r="57" class="border" fill="'+e.fillColor+'" stroke="'+e.backgroundColor+'" stroke-width="'+e.backgroundBorderWidth+'" stroke-dasharray="360" transform="rotate(-90,100,100)" /><circle class="circle" cx="100" cy="100" r="57" class="border" fill="none" stroke="'+e.foregroundColor+'" stroke-width="'+e.foregroundBorderWidth+'" stroke-dasharray="0,20000" transform="rotate(-90,100,100)" />'+n+'<text class="timer" text-anchor="middle" x="'+d+'" y="'+s+'" style="font-size: '+e.textSize+"px; "+r+";"+e.textAdditionalCss+'" fill="'+e.fontColor+'">0%</text>'));var x=i.find(".circle"),g=i.find(".timer"),f=30,k=0,h=e.animationStep,u=0,y=0,C=0;if(e.start>0&&e.target>0&&(a=e.start/(e.target/100),C=e.target/100),1==e.animation)var w=window.setInterval(function(){k>=3.6*a?(window.clearInterval(w),u=1):(k+=h,y+=C),k/3.6>=a&&1==u&&(k=3.6*a),y>e.target&&1==u&&(y=e.target),x.attr("stroke-dasharray",k+", 20000"),1==e.showPercent?g.text(parseInt(k/360*100)+"%"):g.text(y)}.bind(x),f);else x.attr("stroke-dasharray",3.6*a+", 20000"),1==e.showPercent?g.text(a+"%"):g.text(e.target)})}}(jQuery);