diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -105,6 +105,11 @@ input_el.setAttribute("min", min) input_el.setAttribute("max", max) input_el.setAttribute("value", Math.floor((max+min)/2)) + + let checkbox_el = document.createElement("input") + checkbox_el.setAttribute("id", prompt_id+"_checkbox") + checkbox_el.setAttribute("type", "checkbox") + input_el.parentElement.insertBefore(checkbox_el, input_el) } function insert_textarea(prompt, prompt_id){ let root_el = document.getElementById("prompts") |