More alert suppression changes

This commit is contained in:
Jeff Parsons 2017-06-22 16:36:51 -07:00 • committed by Jeff Parsons
commit a16f0586f4
29 changed files with 663 additions and 636 deletions

View file

@ -62,9 +62,9 @@ function x(a,b){var c=z;b=A(b.parentNode,c+"-control");for(var d=0;d<b.length;d+
function A(a,b,c){c&&(b+="-"+c+"-object");if(a.getElementsByClassName)return a.getElementsByClassName(b);var d;c=[];a=a.getElementsByTagName("*");var e=new RegExp("(^| )"+b+"( |$)");b=0;for(d=a.length;b<d;b++)e.test(a[b].className)&&c.push(a[b]);return c}
function $a(a){for(var b=!0,c=ab[a];c&&c.length;){var d=c.splice(0,1)[0],e=d[0],f=null;0<=bb.indexOf(e)&&(f=function(){return function(){$a(a)}}());var g=cb[e];if(g)if(!f)b=g(d[1],d[2],d[3]);else{if(!g(f,d[1],d[2],d[3]))break}else{var b=!1,k=Za(d[1],a);if(k)if(g=db[e])b=g(k,d[2],d[3]);else{var l=k.exports;if(l&&(g=l[e]))if(b=!0,!f)b=g.call(k,d[2],d[3]);else if(!g.call(k,f,d[2],d[3]))break}}if(!b){r("Script error: "+e+(g?" failed":" unrecognized"));break}}c&&!c.length&&delete ab[a];return b}h=t.prototype;
h.toString=function(){return this.name?this.name:this.id||this.type};
h.ma=function(a,b,c){switch(b){case "clear":return this.o[b]||(this.o[b]=c,c.onclick=function(a){return function(){a.o.print&&(a.o.print.value="")}}(this)),!0;case "print":return this.o[b]||(this.ob=this.o[b]=c,c.value="",this.aa=function(a){return function(b,c){8192<a.value.length&&(a.value=a.value.substr(a.value.length-4096));a.value+=(void 0!==c?c+": ":"")+(b||"")+"\n";a.scrollTop=a.scrollHeight}}(c),this.G=function(a){this.aa(a,this.ib)}),!0;default:return!1}};h.log=function(){};h.aa=function(){};
h.status=function(a){this.aa(this.ib+": "+a)};h.G=function(a,b,c){if(!b){var d=Za("Computer",this.id);if(d&&d.j.gd){console.log("ignoring notice during unload: "+a);return}}c=c||this.type;b||r((c?c+": ":"")+a)};function eb(a,b){b&&(a.j.ready?b():a.ic=b);return a.j.ready}function B(a,b){a.j.error||(a.j.ready=!1!==b,a.j.ready&&(b=a.ic,a.ic=null,b&&b()))}function fb(a,b){a.j.Yc?(a.j.Ra=!1,a.j.Yc=!1):a.j.error?a.aa(a.toString()+" error"):a.j.Ra=b}h.la=function(){return this.j.R=!0};
h.ka=function(a,b){b&&(this.j.R=!1);return!0};window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
h.ma=function(a,b,c){switch(b){case "clear":return this.o[b]||(this.o[b]=c,c.onclick=function(a){return function(){a.o.print&&(a.o.print.value="")}}(this)),!0;case "print":return this.o[b]||(this.ob=this.o[b]=c,c.value="",this.aa=function(a){return function(b,c){8192<a.value.length&&(a.value=a.value.substr(a.value.length-4096));a.value+=(void 0!==c?c+": ":"")+(b||"")+"\n";a.scrollTop=a.scrollHeight}}(c),this.G=function(a){this.aa(a,this.ib);return!0}),!0;default:return!1}};h.log=function(){};
h.aa=function(){};h.status=function(a){this.aa(this.ib+": "+a)};h.G=function(a,b,c){if(!b){var d=Za("Computer",this.id);if(d&&d.j.gd)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||r((c?c+": ":"")+a);return!0};function eb(a,b){b&&(a.j.ready?b():a.ic=b);return a.j.ready}function B(a,b){a.j.error||(a.j.ready=!1!==b,a.j.ready&&(b=a.ic,a.ic=null,b&&b()))}function fb(a,b){a.j.Yc?(a.j.Ra=!1,a.j.Yc=!1):a.j.error?a.aa(a.toString()+" error"):a.j.Ra=b}
h.la=function(){return this.j.R=!0};h.ka=function(a,b){b&&(this.j.R=!1);return!0};window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
var Ua=window?window.PCjs.Machines:{},u=window?window.PCjs.Components:[],ab=window?window.PCjs.Commands:{},bb=["hold","sleep","wait"],cb={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},db={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};
Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});
Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return e.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind: non-callable object");var d=Array.prototype.slice.call(arguments,1),e=this;c.prototype=this.prototype;b.prototype=new c;return b});