Show results on notes's search-box.

This commit is contained in:
Sergio Martínez Portela 2022-10-17 00:10:06 +02:00
parent a616d903fb
commit d81db05633
3 changed files with 93 additions and 5 deletions

View file

@ -483,12 +483,12 @@ def as_document(html, title):
<body>
<nav>
<h1><a href="/">Código para llevar [Notes]</a></h1>
<input type="text" id="searchbox" disabled="true" placeholder="Search in notes (requires JS)" />
<input type="text" id="searchbox" disabled="true" placeholder="Search (requires JS)" />
</nav>
{html}
<script src="../static/search-box.js"></script>
<script tye="text/javascript">_codigoparallevar_enable_search_box('#searchbox', {{placeholder: 'Search in notes...'}})</script>
<script tye="text/javascript">_codigoparallevar_enable_search_box('#searchbox', {{placeholder: 'Search...'}})</script>
</body>
</html>
"""