summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2023-01-19 20:48:35 -0600
committerMark Powers <mark@marks.kitchen>2023-01-19 20:48:35 -0600
commitb6c0e7dbc3b618ecca2449c4395ce857649521cf (patch)
tree1ede318355c22ecde6d9caf6071908cf2bbe32f6 /index.html
parent41f57363e401791828c7128ca553f369b3dae955 (diff)
Fix range to have confirm checkbox
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")