doc: Update

This commit is contained in:
github-actions[bot]
2024-06-14 15:35:24 +00:00
parent 6452f3334e
commit 3364469035
423 changed files with 4190 additions and 7585 deletions

View File

@@ -86,6 +86,7 @@ let searchResults = [];
// Exports
window.onInitSearch = onInitSearch;
window.hideResults = hideResults;
/* Event handlers */
@@ -224,6 +225,13 @@ function showResults(query, results) {
showSearchResults(search);
}
function hideResults() {
if (window.history && typeof window.history.pushState === "function") {
let baseUrl = getNakedUrl();
window.history.replaceState(refs.input.value, "", baseUrl + window.location.hash);
}
hideSearchResults();
}
/* Search data instance */