More scripting fixes

This commit is contained in:
Jeff Parsons 2017-02-06 17:46:42 -08:00 committed by Jeff Parsons
commit c8f32d84f5
10 changed files with 10 additions and 10 deletions

View file

@ -878,7 +878,7 @@ function cC(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function dC(a,b,c,d){function e(a){if(void 0===h){var b=g&&pb(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=oa(a))}function f(a){e("Error: "+a);k&&(--$B||Xa(!0));k=!1}var g,h,k=!0;$B++;gb[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var p=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css";x.styleSheet?x.styleSheet.cssText=m:x.appendChild(document.createTextNode(m));p.appendChild(x)}c||
(c="/versions/pcx86/1.34.0/components.xsl");m=function(d,h){h?aC(c,null,null,!1,e,function(d,k){k?(eb(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=h.transformNode(k))?(g.outerHTML=k,--$B||Xa(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(k),(k=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--$B||Xa(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?aC(b,a,d,!0,e,m):bC(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(u){f(u.message)}return k}function eC(a,b,c,d){Xa(!1);return dC(a,b,c,d)}window.embedPC=eC;window.embedPCx86=eC;window.findMachineComponent=function(a,b){return lb(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);qb(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Xa;window.sendEvent=Za;
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);qb(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Xa;window.sendEvent=Za;
function fC(a,b,c,d){if(!c&&b){d.push(b);a=gb[d[0]];b=null;for(var e in a)if(na(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?Ca(b,null,!0,function(a,b){gC(b,d)}):gC(null,d)}else Wa("Error ("+c+") requesting "+a)}
function gC(a,b){var c,d,e,f=b[0],g=b[1];c=b[4];c=c.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);\s*)$/);var h=gb[f],k={},m;for(m in h){var p=h[m],x=ma(m);if("xml"==x){for(x=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;d=x.exec(h[m]);){var u=d[2];u&&(h[u]||(p=p.replace(d[0],"")))}d=m=la(m)}else"xsl"==x&&(e=m=la(m));k[m]=p}a&&(k[m="css"]=a);b[2]&&(k[m="parms"]=b[2]);b[3]&&(k[m="state"]=b[3]);d&&e?(a=JSON.stringify(k),g+=".js",c=c[1]+"var resources="+a+";"+c[2]+c[3],c=c.replace(/\u00A9/g,
"&#xA9;"),a=Ma(c,"javascript",!1,g),a=a+(', copy it to your web server as "'+g+'", and then add the following to your web page:\n\n')+('<div id="'+f+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+g+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+f+'","'+d+'","'+e+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",Wa(a)):Wa("Missing XML/XSL resources")}

View file

@ -687,7 +687,7 @@ function cv(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function dv(a,b,c,d){function e(a){if(void 0===h){var b=g&&Wa(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=ka(a))}function f(a){e("Error: "+a);l&&(--$u||Ia(!0));l=!1}var g,h,l=!0;$u++;Oa[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var q=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.type="text/css";y.styleSheet?y.styleSheet.cssText=m:y.appendChild(document.createTextNode(m));q.appendChild(y)}c||
(c="/versions/pcx86/1.34.0/components.xsl");m=function(d,h){h?av(c,null,null,!1,e,function(d,l){l?(Na(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(l=h.transformNode(l))?(g.outerHTML=l,--$u||Ia(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(l),(l=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(l,g),--$u||Ia(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?av(b,a,d,!0,e,m):bv(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(w){f(w.message)}return l}function ev(a,b,c,d){Ia(!1);return dv(a,b,c,d)}window.embedPC=ev;window.embedPCx86=ev;window.findMachineComponent=function(a,b){return Sa(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);Xa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Ia;window.sendEvent=Ka;
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);Xa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Ia;window.sendEvent=Ka;
function fv(a,b,c,d){if(!c&&b){d.push(b);a=Oa[d[0]];b=null;for(var e in a)if(ja(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?ta(b,null,!0,function(a,b){gv(b,d)}):gv(null,d)}else r("Error ("+c+") requesting "+a)}
function gv(a,b){var c,d,e,f=b[0],g=b[1];c=b[4];c=c.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);\s*)$/);var h=Oa[f],l={},m;for(m in h){var q=h[m],y=ia(m);if("xml"==y){for(y=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;d=y.exec(h[m]);){var w=d[2];w&&(h[w]||(q=q.replace(d[0],"")))}d=m=ha(m)}else"xsl"==y&&(e=m=ha(m));l[m]=q}a&&(l[m="css"]=a);b[2]&&(l[m="parms"]=b[2]);b[3]&&(l[m="state"]=b[3]);d&&e?(a=JSON.stringify(l),g+=".js",c=c[1]+"var resources="+a+";"+c[2]+c[3],c=c.replace(/\u00A9/g,
"&#xA9;"),a=Ca(c,"javascript",!1,g),a=a+(', copy it to your web server as "'+g+'", and then add the following to your web page:\n\n')+('<div id="'+f+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+g+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+f+'","'+d+'","'+e+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",r(a)):r("Missing XML/XSL resources")}

View file

@ -189,4 +189,4 @@ a=a.replace(d[0],h);Jb(a,b,c)}})}else c(a,null)}
function Kb(a,b,c){function d(a){if(void 0===h){var b=g&&F(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=ca(a))}function e(a){d("Error: "+a);l&&(--Fb||z(!0));l=!1}var g,h,l=!0;Fb++;K[a]={};try{if(g=document.getElementById(a)){var k;if("object"==typeof resources&&(k=resources.css)){var m=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css";n.styleSheet?n.styleSheet.cssText=k:n.appendChild(document.createTextNode(k));m.appendChild(n)}c||(c=
"/versions/c1pjs/1.34.0/components.xsl");k=function(h,l){l?Gb(c,null,null,!1,d,function(h,k){k?(K[a]&&c&&(K[a][c]=h),d("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=l.transformNode(k))?(g.outerHTML=k,--Fb||z(!0)):e("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(h=new XSLTProcessor,h.importStylesheet(k),(k=h.transformToFragment(l,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--Fb||z(!0)):e("invalid machine element: "+
a):e("transformToFragment failed")):e("unable to transform XML: unsupported browser")):e(h)}):e(h)};"<"!=b.charAt(0)?Gb(b,a,void 0,!0,d,k):Ib(b,null,a,void 0,!1,d,k)}else e("missing machine element: "+a)}catch(E){e(E.message)}return l}window.embedC1P=function(a,b,c){z(!1);return Kb(a,b,c)};window.findMachineComponent=function(a,b){return pa(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],g=[],h="",l=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)l&&m!=l?h+=m:(l?l=null:l=m,h&&(g.push(h),h=""));else{if(!l){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){h&&(g.push(h),h="");";"==m&&g.length&&(e.push(g),g=[]);continue}}h+=m}}g.length&&e.push(g);qa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=z;window.sendEvent=la;})();
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],g=[],h="",l=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)l&&m!=l?h+=m:(l?l=null:l=m,h&&(g.push(h),h=""));else{if(!l){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){h&&(g.push(h),h="");";"==m&&g.length&&(e.push(g),g=[]);continue}}h+=m}}h&&g.push(h);g.length&&e.push(g);qa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=z;window.sendEvent=la;})();

View file

@ -151,4 +151,4 @@ a=a.replace(d[0],h);ib(a,b,c)}})}else c(a,null)}
function kb(a,b,c){function d(a){if(void 0===h){var b=g&&H(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=ca(a))}function f(a){d("Error: "+a);l&&(--Z||B(!0));l=!1}var g,h,l=!0;Z++;J[a]={};try{if(g=document.getElementById(a)){var k;if("object"==typeof resources&&(k=resources.css)){var m=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css";n.styleSheet?n.styleSheet.cssText=k:n.appendChild(document.createTextNode(k));m.appendChild(n)}c||(c="/versions/c1pjs/1.34.0/components.xsl");
k=function(h,l){l?gb(c,null,null,!1,d,function(h,k){k?(J[a]&&c&&(J[a][c]=h),d("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=l.transformNode(k))?(g.outerHTML=k,--Z||B(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(h=new XSLTProcessor,h.importStylesheet(k),(k=h.transformToFragment(l,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--Z||B(!0)):f("invalid machine element: "+a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):
f(h)}):f(h)};"<"!=b.charAt(0)?gb(b,a,void 0,!0,d,k):hb(b,null,a,void 0,!1,d,k)}else f("missing machine element: "+a)}catch(A){f(A.message)}return l}window.embedC1P=function(a,b,c){B(!1);return kb(a,b,c)};window.findMachineComponent=function(a,b){return ja(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,f=[],g=[],h="",l=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)l&&m!=l?h+=m:(l?l=null:l=m,h&&(g.push(h),h=""));else{if(!l){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){h&&(g.push(h),h="");";"==m&&g.length&&(f.push(g),g=[]);continue}}h+=m}}g.length&&f.push(g);ka(a+".machine",f,0)||(b=!1)}return b};window.enableEvents=B;window.sendEvent=ga;})();
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,f=[],g=[],h="",l=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)l&&m!=l?h+=m:(l?l=null:l=m,h&&(g.push(h),h=""));else{if(!l){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){h&&(g.push(h),h="");";"==m&&g.length&&(f.push(g),g=[]);continue}}h+=m}}h&&g.push(h);g.length&&f.push(g);ka(a+".machine",f,0)||(b=!1)}return b};window.enableEvents=B;window.sendEvent=ga;})();

View file

@ -295,4 +295,4 @@ a=a.replace(d[0],g);Oi(a,b,c)}})}else c(a,null)}
function Pi(a,b,c,d){function e(a){if(void 0===h){var b=g&&qa(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=Pa(a))}function f(a){e("Error: "+a);l&&(--Li||rb(!0));l=!1}var g,h,l=!0;Li++;fa[a]={};try{if(g=document.getElementById(a)){var p;if("object"==typeof resources&&(p=resources.css)){var u=document.head||document.getElementsByTagName("head")[0],v=document.createElement("style");v.type="text/css";v.styleSheet?v.styleSheet.cssText=p:v.appendChild(document.createTextNode(p));u.appendChild(v)}c||
(c="/versions/pc8080/1.34.0/components.xsl");p=function(d,h){h?Mi(c,null,null,!1,e,function(d,l){l?(ea(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(l=h.transformNode(l))?(g.outerHTML=l,--Li||rb(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(l),(l=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(l,g),--Li||rb(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?Mi(b,a,d,!0,e,p):Ni(b,null,a,d,!1,e,p)}else f("missing machine element: "+a)}catch(B){f(B.message)}return l}window.embedPC8080=function(a,b,c,d){rb(!1);return Pi(a,b,c,d)};window.findMachineComponent=function(a,b){return ma(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var p=c[l];if('"'==p||"'"==p)h&&p!=h?g+=p:(h?h=null:h=p,g&&(f.push(g),g=""));else{if(!h){if("\r"==p||"\n"==p)p=";";if(" "==p||"\t"==p||";"==p){g&&(f.push(g),g="");";"==p&&f.length&&(e.push(f),f=[]);continue}}g+=p}}f.length&&e.push(f);ra(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=rb;window.sendEvent=tb;})();
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var p=c[l];if('"'==p||"'"==p)h&&p!=h?g+=p:(h?h=null:h=p,g&&(f.push(g),g=""));else{if(!h){if("\r"==p||"\n"==p)p=";";if(" "==p||"\t"==p||";"==p){g&&(f.push(g),g="");";"==p&&f.length&&(e.push(f),f=[]);continue}}g+=p}}g&&f.push(g);f.length&&e.push(f);ra(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=rb;window.sendEvent=tb;})();

View file

@ -216,4 +216,4 @@ a=a.replace(d[0],g);Fe(a,b,c)}})}else c(a,null)}
function Ge(a,b,c,d){function e(a){if(void 0===h){var b=g&&x(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=wa(a))}function f(a){e("Error: "+a);m&&(--Ce||Qa(!0));m=!1}var g,h,m=!0;Ce++;ca[a]={};try{if(g=document.getElementById(a)){var q;if("object"==typeof resources&&(q=resources.css)){var w=document.head||document.getElementsByTagName("head")[0],B=document.createElement("style");B.type="text/css";B.styleSheet?B.styleSheet.cssText=q:B.appendChild(document.createTextNode(q));w.appendChild(B)}c||
(c="/versions/pc8080/1.34.0/components.xsl");q=function(d,h){h?De(c,null,null,!1,e,function(d,m){m?(ba(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(m=h.transformNode(m))?(g.outerHTML=m,--Ce||Qa(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(m),(m=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(m,g),--Ce||Qa(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?De(b,a,d,!0,e,q):Ee(b,null,a,d,!1,e,q)}else f("missing machine element: "+a)}catch(L){f(L.message)}return m}window.embedPC8080=function(a,b,c,d){Qa(!1);return Ge(a,b,c,d)};window.findMachineComponent=function(a,b){return ja(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,m=0;m<d;m++){var q=c[m];if('"'==q||"'"==q)h&&q!=h?g+=q:(h?h=null:h=q,g&&(f.push(g),g=""));else{if(!h){if("\r"==q||"\n"==q)q=";";if(" "==q||"\t"==q||";"==q){g&&(f.push(g),g="");";"==q&&f.length&&(e.push(f),f=[]);continue}}g+=q}}f.length&&e.push(f);la(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Qa;window.sendEvent=Sa;})();
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,m=0;m<d;m++){var q=c[m];if('"'==q||"'"==q)h&&q!=h?g+=q:(h?h=null:h=q,g&&(f.push(g),g=""));else{if(!h){if("\r"==q||"\n"==q)q=";";if(" "==q||"\t"==q||";"==q){g&&(f.push(g),g="");";"==q&&f.length&&(e.push(f),f=[]);continue}}g+=q}}g&&f.push(g);f.length&&e.push(f);la(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Qa;window.sendEvent=Sa;})();

View file

@ -878,7 +878,7 @@ function cC(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function dC(a,b,c,d){function e(a){if(void 0===h){var b=g&&pb(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=oa(a))}function f(a){e("Error: "+a);k&&(--$B||Xa(!0));k=!1}var g,h,k=!0;$B++;gb[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var p=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css";x.styleSheet?x.styleSheet.cssText=m:x.appendChild(document.createTextNode(m));p.appendChild(x)}c||
(c="/versions/pcx86/1.34.0/components.xsl");m=function(d,h){h?aC(c,null,null,!1,e,function(d,k){k?(eb(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(k=h.transformNode(k))?(g.outerHTML=k,--$B||Xa(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(k),(k=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(k,g),--$B||Xa(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?aC(b,a,d,!0,e,m):bC(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(u){f(u.message)}return k}function eC(a,b,c,d){Xa(!1);return dC(a,b,c,d)}window.embedPC=eC;window.embedPCx86=eC;window.findMachineComponent=function(a,b){return lb(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);qb(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Xa;window.sendEvent=Za;
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,k=0;k<d;k++){var m=c[k];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);qb(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Xa;window.sendEvent=Za;
function fC(a,b,c,d){if(!c&&b){d.push(b);a=gb[d[0]];b=null;for(var e in a)if(na(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?Ca(b,null,!0,function(a,b){gC(b,d)}):gC(null,d)}else Wa("Error ("+c+") requesting "+a)}
function gC(a,b){var c,d,e,f=b[0],g=b[1];c=b[4];c=c.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);\s*)$/);var h=gb[f],k={},m;for(m in h){var p=h[m],x=ma(m);if("xml"==x){for(x=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;d=x.exec(h[m]);){var u=d[2];u&&(h[u]||(p=p.replace(d[0],"")))}d=m=la(m)}else"xsl"==x&&(e=m=la(m));k[m]=p}a&&(k[m="css"]=a);b[2]&&(k[m="parms"]=b[2]);b[3]&&(k[m="state"]=b[3]);d&&e?(a=JSON.stringify(k),g+=".js",c=c[1]+"var resources="+a+";"+c[2]+c[3],c=c.replace(/\u00A9/g,
"&#xA9;"),a=Ma(c,"javascript",!1,g),a=a+(', copy it to your web server as "'+g+'", and then add the following to your web page:\n\n')+('<div id="'+f+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+g+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+f+'","'+d+'","'+e+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",Wa(a)):Wa("Missing XML/XSL resources")}

View file

@ -687,7 +687,7 @@ function cv(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function dv(a,b,c,d){function e(a){if(void 0===h){var b=g&&Wa(g,"machine-warning");h=b&&b[0]||g}h&&(h.innerHTML=ka(a))}function f(a){e("Error: "+a);l&&(--$u||Ia(!0));l=!1}var g,h,l=!0;$u++;Oa[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var q=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.type="text/css";y.styleSheet?y.styleSheet.cssText=m:y.appendChild(document.createTextNode(m));q.appendChild(y)}c||
(c="/versions/pcx86/1.34.0/components.xsl");m=function(d,h){h?av(c,null,null,!1,e,function(d,l){l?(Na(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(l=h.transformNode(l))?(g.outerHTML=l,--$u||Ia(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(l),(l=d.transformToFragment(h,document))?g.parentNode?(g.parentNode.replaceChild(l,g),--$u||Ia(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?av(b,a,d,!0,e,m):bv(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(w){f(w.message)}return l}function ev(a,b,c,d){Ia(!1);return dv(a,b,c,d)}window.embedPC=ev;window.embedPCx86=ev;window.findMachineComponent=function(a,b){return Sa(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);Xa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Ia;window.sendEvent=Ka;
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",h=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)h&&m!=h?g+=m:(h?h=null:h=m,g&&(f.push(g),g=""));else{if(!h){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);Xa(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=Ia;window.sendEvent=Ka;
function fv(a,b,c,d){if(!c&&b){d.push(b);a=Oa[d[0]];b=null;for(var e in a)if(ja(e,"components.xsl")){b=e.replace(".xsl",".css");break}b?ta(b,null,!0,function(a,b){gv(b,d)}):gv(null,d)}else r("Error ("+c+") requesting "+a)}
function gv(a,b){var c,d,e,f=b[0],g=b[1];c=b[4];c=c.match(/^(\s*\(function\(\)\{)([\s\S]*)(}\)\(\);\s*)$/);var h=Oa[f],l={},m;for(m in h){var q=h[m],y=ia(m);if("xml"==y){for(y=/[ \t]*<disk [^>]*path=(['"])(.*?)\1.*?<\/disk>\n?/g;d=y.exec(h[m]);){var w=d[2];w&&(h[w]||(q=q.replace(d[0],"")))}d=m=ha(m)}else"xsl"==y&&(e=m=ha(m));l[m]=q}a&&(l[m="css"]=a);b[2]&&(l[m="parms"]=b[2]);b[3]&&(l[m="state"]=b[3]);d&&e?(a=JSON.stringify(l),g+=".js",c=c[1]+"var resources="+a+";"+c[2]+c[3],c=c.replace(/\u00A9/g,
"&#xA9;"),a=Ca(c,"javascript",!1,g),a=a+(', copy it to your web server as "'+g+'", and then add the following to your web page:\n\n')+('<div id="'+f+'"></div>\n')+"...\n",a=a+('<script type="text/javascript" src="'+g+'">\x3c/script>\n')+('<script type="text/javascript">embedPC("'+f+'","'+d+'","'+e+'");\x3c/script>\n\n')+"The machine should appear where the <div> is located.",r(a)):r("Missing XML/XSL resources")}

View file

@ -389,4 +389,4 @@ function Dl(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function El(a,b,c,d){function e(a){if(void 0===k){var b=g&&x(g,"machine-warning");k=b&&b[0]||g}k&&(k.innerHTML=Qa(a))}function f(a){e("Error: "+a);l&&(--Al||ub(!0));l=!1}var g,k,l=!0;Al++;pa[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var n=document.head||document.getElementsByTagName("head")[0],q=document.createElement("style");q.type="text/css";q.styleSheet?q.styleSheet.cssText=m:q.appendChild(document.createTextNode(m));n.appendChild(q)}c||
(c="/versions/pdpjs/1.34.0/components.xsl");m=function(d,k){k?Bl(c,null,null,!1,e,function(d,l){l?(oa(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(l=k.transformNode(l))?(g.outerHTML=l,--Al||ub(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(l),(l=d.transformToFragment(k,document))?g.parentNode?(g.parentNode.replaceChild(l,g),--Al||ub(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?Bl(b,a,d,!0,e,m):Cl(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(t){f(t.message)}return l}window.embedPDP11=function(a,b,c,d){ub(!1);return El(a,b,c,d)};window.findMachineComponent=function(a,b){return va(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",k=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)k&&m!=k?g+=m:(k?k=null:k=m,g&&(f.push(g),g=""));else{if(!k){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);ya(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=ub;window.sendEvent=Cb;})();//# sourceMappingURL=/tmp/pdpjs/1.34.0/pdp11-dbg.map
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",k=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)k&&m!=k?g+=m:(k?k=null:k=m,g&&(f.push(g),g=""));else{if(!k){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);ya(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=ub;window.sendEvent=Cb;})();//# sourceMappingURL=/tmp/pdpjs/1.34.0/pdp11-dbg.map

View file

@ -299,4 +299,4 @@ function Ih(a,b,c){var d;if(d=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g.exec(a)){var e=
function Jh(a,b,c,d){function e(a){if(void 0===k){var b=g&&z(g,"machine-warning");k=b&&b[0]||g}k&&(k.innerHTML=Ga(a))}function f(a){e("Error: "+a);l&&(--Fh||ab(!0));l=!1}var g,k,l=!0;Fh++;oa[a]={};try{if(g=document.getElementById(a)){var m;if("object"==typeof resources&&(m=resources.css)){var p=document.head||document.getElementsByTagName("head")[0],q=document.createElement("style");q.type="text/css";q.styleSheet?q.styleSheet.cssText=m:q.appendChild(document.createTextNode(m));p.appendChild(q)}c||
(c="/versions/pdpjs/1.34.0/components.xsl");m=function(d,k){k?Gh(c,null,null,!1,e,function(d,l){l?(na(a,c,d),e("Processing "+b+"..."),window.ActiveXObject||"ActiveXObject"in window?(l=k.transformNode(l))?(g.outerHTML=l,--Fh||ab(!0)):f("transformNodeToObject failed"):document.implementation&&document.implementation.createDocument?(d=new XSLTProcessor,d.importStylesheet(l),(l=d.transformToFragment(k,document))?g.parentNode?(g.parentNode.replaceChild(l,g),--Fh||ab(!0)):f("invalid machine element: "+
a):f("transformToFragment failed")):f("unable to transform XML: unsupported browser")):f(d)}):f(d)};"<"!=b.charAt(0)?Gh(b,a,d,!0,e,m):Hh(b,null,a,d,!1,e,m)}else f("missing machine element: "+a)}catch(x){f(x.message)}return l}window.embedPDP11=function(a,b,c,d){ab(!1);return Jh(a,b,c,d)};window.findMachineComponent=function(a,b){return ta(b,a+".machine")};
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",k=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)k&&m!=k?g+=m:(k?k=null:k=m,g&&(f.push(g),g=""));else{if(!k){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}f.length&&e.push(f);ua(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=ab;window.sendEvent=cb;})();//# sourceMappingURL=/tmp/pdpjs/1.34.0/pdp11.map
window.processMachineScript=function(a,b,c){b=!1;if("string"==typeof c){b=!0;for(var d=c.length,e=[],f=[],g="",k=null,l=0;l<d;l++){var m=c[l];if('"'==m||"'"==m)k&&m!=k?g+=m:(k?k=null:k=m,g&&(f.push(g),g=""));else{if(!k){if("\r"==m||"\n"==m)m=";";if(" "==m||"\t"==m||";"==m){g&&(f.push(g),g="");";"==m&&f.length&&(e.push(f),f=[]);continue}}g+=m}}g&&f.push(g);f.length&&e.push(f);ua(a+".machine",e,0)||(b=!1)}return b};window.enableEvents=ab;window.sendEvent=cb;})();//# sourceMappingURL=/tmp/pdpjs/1.34.0/pdp11.map