Make it a little cleaner for the puzzle writer

This commit is contained in:
Neale Pickett 2019-04-10 20:03:12 +00:00
parent c04651db90
commit dd0d9cadf5
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}
}

View File

@ -34,7 +34,7 @@ Multiple concatenated values
Free input, sorted, concatenated values
<ul class="answer lower sort">
<li><input></li>
<li><button class="answer expand"></button><li>
<li><button class="expand"></button><li>
</ul>
Select from an ordered list of options