MCPcopy Create free account
hub / github.com/GoogleChrome/samples / onInputChange

Function onInputChange

window-management/script.js:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10document.querySelectorAll("input").forEach(input => {
11 const onInputChange = () => {
12 input.dataset.value = input.value;
13 if (input.id === "rows") {
14 ROWS = parseInt(input.value, 10);
15 } else {
16 COLS = parseInt(input.value, 10);
17 }
18 };
19 input.addEventListener("input", onInputChange);
20 onInputChange();
21});

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected