aboutsummaryrefslogtreecommitdiff
path: root/prog/input.html
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-09-14 16:15:20 -0400
committerBen Burwell <ben.burwell@trifecta.com>2016-09-14 16:15:20 -0400
commitf704918fe2b187d715fe985ebffebdfbdc4b541f (patch)
tree9fc63b49b81ded84624bc6b1679015baffd7d292 /prog/input.html
parent2c1eee7b2a99985bbe92426368ea32360a4cc0b2 (diff)
Add repeat and input
Diffstat (limited to 'prog/input.html')
-rw-r--r--prog/input.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/prog/input.html b/prog/input.html
new file mode 100644
index 0000000..07ca54a
--- /dev/null
+++ b/prog/input.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+ <head>
+ <script src="../lib/doml.js"></script>
+ <script>
+ Doml.runOnLoad();
+ </script>
+ <link rel="stylesheet" href="../lib/style.css">
+ </head>
+ <body>
+ <span class="statement-sequence">
+ <span class="assign" data-name="greet">
+ <span class="function" data-args="name">
+ <span class="print">
+ <span class="constant" data-val="Hello," data-type="string"></span>
+ <span class="variable" data-name="name"></span>
+ </span>
+ </span>
+ </span>
+
+ <span class="input" data-prompt="What is your name?" data-name="personToGreet" data-type="string"></span>
+
+ <span class="call" data-name="greet">
+ <span class="variable" data-name="personToGreet"></span>
+ </span>
+ </span>
+ </body>
+</html>