From b6c0e7dbc3b618ecca2449c4395ce857649521cf Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 19 Jan 2023 20:48:35 -0600 Subject: Fix range to have confirm checkbox --- index.html | 5 +++++ 1 file changed, 5 insertions(+) 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") -- cgit v1.2.3