mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
7 lines
287 B
JavaScript
7 lines
287 B
JavaScript
// Trigger the Read the Docs Addons Search modal when clicking on "Search docs" input from the topnav.
|
|
document.querySelector("[role='search'] input").addEventListener("focusin", () => {
|
|
const event = new CustomEvent("readthedocs-search-show");
|
|
document.dispatchEvent(event);
|
|
});
|
|
|