diff --git a/example-puzzles/example/5/helpers.js b/example-puzzles/example/5/helpers.js index 0f7a677..c68b5f3 100644 --- a/example-puzzles/example/5/helpers.js +++ b/example-puzzles/example/5/helpers.js @@ -61,8 +61,8 @@ function helperExpandInputs(e) { function helperActivate(e) { e.addEventListener("input", helperUpdateAnswer) - if (e.classList.contains("expand")) { - e.addEventListener("click", helperExpandInputs) + for (let exp of e.querySelectorAll(".expand")) { + exp.addEventListener("click", helperExpandInputs) } } diff --git a/example-puzzles/example/5/puzzle.moth b/example-puzzles/example/5/puzzle.moth index e82f789..1000bfd 100644 --- a/example-puzzles/example/5/puzzle.moth +++ b/example-puzzles/example/5/puzzle.moth @@ -34,7 +34,7 @@ Multiple concatenated values Free input, sorted, concatenated values Select from an ordered list of options