ok transitions stuff okay

main
Bel LaPointe 2024-02-20 14:57:20 -07:00
parent c16b6b04ff
commit b3c18b56ed
1 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,9 @@
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">-->
<link rel="stylesheet" href="/light.css">
<style>
body {
font-size: 1.25rem;
}
:not(#answers-list[hidden]) + #question,
:not(#answers-list[hidden]) + #question + #answer-form,
:not(#question-options:empty) + #answers-freeform
@ -13,7 +16,6 @@
</style>
</header>
<body>
<h1>Hello World</h1>
<div id="answers-list"></div>
<div id="question">
<h1><span id="question-text"></span></h1>
@ -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 += `<li>${i}</li>`;
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 = "";
}
}