From dce5d5f0acedf2ed673147304f941eec1bdae2df Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 19 Apr 2019 03:58:34 +0000 Subject: [PATCH] Work around lack of `datetime-local` input support in 2019 --- example-puzzles/example/5/helpers.js | 6 +++++- example-puzzles/example/5/puzzle.moth | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/example-puzzles/example/5/helpers.js b/example-puzzles/example/5/helpers.js index 3c566bc..c5f2388 100644 --- a/example-puzzles/example/5/helpers.js +++ b/example-puzzles/example/5/helpers.js @@ -17,7 +17,11 @@ function helperUpdateAnswer(event) { 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 diff --git a/example-puzzles/example/5/puzzle.moth b/example-puzzles/example/5/puzzle.moth index 9c3be6b..b714a91 100644 --- a/example-puzzles/example/5/puzzle.moth +++ b/example-puzzles/example/5/puzzle.moth @@ -17,8 +17,13 @@ This is just a demonstration page. You will probably only want one of these in a page, to avoid confusing people. -Timestamp - +RFC3339 Timestamp +
+ + + + +
All lower-case letters