if (step<gofScaleSteps){constpc=Math.round((gofScaleSteps-step)/gofScaleSteps*90);gofScaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,20,step+1,up);return;}
constbuf=gofScaleHor._max;
gofScaleHor.max(buf*10);
gofScaleHor.min(buf/10);
gofScaleHor.step(buf/100);
}
else{
if (step<gofScaleSteps){constpc=Math.round(step/gofScaleSteps*10);gofScaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,20,step+1,up);return;}
constbuf=gofScaleHor._max/10;
gofScaleHor.max(buf);
gofScaleHor.min(buf/100);
gofScaleHor.step(buf/1000);
}
gofScaleHor.$fill.style.width="10%";
gofScaleHor.$fill.style.borderColor='#2cc9ff';
}
functionelapseVer(step,up){
if (up){
if (step<gofScaleSteps){constpc=Math.round((gofScaleSteps-step)/gofScaleSteps*90);gofScaleVer.$fill.style.width=pc+"%";setTimeout(elapseVer,20,step+1,up);return;}
constbuf=gofScaleVer._max;
gofScaleVer.max(buf*10);
gofScaleVer.min(buf/10);
gofScaleVer.step(buf/100);
}
else{
if (step<gofScaleSteps){constpc=Math.round(step/gofScaleSteps*10);gofScaleVer.$fill.style.width=pc+"%";setTimeout(elapseVer,20,step+1,up);return;}