css is fuuuuun and bad

This commit is contained in:
Bel LaPointe
2024-02-20 14:35:19 -07:00
parent f5bd9f27ce
commit f750f055b7
2 changed files with 9 additions and 8 deletions

View File

@@ -3,10 +3,15 @@
<header>
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">-->
<link rel="stylesheet" href="/light.css">
<style>
:not(#answers[hidden]) + #question {
display: none;
}
</style>
</header>
<body>
<h1>Hello World</h1>
<div id="answers" style="display: none;">
<div id="answers">
<ul id="answers-list"></ul>
<form id="answers-form" action="#" onsubmit="submitAnswersForm(this); return false;">
</form>
@@ -56,8 +61,8 @@
let answers = JSON.parse(body);
let result = "";
for (let i of answers)
result += `<br>${i}`;
document.getElementById("answers").innerHTML = result;
result += `<li>${i.Text}</li>`;
document.getElementById("answers-list").innerHTML = result;
});
}