diff options
author | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
commit | 16a4dc43137edf413849eec4b10dbbcfaa66b2a7 (patch) | |
tree | e18d4ee6572628db24d59d5feba7f09ff6436c1c /static/js | |
parent | 7880038d9577fb0a14a30d2f7fab9f25304d8fd1 (diff) | |
download | canory-16a4dc43137edf413849eec4b10dbbcfaa66b2a7.tar.gz canory-16a4dc43137edf413849eec4b10dbbcfaa66b2a7.tar.bz2 canory-16a4dc43137edf413849eec4b10dbbcfaa66b2a7.zip |
themes/default/layouts/partials/navigator-middle: Use query selector
Search entry -> search box
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/fixedsearch.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/static/js/fixedsearch.ts b/static/js/fixedsearch.ts index f933dd7..04d318b 100644 --- a/static/js/fixedsearch.ts +++ b/static/js/fixedsearch.ts @@ -8,11 +8,11 @@ (function () { ["DOMContentLoaded", "URLChangedCustomEvent"].forEach(function (event) { self.addEventListener(event, function () { - const form = document.getElementById("search-form"); // targets <form> - const query = document.getElementById("search-input"); // targets <input> - const submit = document.getElementById("search-submit"); // targets <button> - const dropdown = document.getElementById("search-results"); // targets <ul> - const container = document.getElementById("search-frame"); // targets parent + const container = document.querySelector("search-box"); + const dropdown = document.querySelector("search-box ul"); + const form = document.querySelector("search-box form"); + const query = document.querySelector("search-box input"); + const submit = document.querySelector("search-box button"); function first(element) { if (element.firstChild.nextElementSibling) { |