Added rudimentary CSS support for side-by-side machines (the PDP-11/45 with VT100 is the first test case)
This commit is contained in:
parent
e007b75f8e
commit
4f7f72af57
19 changed files with 80 additions and 30 deletions
|
|
@ -202,7 +202,7 @@ function Eh(a,b,c,d,e,f){var g=-1;if(a.B.toLowerCase()!=c.toLowerCase()||a.v!=d)
|
|||
function Hh(a,b,c,d,e){var f=c;if(e){var g=new FileReader;g.onload=function(){var e=g.result;e&&(e=new Uint8Array(e,0,e.byteLength),Ih(a,b,c,d,e),a.G="?");Fh(a)};g.readAsArrayBuffer(e);return!0}0>c.indexOf("/api/v1/dump")&&(e=oa(c),f="json"==e||"gz"==e?encodeURI(c):Fa()+"/api/v1/dump?path="+encodeURIComponent(c)+"&format=json");return!!Da(f,null,!0,function(e,f,g){var h=0>g&&a.A&&!a.A.C.la;g?a.N('Unable to load tape "'+b+'" (error '+g+": "+e+")",h):(mb(a.gb,e,f),(e=Ea(e,f))&&Ih(a,b,c,d,e.ga,e.Sa,
|
||||
e.Ra));a.C.ib=!1;a.F&&(a.F--,a.F||J(a));Fh(a)})}function Ch(a,b,c,d){if((a=a.D.listTapes)&&a.options){for(var e=0;e<a.options.length;e++)if(a.options[e].value==c)return;e=document.createElement("option");e.text=b;e.value=c;d&&a.childNodes[0]?a.insertBefore(e,a.childNodes[0]):a.appendChild(e)}}
|
||||
function Fh(a){var b=a.D.listTapes;if(b&&b.options){a=a.G||a.B;for(var c=0;c<b.options.length;c++)if(b.options[c].value==a){b.selectedIndex!=c&&(b.selectedIndex=c);break}c==b.options.length&&(b.selectedIndex=0)}}function Ah(a,b){b|=0;if(b!==a.T){var c=a.D.readProgress;c&&(c=(c=F(c,"pcjs-progress-bar"))&&c[0])&&c.style&&(c.style.width=b+"%");a.T=b}}
|
||||
function Ih(a,b,c,d,e,f,g){a.M=b;a.B=c;a.v=d;a.ga=e;a.Sa=f;a.Ra=g;2==d?a.Y&&Wg(a.Y,e,f,g)?a.status("tape loaded: "+b):(a.M="",a.B="",a.G=wh,a.v=xh,a.N("No load address available for tape: "+b)):(a.K=0,a.I=e,a.status("tape attached: "+b),Ah(a,0))}function Gh(a,b){if(a.B||!1===b)a.M="",a.B="",b||(a.v&&a.status(1==a.v?"tape detached":"tape unloaded"),a.G=wh,a.v=xh,Fh(a))}k.save=function(){return(new S(this)).data()};k.restore=function(){return!0};k.Ud=function(){return this.f&65534};
|
||||
function Ih(a,b,c,d,e,f,g){a.M=b;a.B=c;a.v=d;a.ga=e;a.Sa=f;a.Ra=g;2==d?a.Y&&Wg(a.Y,e,f,g)?a.status("tape loaded: "+b):(a.M="",a.B="",a.G=wh,a.v=xh,a.N("No load address available for tape: "+b)):(a.K=0,a.I=e,a.status('Attached tape "'+b+'"'),Ah(a,0))}function Gh(a,b){if(a.B||!1===b)a.M="",a.B="",b||(a.v&&a.status(1==a.v?"tape detached":"tape unloaded"),a.G=wh,a.v=xh,Fh(a))}k.save=function(){return(new S(this)).data()};k.restore=function(){return!0};k.Ud=function(){return this.f&65534};
|
||||
k.Se=function(a){a&1&&(this.f&32768?(a&=-2,this.f&64&&Pc(this.b,this.S)):(this.f&=-129,this.f|=2048,this.L=0,Qc(this.b,this.ca,1E3/Math.round(this.ba/10))));this.f=this.f&-66|a&65};k.Td=function(){this.f&=-129;this.f|=2048;return this.L};k.Re=function(){};var Jh={},Bh=(Jh[65384]=[null,null,kd.prototype.Ud,kd.prototype.Se,"PRS"],Jh[65386]=[null,null,kd.prototype.Td,kd.prototype.Re,"PRB"],Jh);
|
||||
function Kh(a,b,c){x.call(this,"Disk",{id:a.gb+".disk"+p(++Lh,4)},Kh,8192);this.controller=a;this.A=a.A;this.j=a.j;this.v=b;this.Ta=b.name;this.$b=b.$b;Mh(this,c,b.fa,b.ka,b.ha,b.Aa);J(this)}var Lh=0;B(Kh);k=Kh.prototype;k.Fa=function(a,b,c,d){this.j=d};
|
||||
function Mh(a,b,c,d,e,f){a.mode=b;a.fa=c;a.ka=d;a.ha=e;a.Aa=f;a.b=[];if("preload"!=a.mode){b=Array(a.fa);for(c=0;c<b.length;c++){d=Array(a.ka);for(e=0;e<d.length;e++){f=Array(a.ha);for(var g=1;g<=f.length;g++)f[g-1]=Nh(null,c,e,g,a.Aa,0);d[e]=f}b[c]=d}a.b=b}a.f=null}
|
||||
|
|
|
|||
Loading…
Reference in a new issue