add search bar to all browsing menus

This commit is contained in:
2023-02-16 17:20:17 +00:00
parent 0ae70aa2b3
commit 98a6649a39
5 changed files with 93 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
</ul>
<p style="font-size: 0.7em;"> page generated by <a href="https://github.com/alvierahman90/notes2web">notes2web</a></p>
</div>
<script src="/fuse.js"> </script>
<script> const data = $data$ </script>
<script src="/indexsearch.js"> </script>
</body>

View File

@@ -10,5 +10,12 @@
<div id="content">
<h1>$title$</h1>
$extra_content$
<ul class="buttonlist">
<div id="searchWrapper">
<input id="search" placeholder="search" autocomplete="off" autofocus>
</div>
<p class="searchSmallText" style="margin-top: 0; text-align: center">
Press (<kbd>Shift</kbd>+)<kbd>Enter</kbd> to open first result (in new tab)
</p>
<ul id="searchResults" class="buttonlist">
<li class="article"><a href=".."><p>../</p></a></li>