Merge branch 'master' into gh-pages

This commit is contained in:
Jeff Parsons 2017-01-29 22:18:52 -08:00
commit c1ebc89eff
8 changed files with 24 additions and 6 deletions

View file

@ -592,7 +592,7 @@ function mo(a,b,c,d,e){if(b.Ac<b.wh){e&&!z(a)||x(a,c,d,e,"CRTC."+b.qg[b.Ac]);b.m
var hn={948:Z.prototype.wm,949:Z.prototype.vm,952:Z.prototype.xm,954:Z.prototype.ym},jn={948:Z.prototype.Xn,949:Z.prototype.Wn,952:Z.prototype.Yn},kn={980:Z.prototype.am,981:Z.prototype.$l,984:Z.prototype.bm,985:Z.prototype.Zl,986:Z.prototype.cm},ln={980:Z.prototype.An,981:Z.prototype.zn,984:Z.prototype.Bn,985:Z.prototype.yn},mn={960:Z.prototype.Vl,961:Z.prototype.ml,962:Z.prototype.Im,964:Z.prototype.Gm,965:Z.prototype.Fm,974:Z.prototype.pm,975:Z.prototype.om},nn={954:Z.prototype.Mk,960:Z.prototype.Lk,
961:Z.prototype.Lk,962:Z.prototype.Zn,964:Z.prototype.fo,965:Z.prototype.eo,970:Z.prototype.Sn,972:Z.prototype.Rn,974:Z.prototype.Qn,975:Z.prototype.Pn,986:Z.prototype.Mk},on={963:Z.prototype.Jm,966:Z.prototype.hm,967:Z.prototype.im,969:Z.prototype.gm,970:Z.prototype.Km,972:Z.prototype.Lm},pn={963:Z.prototype.io,966:Z.prototype.Gn,967:Z.prototype.Hn,968:Z.prototype.In,969:Z.prototype.Fn};
Za(function(){for(var a=qb(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=nb(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=Ca().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
function po(a){this.V=a.adapter;switch(this.V){case 1:this.X=956;this.C=7;break;case 2:this.X=888;this.C=7;break;case 3:this.X=632;this.C=5;break;default:w("Unrecognized parallel adapter #"+this.V);return}this.A=this.B=null;db.call(this,"ParallelPort",a,po,4194304);a=a.binding;"console"==a?this.B="":ob(this,a,qo)}gb(po);var qo="buffer";l=po.prototype;l.Pb=function(a,b,c){switch(b){case qo:return this.qa[b]=this.A=c,!0}return!1};
l.Jc=function(a,b,c,d){this.ga=b;this.F=c;this.ha=d;this.N=Gb(a,"ChipSet");nc(b,this,ro,this.X);rc(b,this,so,this.X);ub(this)};l.hc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.gc=function(a){return a?this.save():!0};l.reset=function(){to(this)};l.save=function(){var a=new nf(this),b=0,c=[];c[b++]=this.L;c[b++]=this.Yb;c[b]=this.Df;a.set(0,c);return a.data()};l.restore=function(a){return to(this,a[0])};
function to(a,b){var c=0;b||(b=[0,0,0]);a.L=b[c++];a.Yb=b[c++];a.Df=b[c];return!0}l.jm=function(a,b){var c=this.L;x(this,a,null,b,"DATA",c);return c};l.Hm=function(a,b){var c=this.Yb;x(this,a,null,b,"STAT",c);return c};l.fm=function(a,b){var c=this.Df;x(this,a,null,b,"CTRL",c);return c};

View file

@ -554,7 +554,7 @@ function Fl(a,b,c){if(b.sc<b.vg){b.ab[b.sc]=c;if(12==b.sc||13==b.sc)if(Dl(a,b)&1
var bl={948:Y.prototype.hl,949:Y.prototype.gl,952:Y.prototype.il,954:Y.prototype.jl},cl={948:Y.prototype.zm,949:Y.prototype.ym,952:Y.prototype.Am},dl={980:Y.prototype.Mk,981:Y.prototype.Lk,984:Y.prototype.Nk,985:Y.prototype.Kk,986:Y.prototype.Ok},el={980:Y.prototype.cm,981:Y.prototype.bm,984:Y.prototype.dm,985:Y.prototype.am},fl={960:Y.prototype.Gk,961:Y.prototype.ak,962:Y.prototype.tl,964:Y.prototype.rl,965:Y.prototype.ql,974:Y.prototype.al,975:Y.prototype.$k},gl={954:Y.prototype.Ej,960:Y.prototype.Dj,
961:Y.prototype.Dj,962:Y.prototype.Bm,964:Y.prototype.Hm,965:Y.prototype.Gm,970:Y.prototype.um,972:Y.prototype.tm,974:Y.prototype.sm,975:Y.prototype.rm,986:Y.prototype.Ej},hl={963:Y.prototype.ul,966:Y.prototype.Tk,967:Y.prototype.Uk,969:Y.prototype.Sk,970:Y.prototype.vl,972:Y.prototype.wl},il={963:Y.prototype.Jm,966:Y.prototype.im,967:Y.prototype.jm,968:Y.prototype.km,969:Y.prototype.hm};
Ia(function(){for(var a=Za(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=Wa(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
function Hl(a){this.I=a.adapter;switch(this.I){case 1:this.G=956;this.D=7;break;case 2:this.G=888;this.D=7;break;case 3:this.G=632;this.D=5;break;default:r("Unrecognized parallel adapter #"+this.I);return}this.B=this.C=null;Ma.call(this,"ParallelPort",a,Hl);a=a.binding;"console"==a?this.C="":Xa(this,a,Il)}Pa(Hl);var Il="buffer";l=Hl.prototype;l.zb=function(a,b,c){switch(b){case Il:return this.la[b]=this.B=c,!0}return!1};
l.pc=function(a,b,c,d){this.ia=b;this.A=c;this.Ia=d;this.S=jb(a,"ChipSet");Pb(b,this,Jl,this.G);Rb(b,this,Kl,this.G);t(this)};l.Ub=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Tb=function(a){return a?this.save():!0};l.reset=function(){Ll(this)};l.save=function(){var a=new ae(this),b=0,c=[];c[b++]=this.H;c[b++]=this.Db;c[b]=this.Me;a.set(0,c);return a.data()};l.restore=function(a){return Ll(this,a[0])};
function Ll(a,b){var c=0;b||(b=[0,0,0]);a.H=b[c++];a.Db=b[c++];a.Me=b[c];return!0}l.Vk=function(){return this.H};l.sl=function(){return this.Db};l.Rk=function(){return this.Me};l.lm=function(a,b){this.H=b;this.Db|=64;a=!1;this.B&&(8==b?this.B.value=this.B.value.slice(0,-1):(this.B.value+=String.fromCharCode(b),this.B.scrollTop=this.B.scrollHeight),a=!0);if(null!=this.C){if(10==b||1024<=this.C.length)this.rc(this.C),this.C="";10!=b&&(this.C+=String.fromCharCode(b));a=!0}a&&(this.Db&=-65);Ml(this)};

View file

@ -1487,6 +1487,15 @@ class Video8080 extends Component {
if (Web.isUserAgent("iOS")) {
eTextArea.setAttribute("autocapitalize", "off");
eTextArea.setAttribute("autocorrect", "off");
/*
* One of the problems on iOS devices is that after a soft-key control is clicked, we need to give
* focus back to the above textarea, usually by calling cmp.updateFocus(), but in doing so, iOS may
* also "zoom" the page rather jarringly. While it's a simple matter to completely disable zooming,
* by fiddling with the page's viewport, that prevents the user from intentionally zooming. A bit of
* Googling reveals that another way to prevent those jarring unintentional zooms is to simply set the
* font-size of the text control to 16px. So that's what we do.
*/
eTextArea.style.fontSize = "16px";
}
eVideo.appendChild(eTextArea);

View file

@ -7368,6 +7368,15 @@ Video.init = function()
if (web.isUserAgent("iOS")) {
eTextArea.setAttribute("autocapitalize", "off");
eTextArea.setAttribute("autocorrect", "off");
/*
* One of the problems on iOS devices is that after a soft-key control is clicked, we need to give
* focus back to the above textarea, usually by calling cmp.updateFocus(), but in doing so, iOS may
* also "zoom" the page rather jarringly. While it's a simple matter to completely disable zooming,
* by fiddling with the page's viewport, that prevents the user from intentionally zooming. A bit of
* Googling reveals that another way to prevent those jarring unintentional zooms is to simply set the
* font-size of the text control to 16px. So that's what we do.
*/
eTextArea.style.fontSize = "16px";
}
eVideo.appendChild(eTextArea);

View file

@ -174,7 +174,7 @@ pf:qf);break}if(p<A)a.ga[p++]=w;else break}if(f)f--;else{for(;p<a.ga.length;)a.g
ya,S,La,cc,K,ia,ta,ma))}h++}g++}e++}}a.W=!0;!b&&a.ya&&1==h&&(a.A[l]=-1,h=0);a.ya=!1;(h||b)&&a.wa&&a.j.drawImage(a.D,0,a.sa,a.C,a.N-a.ba,0,0,a.Ab,a.sd)}else{e=a.la;f=e+a.L;l=h=g=0;b=a.C;p=0;c=a.N;t=d=0;r=a.na;A=(1<<r)-1;a.vd&&(r=-r,t=16+r);for(;e<f;){u=Gb(a.H,e);if(a.W&&u===a.A[g])h+=a.fb;else{a.A[g]=u;(B=t)&&(u=u>>8|(u&255)<<8);h<b&&(b=h);for(w=a.fb;w--;)ya=u>>B&A,kf(a,a.Ua,h++,l,ya),B+=r;h>p&&(p=h);l<c&&(c=l);l>=d&&(d=l+1)}e+=2;g++;if(h>=a.C&&(h=0,l++,l>a.N))break}a.W=!0;b<a.C&&(e=p-b,d-=c,a.g&&
(f=b,g=e,b=c,e=d,c=a.C-(f+g),d=g),a.wa.putImageData(a.Ua,0,0,b,c,e,d),a.j.drawImage(a.D,0,0,a.D.width,a.D.height,0,0,a.M,a.I))}}var bf=0,cf=1,$e=2,We=0,af=1,df=2,Ve={SI1978:af,VT100:df},ef=96,gf=64,hf=32,jf=0,lf=127,nf=15,of=16,mf=96,pf=8192,qf=16384;
hb(function(){for(var a=pa(document,"pc8080","video"),b=0;b<a.length;b++){var c=a[b],d=na(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=Ua().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||cb("aspect"));f&&.3<=f&&3.33>=f&&(gb("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");bb("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Ue(d,e,g,f,c);oa(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||cb("aspect"));f&&.3<=f&&3.33>=f&&(gb("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");bb("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Ue(d,e,g,f,c);oa(d,c)}});
function rf(a){n.call(this,"SerialPort",a,8388608);this.T=+a.adapter;switch(this.T){case 0:this.U=0;this.X=2;break;default:q("Unrecognized serial adapter #"+this.T);return}this.g=this.j=null;this.V=a.tabSize;this.S=a.charBOL;this.w=0;this.N=!1;this.D=!0;var b=a.binding;if("console"==b)this.j="";else{var c;a=sf;b&&(void 0===c&&(c="Panel"),(c=la(c,this.id))&&(b=c.P[b])&&this.ca(null,a,b))}this.A="";this.b=this.Ra=this.I=null;this.exports={connect:this.jc,receiveData:this.Lb,receiveStatus:this.ce}}
ba(rf,n);k=rf.prototype;
k.ca=function(a,b,c,d){var e=this;switch(b){case sf:return this.P[b]=this.g=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64<b&&(b-=64),tf(e,b);return!0},c.onkeypress=function(a){a=a||window.event;tf(e,a.which||a.keyCode);a.preventDefault&&a.preventDefault();return!0},c.removeAttribute("readonly"),!0;default:if(d)return this.P[b]=c,d=d.replace(/\\e/g,String.fromCharCode(27)),c.onclick=function(){e.Lb(d);return!0},

View file

@ -165,7 +165,7 @@ zd);break}if(n<K)a.X[n++]=x;else break}if(f)f--;else{for(;n<a.X.length;)a.X[n++]
ca,ta,Ta,lb))}h++}g++}e++}}a.N=!0;!b&&a.na&&1==h&&(a.g[l]=-1,h=0);a.na=!1;(h||b)&&a.ma&&a.c.drawImage(a.l,0,a.la,a.j,a.B-a.K,0,0,a.jb,a.Ob)}else{e=a.da;f=e+a.v;l=h=g=0;b=a.j;n=0;c=a.B;A=d=0;v=a.ea;K=(1<<v)-1;a.Qc&&(v=-v,A=16+v);for(;e<f;){t=a.u;E=e;x=E&t.f;Y=(E&t.g)>>>t.b;t=x!=t.f?t.a[Y].Jb(x,E):t.a[Y++].eb(x,E)|t.a[Y&t.o].eb(0,E+1)<<8;if(a.N&&t===a.g[g])h+=a.La;else{a.g[g]=t;(E=A)&&(t=t>>8|(t&255)<<8);h<b&&(b=h);for(x=a.La;x--;)Y=t>>E&K,td(a,a.Fa,h++,l,Y),E+=v;h>n&&(n=h);l<c&&(c=l);l>=d&&(d=l+1)}e+=
2;g++;if(h>=a.j&&(h=0,l++,l>a.B))break}a.N=!0;b<a.j&&(e=n-b,d-=c,a.b&&(f=b,g=e,b=c,e=d,c=a.j-(f+g),d=g),a.ma.putImageData(a.Fa,0,0,b,c,e,d),a.c.drawImage(a.l,0,0,a.l.width,a.l.height,0,0,a.A,a.s))}}var ld=0,md=1,jd=2,fd=0,kd=1,nd=2,ed={SI1978:kd,VT100:nd},od=96,qd=64,rd=32,sd=0,ud=127,wd=15,xd=16,vd=96,yd=8192,zd=16384;
Ha(function(){for(var a=y(document,"pc8080","video"),b=0;b<a.length;b++){var c=a[b],d=w(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Ea("aspect"));f&&.3<=f&&3.33>=f&&(Ga("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");Da("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new dd(d,e,g,f,c);ja(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Ea("aspect"));f&&.3<=f&&3.33>=f&&(Ga("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");Da("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new dd(d,e,g,f,c);ja(d,c)}});
function Ad(a){q.call(this,"SerialPort",a);this.H=+a.adapter;switch(this.H){case 0:this.I=0;this.O=2;break;default:u("Unrecognized serial adapter #"+this.H);return}this.b=this.c=null;this.L=a.tabSize;this.F=a.charBOL;this.f=0;this.B=!1;this.l=!0;var b=a.binding;if("console"==b)this.c="";else{var c;a=Bd;b&&(void 0===c&&(c="Panel"),(c=ia(c,this.id))&&(b=c.w[b])&&this.S(null,a,b))}this.g="";this.a=this.Ba=this.s=null;this.exports={connect:this.Fb,receiveData:this.mb,receiveStatus:this.yd}}m(Ad,q);
k=Ad.prototype;
k.S=function(a,b,c,d){var e=this;switch(b){case Bd:return this.w[b]=this.b=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;if(8===b||a.ctrlKey&&65<=b&&90>=b)a.preventDefault&&a.preventDefault(),64<b&&(b-=64),Cd(e,b);return!0},c.onkeypress=function(a){a=a||window.event;Cd(e,a.which||a.keyCode);a.preventDefault&&a.preventDefault();return!0},c.removeAttribute("readonly"),!0;default:if(d)return this.w[b]=c,d=d.replace(/\\e/g,String.fromCharCode(27)),c.onclick=function(){e.mb(d);return!0},

View file

@ -592,7 +592,7 @@ function mo(a,b,c,d,e){if(b.Ac<b.wh){e&&!z(a)||x(a,c,d,e,"CRTC."+b.qg[b.Ac]);b.m
var hn={948:Z.prototype.wm,949:Z.prototype.vm,952:Z.prototype.xm,954:Z.prototype.ym},jn={948:Z.prototype.Xn,949:Z.prototype.Wn,952:Z.prototype.Yn},kn={980:Z.prototype.am,981:Z.prototype.$l,984:Z.prototype.bm,985:Z.prototype.Zl,986:Z.prototype.cm},ln={980:Z.prototype.An,981:Z.prototype.zn,984:Z.prototype.Bn,985:Z.prototype.yn},mn={960:Z.prototype.Vl,961:Z.prototype.ml,962:Z.prototype.Im,964:Z.prototype.Gm,965:Z.prototype.Fm,974:Z.prototype.pm,975:Z.prototype.om},nn={954:Z.prototype.Mk,960:Z.prototype.Lk,
961:Z.prototype.Lk,962:Z.prototype.Zn,964:Z.prototype.fo,965:Z.prototype.eo,970:Z.prototype.Sn,972:Z.prototype.Rn,974:Z.prototype.Qn,975:Z.prototype.Pn,986:Z.prototype.Mk},on={963:Z.prototype.Jm,966:Z.prototype.hm,967:Z.prototype.im,969:Z.prototype.gm,970:Z.prototype.Km,972:Z.prototype.Lm},pn={963:Z.prototype.io,966:Z.prototype.Gn,967:Z.prototype.Hn,968:Z.prototype.In,969:Z.prototype.Fn};
Za(function(){for(var a=qb(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=nb(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=Ca().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
function po(a){this.V=a.adapter;switch(this.V){case 1:this.X=956;this.C=7;break;case 2:this.X=888;this.C=7;break;case 3:this.X=632;this.C=5;break;default:w("Unrecognized parallel adapter #"+this.V);return}this.A=this.B=null;db.call(this,"ParallelPort",a,po,4194304);a=a.binding;"console"==a?this.B="":ob(this,a,qo)}gb(po);var qo="buffer";l=po.prototype;l.Pb=function(a,b,c){switch(b){case qo:return this.qa[b]=this.A=c,!0}return!1};
l.Jc=function(a,b,c,d){this.ga=b;this.F=c;this.ha=d;this.N=Gb(a,"ChipSet");nc(b,this,ro,this.X);rc(b,this,so,this.X);ub(this)};l.hc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.gc=function(a){return a?this.save():!0};l.reset=function(){to(this)};l.save=function(){var a=new nf(this),b=0,c=[];c[b++]=this.L;c[b++]=this.Yb;c[b]=this.Df;a.set(0,c);return a.data()};l.restore=function(a){return to(this,a[0])};
function to(a,b){var c=0;b||(b=[0,0,0]);a.L=b[c++];a.Yb=b[c++];a.Df=b[c];return!0}l.jm=function(a,b){var c=this.L;x(this,a,null,b,"DATA",c);return c};l.Hm=function(a,b){var c=this.Yb;x(this,a,null,b,"STAT",c);return c};l.fm=function(a,b){var c=this.Df;x(this,a,null,b,"CTRL",c);return c};

View file

@ -554,7 +554,7 @@ function Fl(a,b,c){if(b.sc<b.vg){b.ab[b.sc]=c;if(12==b.sc||13==b.sc)if(Dl(a,b)&1
var bl={948:Y.prototype.hl,949:Y.prototype.gl,952:Y.prototype.il,954:Y.prototype.jl},cl={948:Y.prototype.zm,949:Y.prototype.ym,952:Y.prototype.Am},dl={980:Y.prototype.Mk,981:Y.prototype.Lk,984:Y.prototype.Nk,985:Y.prototype.Kk,986:Y.prototype.Ok},el={980:Y.prototype.cm,981:Y.prototype.bm,984:Y.prototype.dm,985:Y.prototype.am},fl={960:Y.prototype.Gk,961:Y.prototype.ak,962:Y.prototype.tl,964:Y.prototype.rl,965:Y.prototype.ql,974:Y.prototype.al,975:Y.prototype.$k},gl={954:Y.prototype.Ej,960:Y.prototype.Dj,
961:Y.prototype.Dj,962:Y.prototype.Bm,964:Y.prototype.Hm,965:Y.prototype.Gm,970:Y.prototype.um,972:Y.prototype.tm,974:Y.prototype.sm,975:Y.prototype.rm,986:Y.prototype.Ej},hl={963:Y.prototype.ul,966:Y.prototype.Tk,967:Y.prototype.Uk,969:Y.prototype.Sk,970:Y.prototype.vl,972:Y.prototype.wl},il={963:Y.prototype.Jm,966:Y.prototype.im,967:Y.prototype.jm,968:Y.prototype.km,969:Y.prototype.hm};
Ia(function(){for(var a=Za(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=Wa(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
function Hl(a){this.I=a.adapter;switch(this.I){case 1:this.G=956;this.D=7;break;case 2:this.G=888;this.D=7;break;case 3:this.G=632;this.D=5;break;default:r("Unrecognized parallel adapter #"+this.I);return}this.B=this.C=null;Ma.call(this,"ParallelPort",a,Hl);a=a.binding;"console"==a?this.C="":Xa(this,a,Il)}Pa(Hl);var Il="buffer";l=Hl.prototype;l.zb=function(a,b,c){switch(b){case Il:return this.la[b]=this.B=c,!0}return!1};
l.pc=function(a,b,c,d){this.ia=b;this.A=c;this.Ia=d;this.S=jb(a,"ChipSet");Pb(b,this,Jl,this.G);Rb(b,this,Kl,this.G);t(this)};l.Ub=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Tb=function(a){return a?this.save():!0};l.reset=function(){Ll(this)};l.save=function(){var a=new ae(this),b=0,c=[];c[b++]=this.H;c[b++]=this.Db;c[b]=this.Me;a.set(0,c);return a.data()};l.restore=function(a){return Ll(this,a[0])};
function Ll(a,b){var c=0;b||(b=[0,0,0]);a.H=b[c++];a.Db=b[c++];a.Me=b[c];return!0}l.Vk=function(){return this.H};l.sl=function(){return this.Db};l.Rk=function(){return this.Me};l.lm=function(a,b){this.H=b;this.Db|=64;a=!1;this.B&&(8==b?this.B.value=this.B.value.slice(0,-1):(this.B.value+=String.fromCharCode(b),this.B.scrollTop=this.B.scrollHeight),a=!0);if(null!=this.C){if(10==b||1024<=this.C.length)this.rc(this.C),this.C="";10!=b&&(this.C+=String.fromCharCode(b));a=!0}a&&(this.Db&=-65);Ml(this)};