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="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">-->
|
||||||
<link rel="stylesheet" href="/light.css">
|
<link rel="stylesheet" href="/light.css">
|
||||||
<style>
|
<style>
|
||||||
|
body {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
:not(#answers-list[hidden]) + #question,
|
:not(#answers-list[hidden]) + #question,
|
||||||
:not(#answers-list[hidden]) + #question + #answer-form,
|
:not(#answers-list[hidden]) + #question + #answer-form,
|
||||||
:not(#question-options:empty) + #answers-freeform
|
:not(#question-options:empty) + #answers-freeform
|
||||||
|
|
@ -13,7 +16,6 @@
|
||||||
</style>
|
</style>
|
||||||
</header>
|
</header>
|
||||||
<body>
|
<body>
|
||||||
<h1>Hello World</h1>
|
|
||||||
<div id="answers-list"></div>
|
<div id="answers-list"></div>
|
||||||
<div id="question">
|
<div id="question">
|
||||||
<h1><span id="question-text"></span></h1>
|
<h1><span id="question-text"></span></h1>
|
||||||
|
|
@ -45,11 +47,14 @@
|
||||||
g_live_question = live_questions[0];
|
g_live_question = live_questions[0];
|
||||||
}
|
}
|
||||||
if (g_live_question) {
|
if (g_live_question) {
|
||||||
document.getElementById("question-text").innerHTML = g_live_question.Text;
|
|
||||||
let options = "";
|
let options = "";
|
||||||
for (let i of g_live_question.Options)
|
for (let i of g_live_question.Options)
|
||||||
options += `<li>${i}</li>`;
|
options += `<li>${i}</li>`;
|
||||||
|
document.getElementById("question-text").innerHTML = g_live_question.Text;
|
||||||
document.getElementById("question-options").innerHTML = options;
|
document.getElementById("question-options").innerHTML = options;
|
||||||
|
} else {
|
||||||
|
document.getElementById("question-text").innerHTML = "";
|
||||||
|
document.getElementById("question-options").innerHTML = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue