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) {
|
||||
e.addEventListener("input", helperUpdateAnswer)
|
||||
if (e.classList.contains("expand")) {
|
||||
e.addEventListener("click", helperExpandInputs)
|
||||
for (let exp of e.querySelectorAll(".expand")) {
|
||||
exp.addEventListener("click", helperExpandInputs)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue