diff --git a/content/toys/triscit/index.html b/content/toys/triscit/index.html index dc33ae1..ad1c10e 100644 --- a/content/toys/triscit/index.html +++ b/content/toys/triscit/index.html @@ -43,10 +43,7 @@ type: bare
- -
-
- +
diff --git a/content/toys/triscit/ui.mjs b/content/toys/triscit/ui.mjs index edd6356..c9fbf41 100644 --- a/content/toys/triscit/ui.mjs +++ b/content/toys/triscit/ui.mjs @@ -51,9 +51,6 @@ class UI { case "input": e.addEventListener("input", () => this.SetInput()) break - case "0xinput": - e.addEventListener("input", () => this.SetInput(true)) - break case "program": e.addEventListener("input", () => this.SetProgram()) } @@ -189,18 +186,9 @@ class UI { this.Reset() } - Set0xInput() { - let e = document.querySelector('[data-control="0xinput"]') - let x = e.value || "" - let v = Binutils.Unhexlify(x) - // XXX: escape v and fill into the input - this.input = Binutils.Unhexlify(v) - this.Reset() - } SetInput() { let e = document.querySelector('[data-control="input"]') let v = e.value || "" - let x = Binutils.Hexlify(v) this.input = Binutils.Unescape(v) this.Reset() }