aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-20 15:50:52 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-20 15:50:52 -0400
commitd08b6642ecc9aa87bde761f828120eb8efa07365 (patch)
tree81eddaaf19e2d53a0857580e1e663cd9436325ab
parent6725e49e3a0ad356c1de12d73abea5d712a2883b (diff)
Autofocus tweaks
-rw-r--r--README.md2
-rw-r--r--docs/index.html2
-rw-r--r--docs/repl.js1
3 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 182464dc..f3e991a6 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ E ← ⊐⟜":"⊸(↑At"class="∾1⊸+⊸↓)⊸Enc
repl ← "div:cont" E ⟨
"div:kb" E ""
"div:rel" E ⟨
- "textarea:code|rows=1|autofocus" E "<⟜'a'⊸/ ""Big Questions Notation"""
+ "textarea:code|rows=1" E "<⟜'a'⊸/ ""Big Questions Notation"""
"svg:demo|viewBox=0 -6 4 12" E "path" Elt "d"‿"M1 -6H0L1 0L0 6H1L4 0z"
"pre:rslt" E """B Q N"""
diff --git a/docs/index.html b/docs/index.html
index 25e4a3b7..a4ec639d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -14,7 +14,7 @@
<div class='cont'>
<div class='kb'></div>
<div class='rel'>
- <textarea class='code' rows='1' autofocus><⟜'a'⊸/ "Big Questions Notation"</textarea>
+ <textarea class='code' rows='1'><⟜'a'⊸/ "Big Questions Notation"</textarea>
<svg class='demo' viewBox='0 -6 4 12'><path d='M1 -6H0L1 0L0 6H1L4 0z'/></svg>
</div>
<pre class='rslt'>"B Q N"</pre>
diff --git a/docs/repl.js b/docs/repl.js
index 6b6e1332..0627d87e 100644
--- a/docs/repl.js
+++ b/docs/repl.js
@@ -159,5 +159,6 @@ if (location.hash) {
setcount(doc.code.value = (new TextDecoder()).decode(b));
if (ee && doc.doexplain) doc.doexplain.onclick();
if (run) repl();
+ doc.code.focus();
}
}