mirror of
https://github.com/welpo/tabi.git
synced 2026-06-15 07:47:34 +02:00
Merge branch 'main' into main
This commit is contained in:
commit
5495c25073
57 changed files with 1317 additions and 424 deletions
16
static/js/mermaid.min.js
vendored
16
static/js/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -2675,6 +2675,7 @@ window.onload = function () {
|
|||
results.innerHTML = '';
|
||||
resultsContainer.style.display = 'none';
|
||||
searchInput.removeAttribute('aria-activedescendant');
|
||||
clearSearchButton.style.display = 'none';
|
||||
}
|
||||
|
||||
// Close modal when clicking/tapping outside.
|
||||
|
|
@ -2941,10 +2942,13 @@ window.onload = function () {
|
|||
searchInput.addEventListener(
|
||||
'input',
|
||||
async function () {
|
||||
const searchTerm = this.value.trim();
|
||||
const searchInput = this.value;
|
||||
const searchTerm = searchInput.trim();
|
||||
const searchIndex = await searchIndexPromise;
|
||||
results.innerHTML = '';
|
||||
|
||||
// Use the raw input so the "clear" button appears even if there's only spaces.
|
||||
clearSearchButton.style.display = searchInput.length > 0 ? 'block' : 'none';
|
||||
resultsContainer.style.display = searchTerm.length > 0 ? 'block' : 'none';
|
||||
|
||||
// Perform the search and store the results.
|
||||
|
|
|
|||
2
static/js/searchElasticlunr.min.js
vendored
2
static/js/searchElasticlunr.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue