initial commit

This commit is contained in:
Colmaris 2025-02-12 22:47:22 +01:00
parent 2012aa8834
commit 9ddfa58ace
2289 changed files with 11217 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<div class="search">
<input id="searchbar" type="text" placeholder='{{ i18n "searchbarTxt" }}' />
<span class="nerdlink" onclick="newSearch();">&#xf002;</span>
</div>
<script>
function newSearch() {
let term = searchbar.value.trim();
if (!term) return;
location.href = `/search/?q=${term}`;
}
searchbar.onkeyup = (ev) => {if (ev.keyCode == 13) newSearch()};
</script>