ok transitions stuff okay
parent
c16b6b04ff
commit
b3c18b56ed
|
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue