diff options
author | Mark Powers <mark@marks.kitchen> | 2023-01-19 20:48:35 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2023-01-19 20:48:35 -0600 |
commit | b6c0e7dbc3b618ecca2449c4395ce857649521cf (patch) | |
tree | 1ede318355c22ecde6d9caf6071908cf2bbe32f6 /index.html | |
parent | 41f57363e401791828c7128ca553f369b3dae955 (diff) |
Fix range to have confirm checkbox
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") |