diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 776cb7212..9c65cf707 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -54,6 +54,10 @@ meeting Try Redis + + Open search + {{ partial "icons/search.html" }} + Open main menu diff --git a/layouts/partials/search-modal.html b/layouts/partials/search-modal.html index 7b2cc3f64..e25b0b1e2 100644 --- a/layouts/partials/search-modal.html +++ b/layouts/partials/search-modal.html @@ -68,6 +68,7 @@ const searchModal = (() => { const searchSite = encodeURIComponent(window.location.pathname) const searchButton = document.querySelector('#search-button') + const searchButtonMobile = document.querySelector('#search-button-mobile') const searchContainer = document.querySelector('#search-container') const searchInput = searchContainer.querySelector('#search-input') const searchSelect = searchContainer.querySelector('#search-select') @@ -391,7 +392,7 @@ // Click handler function function clickHandler(event) { - if (event.target.closest('#search-button')) { + if (event.target.closest('#search-button') || event.target.closest('#search-button-mobile')) { startSearch() } else if (event.target.closest('#search-cancel') || event.target.matches('#search-container')) { stopSearch()