()
| 3068 | opt:HTMLOptionElement = <HTMLOptionElement>node[node.selectedIndex], |
| 3069 | textout:boolean = (options.jsscope !== "report" && (node === null || opt.value !== "report")), |
| 3070 | app = function dom_event_execute_app() { |
| 3071 | let output:string = ""; |
| 3072 | const sanitize = function dom_event_execute_app_sanitize(input:string):string { |
| 3073 | return input.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); |
| 3074 | }, |
| 3075 | renderOutput = function dom_event_execute_app_renderOutput():void { |
| 3076 | let diffList:HTMLCollectionOf<HTMLOListElement>, |
| 3077 | button:HTMLButtonElement, |
| 3078 | buttons:HTMLCollectionOf<HTMLButtonElement>, |
| 3079 | pdlang:string = "", |
| 3080 | parent:HTMLElement, |
| 3081 | chromeSave:boolean = false; |
| 3082 | const commanumb = function dom_event_execute_app_renderOutput_commanumb(numb):string { |
| 3083 | let str:string = "", |
| 3084 | len:number = 0, |
| 3085 | arr:string[] = []; |
| 3086 | if (typeof numb !== "number" || isNaN(numb) === true) { |
| 3087 | return numb; |
| 3088 | } |
| 3089 | str = String(numb); |
| 3090 | if (str.length < 4) { |
| 3091 | return str; |
| 3092 | } |
| 3093 | arr = str.split(""); |
| 3094 | len = str.length - 4 |
| 3095 | do { |
| 3096 | arr[len] = `${arr[len]},`; |
| 3097 | len = len - 3; |
| 3098 | } while (len > -1); |
| 3099 | return arr.join(""); |
| 3100 | }; |
| 3101 | meta.time = (function dom_event_execute_app_renderOutput_proctime() { |
| 3102 | const plural = function dom_event_execute_app_renderOutput_proctime_plural(x:number, y:string):string { |
| 3103 | let a = x + y; |
| 3104 | if (x !== 1) { |
| 3105 | a = `${a}s`; |
| 3106 | } |
| 3107 | if (y !== " second") { |
| 3108 | a = `${a} `; |
| 3109 | } |
| 3110 | return a; |
| 3111 | }, |
| 3112 | minute = function dom_event_execute_app_renderOutput_proctime_minute():void { |
| 3113 | minutes = elapsed / 60; |
| 3114 | minuteString = plural(minutes, " minute"); |
| 3115 | minutes = elapsed - (minutes * 60); |
| 3116 | secondString = (minutes === 1) |
| 3117 | ? "1 second" |
| 3118 | : `${minutes.toFixed(3)} seconds`; |
| 3119 | }; |
| 3120 | let elapsed:number = (Date.now() - startTime) / 1000, |
| 3121 | minuteString:string = "", |
| 3122 | hourString:string = "", |
| 3123 | minutes:number = 0, |
| 3124 | hours:number = 0, |
| 3125 | secondString:string = String(elapsed); |
| 3126 | if (elapsed >= 60 && elapsed < 3600) { |
| 3127 | minute(); |
no test coverage detected