diff --git a/apps/pcx86/README.md b/apps/pcx86/README.md index 9f89feb6f..5e84b3fae 100644 --- a/apps/pcx86/README.md +++ b/apps/pcx86/README.md @@ -31,6 +31,13 @@ A list of all the software available to PCx86 machines can be found in the [IBM * [Adventures in Math v1.00](1983/adventmath/) * [SuperCalc2 v1.00](/disks/pcx86/apps/other/sc2/1.00/) * [SuperCalc3 v1.00](/disks/pcx86/apps/other/sc3/1.00/) +* [Zork II](/disks/pcx86/games/infocom/zork2/) +* [Zork III](/disks/pcx86/games/infocom/zork3/) +* [Planetfall](/disks/pcx86/games/infocom/planet/) + +### 1984 + +* [The Hitchhiker's Guide to the Galaxy](/disks/pcx86/games/infocom/hhiker/) ### 1985 diff --git a/disks/pcx86/games/infocom/README.md b/disks/pcx86/games/infocom/README.md index d56997540..5fd1eadbe 100644 --- a/disks/pcx86/games/infocom/README.md +++ b/disks/pcx86/games/infocom/README.md @@ -5,10 +5,10 @@ permalink: /disks/pcx86/games/infocom/ --- Infocom Games ---- +------------- * [The Hitchhiker's Guide to the Galaxy](hhiker/) * [Planetfall](planet/) -* [Zork I](zork1/) ([Debugger](zork1/debugger/)) -* [Zork II](zork2/) -* [Zork III](zork3/) +* [Zork I: The Great Underground Empire](zork1/) +* [Zork II: The Wizard of Frobozz](zork2/) +* [Zork III: The Dungeon Master](zork3/) diff --git a/disks/pcx86/games/infocom/hhiker/README.md b/disks/pcx86/games/infocom/hhiker/README.md new file mode 100644 index 000000000..545daea82 --- /dev/null +++ b/disks/pcx86/games/infocom/hhiker/README.md @@ -0,0 +1,27 @@ +--- +layout: page +title: "The Hitchhiker's Guide to the Galaxy (1984)" +permalink: /disks/pcx86/games/infocom/hhiker/ +machines: + - id: ibm5150-hhiker + type: pcx86 + resume: 1 + config: /disks/pcx86/games/infocom/machine.xml + autoMount: + A: + path: /disks/pcx86/games/infocom/hhiker/HHIKER-READONLY.json +--- + +The Hitchhiker's Guide to the Galaxy (1984) +------------------------------------------- + +{% include machine.html id="ibm5150-hhiker" %} + +References +---------- + +[MobyGames](http://www.mobygames.com/game/hitchhikers-guide-to-the-galaxy) + +![Front Cover](http://www.mobygames.com/images/covers/l/25-the-hitchhiker-s-guide-to-the-galaxy-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/77-the-hitchhiker-s-guide-to-the-galaxy-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/hhiker/machine.md b/disks/pcx86/games/infocom/hhiker/machine.md deleted file mode 100644 index 9681d147e..000000000 --- a/disks/pcx86/games/infocom/hhiker/machine.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: page -title: "IBM PC (Model 5150) running The Hitchhiker's Guide to the Galaxy" -permalink: /disks/pcx86/games/infocom/hhiker/ -machines: - - id: ibm5150-hhiker - type: pcx86 - resume: 1 - config: /disks/pcx86/games/infocom/machine.xml - autoMount: - A: - path: /disks/pcx86/games/infocom/hhiker/HHIKER-READONLY.json ---- - -The Hitchhiker's Guide to the Galaxy ------------------------------------- - -{% include machine.html id="ibm5150-hhiker" %} diff --git a/disks/pcx86/games/infocom/planet/machine.md b/disks/pcx86/games/infocom/planet/README.md similarity index 51% rename from disks/pcx86/games/infocom/planet/machine.md rename to disks/pcx86/games/infocom/planet/README.md index d4ae0eb54..598fe61e2 100644 --- a/disks/pcx86/games/infocom/planet/machine.md +++ b/disks/pcx86/games/infocom/planet/README.md @@ -1,6 +1,6 @@ --- layout: page -title: "IBM PC (Model 5150) running Planetfall" +title: "Planetfall (1983)" permalink: /disks/pcx86/games/infocom/planet/ machines: - id: ibm5150-planet @@ -12,7 +12,16 @@ machines: path: /disks/pcx86/games/infocom/planet/PLANET-READONLY.json --- -Planetfall ----------- +Planetfall (1983) +----------------- {% include machine.html id="ibm5150-planet" %} + +References +---------- + +[MobyGames](http://www.mobygames.com/game/planetfall) + +![Front Cover](http://www.mobygames.com/images/covers/l/1657-planetfall-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/1658-planetfall-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/zork1/README.md b/disks/pcx86/games/infocom/zork1/README.md new file mode 100644 index 000000000..66f973112 --- /dev/null +++ b/disks/pcx86/games/infocom/zork1/README.md @@ -0,0 +1,32 @@ +--- +layout: page +title: "Zork I: The Great Underground Empire" +permalink: /disks/pcx86/games/infocom/zork1/ +redirect_from: + - /disks/pc/games/infocom/zork1/ +machines: + - id: ibm5150-zork1 + type: pcx86 + resume: 1 + config: /disks/pcx86/games/infocom/machine.xml +--- + +Zork I: The Great Underground Empire +------------------------------------ + +{% include machine.html id="ibm5150-zork1" %} + +Related +------- + +* [Zork II: The Wizard of Frobozz](../zork2/) +* [Zork III: The Dungeon Master](../zork3/) + +References +---------- + +[MobyGames](http://www.mobygames.com/game/zork-the-great-underground-empire) + +![Front Cover](http://www.mobygames.com/images/covers/l/2934-zork-the-great-underground-empire-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/1742-zork-the-great-underground-empire-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/zork1/debugger/README.md b/disks/pcx86/games/infocom/zork1/debugger/README.md new file mode 100644 index 000000000..83c32d561 --- /dev/null +++ b/disks/pcx86/games/infocom/zork1/debugger/README.md @@ -0,0 +1,23 @@ +--- +layout: page +title: "Zork I: The Great Underground Empire (with Debugger)" +permalink: /disks/pcx86/games/infocom/zork1/debugger/ +machines: + - id: ibm5150-zork1 + type: pcx86 + debugger:true +--- + +Zork I: The Great Underground Empire +------------------------------------ + +{% include machine.html id="ibm5150-zork1" %} + +References +---------- + +[MobyGames](http://www.mobygames.com/game/zork-the-great-underground-empire) + +![Front Cover](http://www.mobygames.com/images/covers/l/2934-zork-the-great-underground-empire-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/1742-zork-the-great-underground-empire-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/zork1/debugger/machine.md b/disks/pcx86/games/infocom/zork1/debugger/machine.md deleted file mode 100644 index c5fce32f2..000000000 --- a/disks/pcx86/games/infocom/zork1/debugger/machine.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: page -title: "IBM PC (Model 5150) running Zork I with Debugger" -permalink: /disks/pcx86/games/infocom/zork1/debugger/ -machines: - - id: ibm5150-zork1 - type: pcx86 - debugger: true ---- - -Zork I ---- - -{% include machine.html id="ibm5150-zork1" %} diff --git a/disks/pcx86/games/infocom/zork1/machine.md b/disks/pcx86/games/infocom/zork1/machine.md deleted file mode 100644 index 195c509cc..000000000 --- a/disks/pcx86/games/infocom/zork1/machine.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -layout: page -title: "IBM PC (Model 5150) running Zork I" -permalink: /disks/pcx86/games/infocom/zork1/ -redirect_from: - - /disks/pc/games/infocom/zork1/ -machines: - - id: ibm5150-zork1 - type: pcx86 - resume: 1 - config: /disks/pcx86/games/infocom/machine.xml ---- - -Zork I ------- - -{% include machine.html id="ibm5150-zork1" %} diff --git a/disks/pcx86/games/infocom/zork2/README.md b/disks/pcx86/games/infocom/zork2/README.md new file mode 100644 index 000000000..6e6a434d3 --- /dev/null +++ b/disks/pcx86/games/infocom/zork2/README.md @@ -0,0 +1,33 @@ +--- +layout: page +title: "Zork II: The Wizard of Frobozz" +permalink: /disks/pcx86/games/infocom/zork2/ +machines: + - id: ibm5150-zork2 + type: pcx86 + resume: 1 + config: /disks/pcx86/games/infocom/machine.xml + autoMount: + A: + path: /disks/pcx86/games/infocom/zork2/ZORK2-READONLY.json +--- + +Zork II: The Wizard of Frobozz +------------------------------ + +{% include machine.html id="ibm5150-zork2" %} + +Related +------- + +* [Zork I: The Great Underground Empire](../zork1/) +* [Zork III: The Dungeon Master](../zork3/) + +References +---------- + +[MobyGames](http://www.mobygames.com/game/zork-ii-the-wizard-of-frobozz) + +![Front Cover](http://www.mobygames.com/images/covers/l/2877-zork-ii-the-wizard-of-frobozz-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/2878-zork-ii-the-wizard-of-frobozz-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/zork2/machine.md b/disks/pcx86/games/infocom/zork2/machine.md deleted file mode 100644 index da48bfcef..000000000 --- a/disks/pcx86/games/infocom/zork2/machine.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: page -title: "IBM PC (Model 5150) running Zork II" -permalink: /disks/pcx86/games/infocom/zork2/ -machines: - - id: ibm5150-zork2 - type: pcx86 - resume: 1 - config: /disks/pcx86/games/infocom/machine.xml - autoMount: - A: - path: /disks/pcx86/games/infocom/zork2/ZORK2-READONLY.json ---- - -Zork II -------- - -{% include machine.html id="ibm5150-zork2" %} diff --git a/disks/pcx86/games/infocom/zork3/README.md b/disks/pcx86/games/infocom/zork3/README.md new file mode 100644 index 000000000..35aabddfe --- /dev/null +++ b/disks/pcx86/games/infocom/zork3/README.md @@ -0,0 +1,33 @@ +--- +layout: page +title: "Zork III: The Dungeon Master" +permalink: /disks/pcx86/games/infocom/zork3/ +machines: + - id: ibm5150-zork3 + type: pcx86 + resume: 1 + config: /disks/pcx86/games/infocom/machine.xml + autoMount: + A: + path: /disks/pcx86/games/infocom/zork3/ZORK3-READONLY.json +--- + +Zork III: The Dungeon Master +---------------------------- + +{% include machine.html id="ibm5150-zork3" %} + +Related +------- + +* [Zork I: The Great Underground Empire](../zork1/) +* [Zork II: The Wizard of Frobozz](../zork2/) + +References +---------- + +[MobyGames](http://www.mobygames.com/game/zork-iii-the-dungeon-master) + +![Front Cover](http://www.mobygames.com/images/covers/l/2879-zork-iii-the-dungeon-master-dos-front-cover.jpg) + +![Back Cover](http://www.mobygames.com/images/covers/l/2880-zork-iii-the-dungeon-master-dos-back-cover.jpg) diff --git a/disks/pcx86/games/infocom/zork3/machine.md b/disks/pcx86/games/infocom/zork3/machine.md deleted file mode 100644 index 12dd18593..000000000 --- a/disks/pcx86/games/infocom/zork3/machine.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: page -title: "IBM PC (Model 5150) running Zork III" -permalink: /disks/pcx86/games/infocom/zork3/ -machines: - - id: ibm5150-zork3 - type: pcx86 - resume: 1 - config: /disks/pcx86/games/infocom/machine.xml - autoMount: - A: - path: /disks/pcx86/games/infocom/zork3/ZORK3-READONLY.json ---- - -Zork III --------- - -{% include machine.html id="ibm5150-zork3" %} diff --git a/versions/c1pjs/1.35.1/c1p-dbg.js b/versions/c1pjs/1.35.1/c1p-dbg.js index b53807d2e..5038ecb9d 100644 --- a/versions/c1pjs/1.35.1/c1p-dbg.js +++ b/versions/c1pjs/1.35.1/c1p-dbg.js @@ -27,7 +27,7 @@ function ha(a){var b=a,c=a.lastIndexOf("/");0<=c&&(b=a.substr(c+1));c=b.indexOf( function w(a,b){var c=!0,c=void 0===c?!1:c,d=0,e=null;if("object"==typeof resources&&(e=resources[a]))b&&b(a,e,d);else if(c&&"function"==typeof resources)resources(a,function(c,d){b&&b(a,c,d)});else{var g=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");c&&(g.onreadystatechange=function(){4===g.readyState&&(e=g.responseText,200==g.status||!g.status&&e.length&&"file:"==(window?window.location.protocol:"file:")||(d=g.status||-1),b&&b(a,e,d))});g.open("GET", a,c);g.send();c||(e=g.responseText,200!=g.status&&(d=g.status||-1),b&&b(a,e,d))}}function x(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1}function ma(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0a?this.fb=this.id:(this.nb=this.id.substr(0,a),this.fb=this.id.substr(a+1));this.C={ready:!1,Ga:!1,bb:!1,N:!1,Pe:!1,error:!1};this.eb=null;this.C.error=!1;this.ma=c||0;this.u=this.s=this.U=this.Sa=null;D.push(this)}function A(a){window&&window.alert(a)} function va(a,b){if(void 0!==a){var c;b&&0<(c=b.indexOf("."))&&(a=b.substr(0,c+1)+a);for(c=0;c=b?4:4294967295>=b?8:9);c= function ga(a){var b=a,c=a.lastIndexOf("/");0<=c&&(b=a.substr(c+1));c=b.indexOf("&");0"']/g,function(a){return ja[a]})}var ja={"&":"&","<":"<",">":">",'"':""","'":"'"},ka=Date.now||function(){return+new Date}; function v(a,b){var c=!0,c=void 0===c?!1:c,d=0,f=null;if("object"==typeof resources&&(f=resources[a]))b&&b(a,f,d);else if(c&&"function"==typeof resources)resources(a,function(c,d){b&&b(a,c,d)});else{var g=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");c&&(g.onreadystatechange=function(){4===g.readyState&&(f=g.responseText,200==g.status||!g.status&&f.length&&"file:"==(window?window.location.protocol:"file:")||(d=g.status||-1),b&&b(a,f,d))});g.open("GET", a,c);g.send();c||(f=g.responseText,200!=g.status&&(d=g.status||-1),b&&b(a,f,d))}}function w(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1}function la(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function x(a){y.init.push(a)} -function z(a){if(A)try{for(var b=0;ba?this.va=this.id:(this.Ba=this.id.substr(0,a),this.va=this.id.substr(a+1));this.u={ready:!1,ra:!1,wa:!1,I:!1,ce:!1,error:!1};this.ua=null;this.u.error=!1;this.G=this.J=this.sa=null;F.push(this)}function B(a){window&&window.alert(a)} function G(a,b){if(void 0!==a){var c;b&&0<(c=b.indexOf("."))&&(a=b.substr(0,c+1)+a);for(c=0;ca?this.cb=this.id:(this.eb=this.id.substr(0,a),this.cb=this.id.substr(a+1));this.F={ready:!1,mb:!1,Ib:!1,ja:!1,Rb:!1,error:!1};this.zb=null;this.F.error=!1;this.ha=c||0;this.K=this.w=this.I=this.R=this.ua=null;fb.push(this)} +Ta(Oa("iOS")?"onpagehide":Oa("Opera")?"onunload":"onbeforeunload",function(){Wa(Va.exit)});function t(a,b,c){this.type=a;b||(b={id:"",name:""});this.id=b.id||"";this.name=b.name;this.wc=b.comment;this.Bd=b;this.exports={};this.P=this.bindings={};a=this.id.indexOf(".");0>a?this.cb=this.id:(this.eb=this.id.substr(0,a),this.cb=this.id.substr(a+1));this.F={ready:!1,mb:!1,Ib:!1,ja:!1,Rb:!1,error:!1};this.zb=null;this.F.error=!1;this.ha=c||0;this.K=this.w=this.I=this.R=this.ua=null;fb.push(this)} function gb(a,b,c){hb[a]&&b&&(hb[a][b]=c)}function ib(){return Date.now()||+new Date}function Ya(a,b,c){b||r((c?c+": ":"")+a)}function r(a){window&&window.alert(a)}function jb(a){var b=!1;window&&(b=window.confirm(a));return b}function kb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;bni){if(pi(d,this.G)){this.u=new td(this,"1.35.1",yi);pi(this.u)&&(zi(this,d),a=Ai,Bi(this.u));this.u.set(vi,Da());Ci(this.u);var e=this.b&&!this.C;if(a==wi||jb("Click OK to restore the previous PC8080 machine state, or CANCEL to reset the machine.")){if(c=ui(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?pi(d,g):("error"==f&&"no machine state"!= g?(this.aa("Error: "+g),"unable to verify user"==g&&(La(Di,""),this.g=null)):this.i(f+": "+g),Bi(d),pi(d)?(c=ui(d),e=!0):c=!1))}e&&si(this,c?d:null)}else a==Ai&&d.clear()}else si(this);delete this.G;delete this.H}e=kb(this.id);for(f=0;fa[1];a=a[2];this.V=!0;this.F.ja=!0;var d=this.P.power;d&&(d.textContent="Shutdown");this.w&&(Ei(this,this.w,b,c,a),this.w.lb());this.N&&(zi(this,b),b.clear());!c&&this.u&&(this.u.clear(),delete this.u);this.j=0}; function zi(a,b){if(jb("There may be a problem with your PC8080 machine.\n\nTo help us diagnose it, click OK to send this PC8080 machine state to http://www.pcjs.org.")){var c=a.g||"";b=b.toString();var d={app:"PC8080",ver:"1.35.1"};d.url=a.U;d.user=c;d.type="bug";d.data=b;Fa("http://www.pcjs.org/api/v1/report",d,!0)}} function ei(a,b,c){var d,e="none";if(a.j)return null;a.j--;var f=new td(a,"1.35.1"),g=new td(a,"1.35.1",ti),h=Da();g.set(vi,h);f.set(vi,h);f.set(Fi,"1.35.1");f.set(Gi,window?window.location.href:null);f.set(Hi,Ha());a.w&&a.w.va&&(c&&a.w.ea(),d=a.w.va(b,c),"object"===typeof d&&f.set(a.w.id,d),c&&(a.w.F.ja=!1,!1===d&&(e=null)));for(var h=kb(a.id),k=0;ka?this.Ya=this.id:(this.Ka=this.id.substr(0,a),this.Ya=this.id.substr(a+1));this.i={ready:!1,ab:!1,nb:!1,V:!1,rb:!1,error:!1};this.eb=null;this.i.error=!1;this.J=this.m=this.u=this.D=this.pa=null;u.push(this)} +Ea(Ba("iOS")?"onpagehide":Ba("Opera")?"onunload":"onbeforeunload",function(){Ha(Ga.exit)});function t(a,b){this.type=a;b||(b={id:"",name:""});this.id=b.id||"";this.name=b.name;this.Ub=b.comment;this.Vc=b;this.exports={};this.w=this.bindings={};a=this.id.indexOf(".");0>a?this.Ya=this.id:(this.Ka=this.id.substr(0,a),this.Ya=this.id.substr(a+1));this.i={ready:!1,ab:!1,nb:!1,V:!1,rb:!1,error:!1};this.eb=null;this.i.error=!1;this.J=this.m=this.u=this.D=this.pa=null;u.push(this)} function Oa(a,b,c){Pa[a]&&b&&(Pa[a][b]=c)}function Qa(){return Date.now()||+new Date}function Ja(a,b,c){b||r((c?c+": ":"")+a)}function r(a){window&&window.alert(a)}function Ra(a){var b=!1;window&&(b=window.confirm(a));return b}function Sa(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ble){if(ne(d,this.o)){this.f=new E(this,"1.35.1",we);ne(this.f)&&(xe(this,d),a=ye,ze(this.f));this.f.set(te,ta());Ae(this.f);var e=this.a&&!this.j;if(a==ue||Ra("Click OK to restore the previous PC8080 machine state, or CANCEL to reset the machine.")){if(c=se(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?ne(d,g):("error"==f&&"no machine state"!= g?(this.G("Error: "+g),"unable to verify user"==g&&(Aa(Be,""),this.b=null)):this.aa(f+": "+g),ze(d),ne(d)?(c=se(d),e=!0):c=!1))}e&&qe(this,c?d:null)}else a==ye&&d.clear()}else qe(this);delete this.o;delete this.s}e=Sa(this.id);for(f=0;fa[1];a=a[2];this.N=!0;this.i.V=!0;var d=this.w.power;d&&(d.textContent="Shutdown");this.m&&(Ce(this,this.m,b,c,a),this.m.Sa());this.B&&(xe(this,b),b.clear());!c&&this.f&&(this.f.clear(),delete this.f);this.c=0}; function xe(a,b){if(Ra("There may be a problem with your PC8080 machine.\n\nTo help us diagnose it, click OK to send this PC8080 machine state to http://www.pcjs.org.")){var c=a.b||"";b=b.toString();var d={app:"PC8080",ver:"1.35.1"};d.url=a.I;d.user=c;d.type="bug";d.data=b;ua("http://www.pcjs.org/api/v1/report",d,!0)}} function De(a,b,c){var d,e="none";if(a.c)return null;a.c--;var f=new E(a,"1.35.1"),g=new E(a,"1.35.1",re),h=ta();g.set(te,h);f.set(te,h);f.set(Ee,"1.35.1");f.set(Fe,window?window.location.href:null);f.set(Ge,window?window.navigator.userAgent:"");a.m&&a.m.ba&&(c&&Rb(a.m),d=a.m.ba(b,c),"object"===typeof d&&f.set(a.m.id,d),c&&(a.m.i.V=!1,!1===d&&(e=null)));for(var h=Sa(a.id),m=0;ma?this.ce=this.id:(this.ye=this.id.substr(0,a),this.ce=this.id.substr(a+1));this.da={ready:!1,qf:!1,bh:!1,Yb:!1,Tf:!1,error:!1};this.rg=null;this.da.error=!1;this.ic=c||0;this.ba=this.H=this.ka=this.pa=this.Je=null;qb.push(this)} -function sb(a,b,c){tb[a]&&b&&(tb[a][b]=c)}function kb(a){window&&window.alert(a)}function ub(a){var b=!1;window&&(b=window.confirm(a));return b}function vb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.ce=this.id:(this.ye=this.id.substr(0,a),this.ce=this.id.substr(a+1));this.da={ready:!1,qf:!1,bh:!1,Yb:!1,Tf:!1,error:!1};this.rg=null;this.da.error=!1;this.ic=c||0;this.ba=this.H=this.ka=this.pa=this.Je=null;qb.push(this)}function sb(a,b,c){tb[a]&&b&&(tb[a][b]=c)}function kb(a){window&&window.alert(a)} +function ub(a){var b=!1;window&&(b=window.confirm(a));return b}function vb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.Ud=this.id:(this.Wd=this.id.substr(0,a),this.Ud=this.id.substr(a+1));this.aa={ready:!1,yf:!1,ng:!1,Pb:!1,hf:!1,error:!1};this.Hf=null;this.aa.error=!1;this.Ea=this.U=this.ma=this.oa=this.Ef=null;Xa.push(this)}function Ya(a,b,c){Za[a]&&b&&(Za[a][b]=c)}function r(a){window&&window.alert(a)} function ab(a){var b=!1;window&&(b=window.confirm(a));return b}function bb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.ab=this.id:(this.bb=this.id.substr(0,a),this.ab=this.id.substr(a+1));this.A={ready:!1,Va:!1,qb:!1,ba:!1,wb:!1,error:!1};this.fb=null;this.A.error=!1;this.ca=c||0;this.D=this.v=this.G=this.H=this.za=null;hb.push(this)}function ib(a,b,c){jb[a]&&b&&(jb[a][b]=c)}function pb(){return Date.now()||+new Date} -function r(a){window&&window.alert(a)}function qb(a){var b=!1;window&&(b=window.confirm(a));return b}function rb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.ab=this.id:(this.bb=this.id.substr(0,a),this.ab=this.id.substr(a+1));this.A={ready:!1,Va:!1,qb:!1,ba:!1,wb:!1,error:!1};this.fb=null;this.A.error=!1;this.ca=c||0;this.D=this.v=this.G=this.H=this.za=null;hb.push(this)} +function ib(a,b,c){jb[a]&&b&&(jb[a][b]=c)}function pb(){return Date.now()||+new Date}function r(a){window&&window.alert(a)}function qb(a){var b=!1;window&&(b=window.confirm(a));return b}function rb(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;b>8&255,d.I[f++]=e[c]>>16&255,d.I[f++]=e[c]>>24&255;else(e function pa(){return"http://"+(window?window.location.host:"www.pcjs.org")}function va(){if(null==wa){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}wa=a}return wa}function xa(a){var b;if(window)try{b=window.localStorage.getItem(a)}catch(c){}return b} function ya(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1}function za(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1} function Aa(a){if(!Ba){var b,c={};if(window){b||(b=window.location.search.substr(1));for(var d,e=/\+/g,f=/([^&=]+)=?([^&]*)/g;d=f.exec(b);)c[decodeURIComponent(d[1].replace(e," "))]=decodeURIComponent(d[2].replace(e," "))}Ba=c}return Ba[a]||Ba[a.toLowerCase()]}function Ca(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function Da(a){r.init.push(a)} -function Fa(a){if(Ga)try{for(var b=0;ba?this.va=this.id:(this.wa=this.id.substr(0,a),this.va=this.id.substr(a+1));this.h={ready:!1,Ba:!1,Oa:!1,F:!1,Sa:!1,error:!1};this.Da=null;this.h.error=!1;this.w=this.j=this.s=this.v=this.ga=null;v.push(this)}function La(a,b,c){Ma[a]&&b&&(Ma[a][b]=c)}function Na(){return Date.now()||+new Date} -function q(a){window&&window.alert(a)}function Oa(a){var b=!1;window&&(b=window.confirm(a));return b}function w(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.va=this.id:(this.wa=this.id.substr(0,a),this.va=this.id.substr(a+1));this.h={ready:!1,Ba:!1,Oa:!1,F:!1,Sa:!1,error:!1};this.Da=null;this.h.error=!1;this.w=this.j=this.s=this.v=this.ga=null;v.push(this)} +function La(a,b,c){Ma[a]&&b&&(Ma[a][b]=c)}function Na(){return Date.now()||+new Date}function q(a){window&&window.alert(a)}function Oa(a){var b=!1;window&&(b=window.confirm(a));return b}function w(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.Mb=this.id:(this.vb=this.id.substr(0,a),this.Mb=this.id.substr(a+1));this.A={ready:!1,eb:!1,xd:!1,ca:!1,Jd:!1,error:!1};this.Oc=null;this.A.error=!1;this.ja=c||0;this.D=this.f=this.F=this.J=this.Ua=null;db.push(this)}function eb(a,b,c){fb[a]&&b&&(fb[a][b]=c)}function gb(){return Date.now()||+new Date} -function w(a){window&&window.alert(a)}function hb(a){var b=!1;window&&(b=window.confirm(a));return b}function ib(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.Mb=this.id:(this.vb=this.id.substr(0,a),this.Mb=this.id.substr(a+1));this.A={ready:!1,eb:!1,xd:!1,ca:!1,Jd:!1,error:!1};this.Oc=null;this.A.error=!1;this.ja=c||0;this.D=this.f=this.F=this.J=this.Ua=null;db.push(this)} +function eb(a,b,c){fb[a]&&b&&(fb[a][b]=c)}function gb(){return Date.now()||+new Date}function w(a){window&&window.alert(a)}function hb(a){var b=!1;window&&(b=window.confirm(a));return b}function ib(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;bZk){if($k(d,this.G)){this.u=new G(this,"1.35.1",hl);$k(this.u)&&(il(this,d),a=jl,kl(this.u));this.u.set(el,Da());ll(this.u);var e=this.b&&!this.C;if(a==fl||hb("Click OK to restore the previous "+Hb+" machine state, or CANCEL to reset the machine.")){if(c=dl(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?$k(d,g):("error"==f&&"no machine state"!= g?(this.T("Error: "+g),"unable to verify user"==g&&(La(ml,""),this.g=null)):this.v(f+": "+g),kl(d),$k(d)?(c=dl(d),e=!0):c=!1))}e&&bl(this,c?d:null)}else a==jl&&d.clear()}else bl(this);delete this.G;delete this.B}e=ib(this.id);for(f=0;fa[1];a=a[2];this.P=!0;this.A.ca=!0;var d=this.H.power;d&&(d.textContent="Shutdown");this.f&&(nl(this,this.f,b,c,a),H(this,-2),this.f.ra());this.N&&(il(this,b),b.clear());!c&&this.u&&(this.u.clear(),delete this.u);this.j=0}; function il(a,b){if(hb("There may be a problem with your "+Hb+" machine.\n\nTo help us diagnose it, click OK to send this "+Hb+" machine state to http://www.pcjs.org.")){var c=a.U;a=a.g||"";b=b.toString();var d={};d.app=Hb;d.ver="1.35.1";d.url=c;d.user=a;d.type="bug";d.data=b;Ea("http://www.pcjs.org/api/v1/report",d,!0)}} function Tk(a,b,c){var d,e="none";if(a.j)return null;a.j--;var f=new G(a,"1.35.1"),g=new G(a,"1.35.1",cl),k=Da();g.set(el,k);f.set(el,k);f.set(ol,"1.35.1");f.set(pl,window?window.location.href:null);f.set(ql,window?window.navigator.userAgent:"");a.f&&a.f.Ca&&(c&&(b&&(a.f.A.ra=a.f.A.V),a.f.da()),d=a.f.Ca(b,c),"object"===typeof d&&f.set(a.f.id,d),c&&(a.f.A.ca=!1,!1===d&&(e=null)));for(var k=ib(a.id),l=0;l>8&255,d.L[f++]=e[c]>>16&255,d.L[f++]=e[c]>>24&255;else(e function Ba(){return"http://"+(window?window.location.host:"www.pcjs.org")}function Ca(){if(null==Da){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}Da=a}return Da}function Ea(a){var b;if(window)try{b=window.localStorage.getItem(a)}catch(c){}return b} function Fa(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1}function Ga(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&!!b.match(/(iPod|iPhone|iPad)/)&&!!b.match(/AppleWebKit/)||"MSIE"==a&&!!b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)}return!1} function Ha(a){if(!Ia){var b,c={};if(window){b||(b=window.location.search.substr(1));for(var d,e=/\+/g,f=/([^&=]+)=?([^&]*)/g;d=f.exec(b);)c[decodeURIComponent(d[1].replace(e," "))]=decodeURIComponent(d[2].replace(e," "))}Ia=c}return Ia[a]||Ia[a.toLowerCase()]}function Ja(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function Ka(a){La.init.push(a)} -function Ma(a){if(Na)try{for(var b=0;ba?this.ib=this.id:(this.Ua=this.id.substr(0,a),this.ib=this.id.substr(a+1));this.j={ready:!1,Ra:!1,Yc:!1,R:!1,gd:!1,error:!1};this.ic=null;this.j.error=!1;this.qd=c||0;this.D=this.c=this.v=this.A=this.ob=null;u.push(this)}function Sa(a,b,c){Ua[a]&&b&&(Ua[a][b]=c)}function Va(){return Date.now()||+new Date} -function r(a){window&&window.alert(a)}function Wa(a){var b=!1;window&&(b=window.confirm(a));return b}function Xa(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;ba?this.ib=this.id:(this.Ua=this.id.substr(0,a),this.ib=this.id.substr(a+1));this.j={ready:!1,Ra:!1,Yc:!1,R:!1,gd:!1,error:!1};this.ic=null;this.j.error=!1;this.qd=c||0;this.D=this.c=this.v=this.A=this.ob=null;u.push(this)} +function Sa(a,b,c){Ua[a]&&b&&(Ua[a][b]=c)}function Va(){return Date.now()||+new Date}function r(a){window&&window.alert(a)}function Wa(a){var b=!1;window&&(b=window.confirm(a));return b}function Xa(a){var b,c=[];a&&(a=0<(b=a.indexOf("."))?a.substr(0,b+1):"");for(b=0;bgh){if(hh(d,this.s)){this.h=new E(this,"1.35.1",rh);hh(this.h)&&(sh(this,d),a=th,uh(this.h));this.h.set(mh,ya());vh(this.h);var e=this.a&&!this.m;if(a==nh||Wa("Click OK to restore the previous "+hb+" machine state, or CANCEL to reset the machine.")){if(c=lh(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?hh(d,g):("error"==f&&"no machine state"!= g?(this.G("Error: "+g),"unable to verify user"==g&&(Fa(wh,""),this.b=null)):this.aa(f+": "+g),uh(d),hh(d)?(c=lh(d),e=!0):c=!1))}e&&jh(this,c?d:null)}else a==th&&d.clear()}else jh(this);delete this.s;delete this.l}e=Xa(this.id);for(f=0;fa[1];a=a[2];this.H=!0;this.j.R=!0;var d=this.o.power;d&&(d.textContent="Shutdown");this.c&&(xh(this,this.c,b,c,a),Lb(this,-2),this.c.Y());this.C&&(sh(this,b),b.clear());!c&&this.h&&(this.h.clear(),delete this.h);this.g=0}; function sh(a,b){if(Wa("There may be a problem with your "+hb+" machine.\n\nTo help us diagnose it, click OK to send this "+hb+" machine state to http://www.pcjs.org.")){var c=a.K;a=a.b||"";b=b.toString();var d={};d.app=hb;d.ver="1.35.1";d.url=c;d.user=a;d.type="bug";d.data=b;za("http://www.pcjs.org/api/v1/report",d,!0)}} function yh(a,b,c){var d,e="none";if(a.g)return null;a.g--;var f=new E(a,"1.35.1"),g=new E(a,"1.35.1",kh),k=ya();g.set(mh,k);f.set(mh,k);f.set(zh,"1.35.1");f.set(Ah,window?window.location.href:null);f.set(Bh,window?window.navigator.userAgent:"");a.c&&a.c.ka&&(c&&(b&&(a.c.j.Y=a.c.j.N),G(a.c)),d=a.c.ka(b,c),"object"===typeof d&&f.set(a.c.id,d),c&&(a.c.j.R=!1,!1===d&&(e=null)));for(var k=Xa(a.id),l=0;l