uawdijnntqw1x1x1
IP : 18.218.108.184
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
axolotl.ru
/
www
/
bitrix
/
js
/
tasks
/
shared
/
..
/
graph
/
circle.min.js
/
/
(function(){"use strict";BX.namespace("BX.Tasks.Graph");BX.Tasks.Graph.Circle=function(t,s,r){this.domNode=t;this.perimetr=s;this.radius=s/2;this.progressBar=Number(r)>100?100:r;this.progressBg=null;this.number=null;this.waves=null};BX.Tasks.Graph.Circle.prototype={getCircumFerence:function(){return(this.radius-10)*2*3.14},getCircumProgress:function(){return this.getCircumFerence()-this.getCircumFerence()/100*this.progressBar},createCircle:function(){this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg");this.svg.setAttributeNS(null,"class","task-report-circle-bar");this.svg.setAttributeNS(null,"viewport","0 0 "+this.radius+" "+this.radius);this.svg.setAttributeNS(null,"width",this.perimetr);this.svg.setAttributeNS(null,"height",this.perimetr);this.progressBg=document.createElementNS("http://www.w3.org/2000/svg","circle");this.progressBg.setAttributeNS(null,"r",this.radius-10);this.progressBg.setAttributeNS(null,"cx",this.radius);this.progressBg.setAttributeNS(null,"cy",this.radius);this.progressBg.setAttributeNS(null,"class","task-report-circle-bar-bg");this.progressMove=document.createElementNS("http://www.w3.org/2000/svg","circle");this.progressMove.setAttributeNS(null,"r",this.radius-10);this.progressMove.setAttributeNS(null,"cx",this.radius);this.progressMove.setAttributeNS(null,"cy",this.radius);this.progressMove.setAttributeNS(null,"stroke-dasharray",this.getCircumFerence());this.progressMove.setAttributeNS(null,"stroke-dashoffset",this.getCircumFerence());this.progressMove.setAttributeNS(null,"class","task-report-circle-bar-progress");this.svg.appendChild(this.progressBg);this.svg.appendChild(this.progressMove);return this.svg},animateProgressBar:function(){this.svg.setAttributeNS(null,"class","task-report-circle-bar task-report-circle-bar-animate");if(this.progressBar>0){this.progressMove.setAttributeNS(null,"stroke-dashoffset",this.getCircumProgress())}},createNumberBlock:function(){this.number=BX.create("div",{attrs:{className:"task-report-circle-number","data-progress":this.progressBar}});return this.number},createWavesBlock:function(){return BX.create("div",{attrs:{className:"task-report-circle-waves-wrapper"},children:[this.waves=BX.create("div",{attrs:{className:"task-report-circle-waves"}})]})},animateWavesBlock:function(){var t=this.progressBar;this.progressBar<=25?t=25:null;this.waves.style.transform="translateY(-"+t+"%)"},createWrapper:function(){this.graph=BX.create("div",{attrs:{className:"task-report-circle-wrapper"}});this.graph.appendChild(this.createCircle());this.graph.appendChild(this.createNumberBlock());this.graph.appendChild(this.createWavesBlock());return this.graph},addWrapperClass:function(){this.graph.classList.add("task-report-circle-wrapper-animate")},animateNumber:function(){if(Number(this.progressBar)<=0){this.number.innerHTML="0"+" <span>%</span>";return}var t=0;var s=1e3/this.progressBar;var r=setInterval(function(){t++;this.number.innerHTML=t+" <span>%</span>";t===Number(this.progressBar)?clearInterval(r):null}.bind(this),s)},updateCounter:function(t){this.progressBar=t;this.progressMove.setAttributeNS(null,"stroke-dashoffset",this.getCircumProgress());this.animateNumber();this.animateWavesBlock()},show:function(){this.domNode.appendChild(this.createWrapper());setTimeout(function(){this.addWrapperClass();this.animateNumber();this.animateProgressBar();this.animateWavesBlock()}.bind(this),500)}}})();
/var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/tasks/shared/../graph/circle.min.js