if (action=='set')localStorage.setItem('reference'+dir,JSON.stringify(dir=='hor'?simulatorDataHor:simulatorDataVer));
if (step<scaleSteps){constpc=Math.round(100-(scaleSteps-step)/scaleSteps*90);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,1000,step+1);return;}
if (action=='clear')localStorage.removeItem('reference'+dir);
if (step<scaleSteps){constpc=Math.round((scaleSteps-step)/scaleSteps*90);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,20,step+1,up);return;}
constbuf=scaleHor._max;
constbuf=scaleHor._max;
scaleHor.max(buf*10);
scaleHor.max(buf*10);
scaleHor.min(buf/10);
scaleHor.min(buf/10);
scaleHor.step(buf/100);
scaleHor.step(buf/100);
}
}
elseif (scaleHor.$fill.style.width=="0%"){
else{
if (step<scaleSteps){constpc=Math.round(step/scaleSteps*10);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,200,step+1);return;}
if (step<scaleSteps){constpc=Math.round(step/scaleSteps*10);scaleHor.$fill.style.width=pc+"%";setTimeout(elapseHor,20,step+1,up);return;}
constbuf=scaleHor._max/10;
constbuf=scaleHor._max/10;
scaleHor.max(buf);
scaleHor.max(buf);
scaleHor.min(buf/100);
scaleHor.min(buf/100);
...
@@ -50,39 +56,43 @@
...
@@ -50,39 +56,43 @@
scaleHor.$fill.style.width="10%";
scaleHor.$fill.style.width="10%";
scaleHor.$fill.style.borderColor='#2cc9ff';
scaleHor.$fill.style.borderColor='#2cc9ff';
}
}
functionelapseVer(step){
functionelapseVer(step,up){
scaleSaturated=false;
if (up){
if (scaleVer.$fill.style.width=="100%"){
if (step<scaleSteps){constpc=Math.round(100-(scaleSteps-step)/scaleSteps*90);scaleVer.$fill.style.width=pc+"%";setTimeout(elapseVer,200,step+1,up);return;}
constbuf=scaleVer._max;
constbuf=scaleVer._max;
scaleVer.max(buf*10);
scaleVer.max(buf*10);
scaleVer.min(buf/10);
scaleVer.min(buf/10);
scaleVer.step(buf/100);
scaleVer.step(buf/100);
//
}
}
elseif (scaleVer.$fill.style.width=="0%"){
else{
if (step<scaleSteps){constpc=Math.round(step/scaleSteps*10);scaleVer.$fill.style.width=pc+"%";setTimeout(elapseVer,200,step+1,up);return;}