mirror of https://github.com/dirtbags/moth.git
Make it a little cleaner for the puzzle writer
This commit is contained in:
parent
c04651db90
commit
dd0d9cadf5
|
@ -61,8 +61,8 @@ function helperExpandInputs(e) {
|
||||||
|
|
||||||
function helperActivate(e) {
|
function helperActivate(e) {
|
||||||
e.addEventListener("input", helperUpdateAnswer)
|
e.addEventListener("input", helperUpdateAnswer)
|
||||||
if (e.classList.contains("expand")) {
|
for (let exp of e.querySelectorAll(".expand")) {
|
||||||
e.addEventListener("click", helperExpandInputs)
|
exp.addEventListener("click", helperExpandInputs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ Multiple concatenated values
|
||||||
Free input, sorted, concatenated values
|
Free input, sorted, concatenated values
|
||||||
<ul class="answer lower sort">
|
<ul class="answer lower sort">
|
||||||
<li><input></li>
|
<li><input></li>
|
||||||
<li><button class="answer expand">➕</button><li>
|
<li><button class="expand">➕</button><li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
Select from an ordered list of options
|
Select from an ordered list of options
|
||||||
|
|
Loading…
Reference in New Issue