Show the number of searches ever performed, and increase the typing timeout on searching slightly.

This commit is contained in:
Justin Hawkins 2022-08-21 16:59:30 +09:30
parent e8936beea0
commit 03abcc1340
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@
<tr><th>Database disk size</th><td>{{ niceSizeMB .stats.FileSize }}Mb</td></tr>
<tr><th>Bookmarks</th><td>{{ .stats.MostRecentBookmarkInfo.Bookmarks }}</td></tr>
<tr><th>Words in index</th><td>{{ .stats.MostRecentBookmarkInfo.IndexedWords }}</td></tr>
<tr><th>Total searches</th><td>{{ .stats.Searches }}</td></tr>
</table>
</div>
<div class="large-6 medium-12 cell">

View File

@ -11,7 +11,7 @@
<div class="large-12 cell">
<label>Free text</label>
<input type="text" name="query" placeholder="" hx-post="/search"
hx-trigger="keyup changed delay:50ms, search" hx-target="#search-results"
hx-trigger="keyup changed delay:250ms, search" hx-target="#search-results"
hx-indicator="#htmx-indicator-search" />
</div>
</div>