diff --git a/cmd/server/internal/public/index.html b/cmd/server/internal/public/index.html index bcae208..63696eb 100644 --- a/cmd/server/internal/public/index.html +++ b/cmd/server/internal/public/index.html @@ -4,6 +4,9 @@ -

Hello World

@@ -45,11 +47,14 @@ g_live_question = live_questions[0]; } if (g_live_question) { - document.getElementById("question-text").innerHTML = g_live_question.Text; 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; + } else { + document.getElementById("question-text").innerHTML = ""; + document.getElementById("question-options").innerHTML = ""; } }