diff jslib/urweb.js @ 571:86d324061ddc

Switch to using dyn() function in JavaScript
author Adam Chlipala <adamc@hcoop.net>
date Sun, 21 Dec 2008 12:01:00 -0500
parents 162d5308e34f
children 57018f21cd5c
line wrap: on
line diff
--- a/jslib/urweb.js	Sat Dec 20 18:24:12 2008 -0500
+++ b/jslib/urweb.js	Sun Dec 21 12:01:00 2008 -0500
@@ -1,1 +1,7 @@
 function sreturn(v) { return {v : v} }
+
+function dyn(s) {
+  var x = document.createElement("span");
+  x.innerHTML = s.v;
+  document.body.appendChild(x);
+}