chiark / gitweb /
webstead: reset form at start of from_c()
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 8 Oct 2025 08:50:51 +0000 (09:50 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000 (21:42 +0000)
That way we don't get fragments of the old glyph if it stops early.

webstead.xhtml

index 7dfcbb4287e6c15193643047bd42741399593928..7f5e83715a007b0f963c1e8109452f3c0db1d15c 100644 (file)
@@ -77,6 +77,7 @@
     }
     function from_c(c) {
         re = /[0-7]+/g;
+        document.querySelector('#inpane').reset();
         for (row of document.querySelector('#pixels').rows) {
             match = re.exec(c);
             if (match == null) {