diff options
Diffstat (limited to 'questions/public/script.js')
-rw-r--r-- | questions/public/script.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/questions/public/script.js b/questions/public/script.js index 2a04a02..a545a0d 100644 --- a/questions/public/script.js +++ b/questions/public/script.js @@ -23,13 +23,11 @@ fetch(`api/question/${qid}`) question_label.innerText = response["question"]; question_input.setAttribute("value", response["id"]); const div = document.getElementsByClassName("answer-buttons")[0]; - const prop = 100 / response.options.length; for (const option of response.options) { const btn = document.createElement("btn"); btn.classList.add("pure-button", "pure-button-primary", "answer-btn"); btn.dataset.value = `${option.id}`; btn.textContent = option.answer_option; - btn.style.width = `${prop}%`; div.append(btn); } addListeners(); @@ -88,4 +86,4 @@ function addListeners() { const res = await resp.json(); if (res.success) getNext(qid + 1); }); -}
\ No newline at end of file +} |