This commit is contained in:
Ross
2024-10-08 17:03:42 +01:00
parent 87192466ed
commit 436a04e8dd
+11
View File
@@ -2,6 +2,17 @@
{% block content %}
<h2>Questions</h2>
There are {{ questions|length }} question sets.
<div>Filter by:
<textarea type="text" id="search-text" name="search" placeholder="Search text.." rows=5 cols=50 ></textarea>
<button
_="on click repeat for el in <li.question/>
set p to the first <pre/> in el then
if p.title does not contain value of #search-text then hide el">Filter</button>
</div>
<div class="offcanvas offcanvas-end bg-dark" tabindex="-1" id="offcanvasExample" data-bs-scroll="true" data-bs-backdrop="false" aria-labelledby="offcanvasExampleLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasExampleLabel">Comparisons</h5>