summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-08-24 09:16:11 -0400
committerBrian Cully <bjc@spork.org>2025-08-24 09:31:51 -0400
commit49ab2791b861884d01488de68f63bdd49d71c1b2 (patch)
tree54ee6f6db5be39093ffd22995461001d732f7dc2 /index.html
parent365312b14723503424a601a49827c191af82ad7a (diff)
downloadautomathon-49ab2791b861884d01488de68f63bdd49d71c1b2.tar.gz
automathon-49ab2791b861884d01488de68f63bdd49d71c1b2.zip
pass annotations to js so we can highlight program text
Diffstat (limited to 'index.html')
-rw-r--r--index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index 8b96298..0882b65 100644
--- a/index.html
+++ b/index.html
@@ -7,11 +7,12 @@
<body>
<h1>automathon</h1>
+
<div id='editor'>
<div id='code'>
<button id='compile'>compile</button>
<br>
- <textarea id='src'>
+ <pre id='src' contenteditable='plaintext-only'>
: fac
dup
1 > if
@@ -19,8 +20,9 @@
then
;
5 fac
-drop</textarea>
+drop</pre>
</div>
+
<div id='state-container'>
<div id='state'>
<div class='controls'>
@@ -44,7 +46,6 @@ drop</textarea>
</div>
</div>
<br>
- <canvas id='arena' width='512' height='512'>no canvas!</canvas>
<script src='./main.mjs' type='module'></script>
</body>
</html>