From 2dda72cfa3b4151360f263d39caa921c540aa519 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:03:15 -0700 Subject: [PATCH] radios at least --- cmd/server/internal/public/index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cmd/server/internal/public/index.html b/cmd/server/internal/public/index.html index 63696eb..4a61c4c 100644 --- a/cmd/server/internal/public/index.html +++ b/cmd/server/internal/public/index.html @@ -21,7 +21,7 @@

- +
@@ -49,9 +49,15 @@ if (g_live_question) { let options = ""; for (let i of g_live_question.Options) - options += `
  • ${i}
  • `; - document.getElementById("question-text").innerHTML = g_live_question.Text; - document.getElementById("question-options").innerHTML = options; + options += `
    + + +
    ` + options = `
    ${options}
    `; + if (document.getElementById("question-text").innerHTML != g_live_question.Text) { + document.getElementById("question-text").innerHTML = g_live_question.Text; + document.getElementById("question-options").innerHTML = options; + } } else { document.getElementById("question-text").innerHTML = ""; document.getElementById("question-options").innerHTML = "";