aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 13:55:35 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 13:55:35 -0400
commit17e8230265e8fb22d583c4ba33d4243f24d6b8bc (patch)
treedd773f933c8b843112da1e81715f42c40cab8d8f /lib/js
parenta8e63939847f6fb02b2dc030adca09e554adb89f (diff)
<active>
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 35023924..87adc0a3 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -901,6 +901,12 @@ function setInnerHTML(node, html) {
runScripts(node);
}
+function active(s) {
+ var span = document.createElement("span");
+ addNode(span);
+ setInnerHTML(span, execF(s));
+}
+
function input(x, s, recreate, type, name) {
if (name) x.name = name;
if (type) x.type = type;