HEX
Server: LiteSpeed
System: Linux srv158.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: u1694298 (3732)
PHP: 7.4.33
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: /home/u1694298/www/wp-content/plugins/js_composer/assets/lib/vc/vc_chart/jquery.vc_chart.min.js
/*!
* WPBakery Page Builder v7.6.0 (https://wpbakery.com)
* Copyright 2011-2024 Michael M, WPBakery
* License: Commercial. More details: http://go.wpbakery.com/licensing
*/
	// jscs:disable
	// jshint ignore: start 
(h=>{function r(t,i){this.el=t,this.$el=h(this.el),this.options=h.extend({color:"#f7f7f7",units:"",label_selector:".vc_pie_chart_value",back_selector:".vc_pie_chart_back",responsive:!0},i),this.init()}r.prototype={constructor:r,_progress_v:0,animated:!1,init:function(){this.color=this.options.color,this.value=this.$el.data("pie-value")/100,this.label_value=this.$el.data("pie-label-value")||this.$el.data("pie-value"),this.$wrapper=h(".vc_pie_wrapper",this.$el),this.$label=h(this.options.label_selector,this.$el),this.$back=h(this.options.back_selector,this.$el),this.$canvas=this.$el.find("canvas"),this.draw(),this.setWayPoint(),!0===this.options.responsive&&this.setResponsive()},setResponsive:function(){var t=this;h(window).on("resize",function(){t.$el&&t.$el.is(":visible")&&(!0===t.animated&&t.circle.stop(),t.draw(!0))})},draw:function(t){var i=this.$el.addClass("vc_ready").width(),s=(i=(i=i||this.$el.parents(":visible").first().width()-2)/100*80)/2-5-1;this.$wrapper.css({width:i+"px"}),this.$label.css({width:i,height:i,"line-height":i+"px"}),this.$back.css({width:i,height:i}),this.$canvas.attr({width:i+"px",height:i+"px"}),this.$el.addClass("vc_ready"),this.circle=new ProgressCircle({canvas:this.$canvas.get(0),minRadius:s,arcWidth:5}),!0===t&&!0===this.animated&&(this._progress_v=this.value,this.circle.addEntry({fillColor:this.color,progressListener:h.proxy(this.setProgress,this)}).start())},setProgress:function(){var t;return this._progress_v>=this.value?(this.circle.stop(),this.$label.text(this.label_value+this.options.units)):(this._progress_v+=.005,t=this._progress_v/this.value*this.label_value,t=Math.round(t)+this.options.units,this.$label.text(t)),this._progress_v},animate:function(){!0!==this.animated&&(this.animated=!0,this.circle.addEntry({fillColor:this.color,progressListener:h.proxy(this.setProgress,this)}).start(5))},setWayPoint:function(){void 0!==h.fn.vcwaypoint?this.$el.vcwaypoint(h.proxy(this.animate,this),{offset:"85%"}):this.animate()}},h.fn.vcChat=function(e,a){return this.each(function(){var t=h(this),i=t.data("vc_chart"),s="object"==typeof e?e:{color:t.data("pie-color"),units:t.data("pie-units")};void 0===e&&t.data("vc_chart",i=new r(this,s)),"string"==typeof e&&i[e](a)})},"function"!=typeof window.vc_pieChart&&(window.vc_pieChart=function(){h(".vc_pie_chart:visible").vcChat()}),h(document).ready(function(){window.vc_iframe||vc_pieChart()})})(window.jQuery);