diff options
author | Adam Chlipala <adam@chlipala.net> | 2014-11-16 15:20:13 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2014-11-16 15:20:13 -0500 |
commit | 16ca08fbff65b24e0b2d8318f4d2419345a4276a (patch) | |
tree | 2567582a726c1f617647ebd0bae71b1db2a454b5 /lib/js | |
parent | 0c469622c4b22c438bafca09bc025f13b1812611 (diff) |
More HTML5 AJAX widgets
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 33 |
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 ""; |