1
0
forked from w0bm/f0bm

adding cool search

This commit is contained in:
x
2026-01-23 19:44:17 +01:00
parent 7b1e0af0cb
commit 4de2652ffe
3 changed files with 189 additions and 55 deletions

View File

@@ -9,6 +9,11 @@
@if(!/^\/\d$/.test(url.pathname))
<a href="/random" id="nav-random">rand</a>
@endif
<a href="#" id="nav-search-btn" title="Search"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" viewBox="0 0 16 16">
<path
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" />
</svg></a>
</ol>
</div>
<!-- show pagination only for tags and main page -->
@@ -33,6 +38,11 @@
@if(!/^\/\d$/.test(url.pathname))
<a href="/random" id="nav-random">rand</a>
@endif
<a href="#" id="nav-search-btn-guest" title="Search"><svg xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" viewBox="0 0 16 16">
<path
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" />
</svg></a>
</ol>
</div>
<!-- show pagination only for tags and main page -->