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

@ -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;})();