More tweaks to the on-going tension between giving machine elements focus (especially problematic when there are multiple machines) and preventing the page from being yanked around
This commit is contained in:
parent
fa87224856
commit
9ecb9e948f
15 changed files with 123 additions and 120 deletions
|
|
@ -107,7 +107,7 @@ var jc=[],Ob=[u.prototype.va,u.prototype.Bb,u.prototype.fb,u.prototype.xc,u.prot
|
|||
if(fb)var Nb=[u.prototype.ra,u.prototype.ub,u.prototype.Ta,u.prototype.vc,u.prototype.Ea,u.prototype.Ob],Mb=[u.prototype.W,u.prototype.ma,u.prototype.ka,u.prototype.qa,u.prototype.Z,u.prototype.pa],kc=[u.prototype.xa,u.prototype.Cb,u.prototype.pb,u.prototype.yc,u.prototype.Ja,u.prototype.ic];
|
||||
function lc(a,b){Ka.call(this,"CPU",a,lc);b=a.cycles||b;var c=a.multiplier||1;this.T={};this.T.Yc=b;this.T.Bd=c;this.T.Jf=Math.round(this.T.Yc/1E4)/100;this.T.ve=this.T.Jf*this.T.Bd;this.ea.Nb=!1;this.ea.Oj=!1;this.ea.Le=a.autoStart;this.ea.ni=!1;this.ea.Df=!1;this.T.Lf=this.T.we=0;this.T.Mf=a.csStart;this.T.Qe=a.csInterval;this.T.Re=a.csStop;this.$j=this.sh.bind(this);t(this)}Ta(lc);var mc=["power","reset"];l=lc.prototype;
|
||||
l.pc=function(a,b,c,d){this.ba=a;this.ia=b;this.Ia=d;for(b=0;b<mc.length;b++)(c=this.la[mc[b]])&&this.ba.zb(null,mc[b],c);this.od=mb(a,"FPU");this.S=mb(a,"ChipSet");a=nc(a,"autoStart");null!=a&&(this.ea.Le="true"==a?!0:"false"==a?!1:!!a);t(this)};l.reset=function(){};l.save=function(){return null};l.restore=function(){return!1};l.Ub=function(a,b){if(!b){if(a&&this.restore){oc(this);if(!this.restore(a))return!1;pc(this)}else this.reset();this.rc("No debugger detected")}qc(this);return!0};
|
||||
l.Tb=function(a){return a?this.save():!0};l.Le=function(){return this.ea.Le||void 0===this.la.run?(this.sh(!0),!0):!1};l.ti=function(){return 0};function pc(a){void 0===a.T.Mf&&(a.T.Mf=0);void 0===a.T.Qe&&(a.T.Qe=-1);void 0===a.T.Re&&(a.T.Re=-1);a.ea.Df=0<=a.T.Mf&&0<a.T.Qe;a.ea.Df&&(a.T.Lf=0,a.T.we=a.T.Mf-a.ad)}
|
||||
l.Tb=function(a){return a?this.save():!0};l.Le=function(){return this.ea.Le||void 0===this.la.run?(this.sh(),!0):!1};l.ti=function(){return 0};function pc(a){void 0===a.T.Mf&&(a.T.Mf=0);void 0===a.T.Qe&&(a.T.Qe=-1);void 0===a.T.Re&&(a.T.Re=-1);a.ea.Df=0<=a.T.Mf&&0<a.T.Qe;a.ea.Df&&(a.T.Lf=0,a.T.we=a.T.Mf-a.ad)}
|
||||
l.zb=function(a,b,c){var d=this;a=!1;switch(b){case "power":case "reset":this.la[b]=c;a=!0;break;case "run":this.la[b]=c;c.onclick=function(){var a;if(a=d.ba)if(a=d.ba,a.ea.Vb)a=!0;else{var b=null,c,h=Wa(a.id);for(c=0;c<h.length&&(b=h[c],b===a||b.ea.ready);c++);if(c==h.length)for(c=0;c<h.length&&(b=h[c],b===a||b.ea.Vb);c++);c==h.length&&(b=a);r("The "+b.type+" component ("+b.id+") is not "+(b.ea.ready?"powered yet":"ready yet"+(b.Hf?" (waiting for notification)":""))+".");a=!1}a&&(d.ea.Nb?rc(d,!0):
|
||||
d.sh(!0))};a=!0;break;case "speed":this.la[b]=c;a=!0;break;case "setSpeed":this.la[b]=c,c.onclick=function(){sc(d,d.T.Bd<<1,!0)},c.textContent=this.T.ve.toFixed(2)+"Mhz",a=!0}return a};function tc(a,b){a.ea.Nb&&(b=a.A-b,a.A-=b,a.mc-=b)}function uc(a,b,c){a.ad+=b;c&&(a.mc=a.A=0)}
|
||||
function vc(a,b){var c=30;60>c&&(c=60);2>c&&(c=2);var d=1;b&&1<a.T.Bd&&a.T.zd&&(d=a.T.zd/a.T.Jf);a.T.zi=Math.round(1E3/30);a.T.Il=Math.floor(a.T.Yc/c*d);a.T.zg=Math.floor(a.T.Yc/30*d);a.T.Bi=Math.floor(a.T.Yc/60*d);a.T.Ai=Math.floor(a.T.Yc/2*d);b||(a.T.Ue=a.T.zg,a.T.Te=a.T.Bi,a.T.Se=a.T.Ai);a.T.Ag=0}function wc(a,b){var c=a.ad+a.zc+a.mc-a.A;b&&1<a.T.Bd&&a.T.zd>a.T.Jf&&(c=Math.round(c/a.T.Bd));return c}function oc(a){a.T.zd=0;a.ad=a.zc=a.mc=a.A=0;pc(a);sc(a,1)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue