mirror of https://github.com/dirtbags/moth.git
Work around lack of `datetime-local` input support in 2019
This commit is contained in:
parent
e4fae16023
commit
dce5d5f0ac
|
@ -17,7 +17,11 @@ function helperUpdateAnswer(event) {
|
||||||
values.push(c.value)
|
values.push(c.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value = values.join(",")
|
let join = e.dataset.join
|
||||||
|
if (join === undefined) {
|
||||||
|
join = ","
|
||||||
|
}
|
||||||
|
value = values.join(join)
|
||||||
}
|
}
|
||||||
|
|
||||||
// First make any adjustments to the value
|
// First make any adjustments to the value
|
||||||
|
|
|
@ -17,8 +17,13 @@ This is just a demonstration page.
|
||||||
You will probably only want one of these in a page,
|
You will probably only want one of these in a page,
|
||||||
to avoid confusing people.
|
to avoid confusing people.
|
||||||
|
|
||||||
Timestamp
|
RFC3339 Timestamp
|
||||||
<input type="datetime-local" class="answer">
|
<div class="answer" data-join="">
|
||||||
|
<input type="date">
|
||||||
|
<input type="hidden" value="T">
|
||||||
|
<input type="time" step="1">
|
||||||
|
<input type="hidden" value="Z">
|
||||||
|
</div>
|
||||||
|
|
||||||
All lower-case letters
|
All lower-case letters
|
||||||
<input class="answer lower">
|
<input class="answer lower">
|
||||||
|
|
Loading…
Reference in New Issue