Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/resources/projects/website/search/quarto-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
}
};

// Clear search highlighting when the user scrolls sufficiently
const resetFn = () => {
resetHighlighting("");
window.removeEventListener("quarto-hrChanged", resetFn);
window.removeEventListener("quarto-sectionChanged", resetFn);
};

// Register this event after the initial scrolling and settling of events
// on the page
window.addEventListener("quarto-hrChanged", resetFn);
window.addEventListener("quarto-sectionChanged", resetFn);

// Responsively switch to overlay mode if the search is present on the navbar
// Note that switching the sidebar to overlay mode requires more coordinate (not just
// the media query since we generate different HTML for sidebar overlays than we do
Expand Down
Loading