summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-11-16 15:20:13 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2014-11-16 15:20:13 -0500
commitf3e50f123c33c26038b601475eeaa619526ad7ab (patch)
tree2567582a726c1f617647ebd0bae71b1db2a454b5 /lib/js
parent049d3500132b56ac2429a8a6ee0cc5ba1fbaae5a (diff)
More HTML5 AJAX widgets
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index c62670e7..342dc943 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -1078,6 +1078,39 @@ function color(s, name) {
return inpt("color", s, name);
}
+function number(s, name) {
+ return inpt("number", s, name);
+}
+
+function range(s, name) {
+ return inpt("range", s, name);
+}
+
+function date(s, name) {
+ return inpt("date", s, name);
+}
+
+function datetime(s, name) {
+ return inpt("datetime", s, name);
+}
+
+function datetime_local(s, name) {
+ return inpt("datetime-local", s, name);
+}
+
+function month(s, name) {
+ return inpt("month", s, name);
+}
+
+function week(s, name) {
+ return inpt("week", s, name);
+}
+
+function time(s, name) {
+ return inpt("time", s, name);
+}
+
+
function selectValue(x) {
if (x.options.length == 0)
return "";