],
"max-lines": [
"error",
- {"max": 373, "skipBlankLines": true, "skipComments": true}
+ {"max": 376, "skipBlankLines": true, "skipComments": true}
],
"max-lines-per-function": [
"error",
- 249
+ 250
],
"max-params": [
"error",
taintAndUpdateForm();
};
-window.onload = () => {
- document.getElementById("btn_mirror").onclick = mirror;
- document.getElementById("btn_sink").onclick = fillSink;
- document.getElementById("btn_replace").onclick = replace;
- updateForm();
-};
+window.addEventListener(
+ "load",
+ () => {
+ document.getElementById("btn_mirror").onclick = mirror;
+ document.getElementById("btn_sink").onclick = fillSink;
+ document.getElementById("btn_replace").onclick = replace;
+ updateForm();
+ }
+);
forEach((el) => { el.oninput = null; });
};
-window.onload = () => {
- Array.from(document.getElementsByClassName("tainter")).forEach(
- (el) => { el.oninput = taint; }
- );
-};
+window.addEventListener(
+ "load",
+ () => {
+ Array.from(document.getElementsByClassName("tainter")).forEach(
+ (el) => { el.oninput = taint; }
+ );
+ }
+);