summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.html b/index.html
index fe2fe46..83136dc 100644
--- a/index.html
+++ b/index.html
@@ -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")