From fc1afd8681e2a49c112134d215e84c604c064b6e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Sep 2024 13:42:57 -0600 Subject: [PATCH] Revert changes to triscit --- content/toys/triscit/index.html | 5 +---- content/toys/triscit/ui.mjs | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) 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() }