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 /assets/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 'assets/js')
-rw-r--r-- | assets/js/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index e8e307a..e0e0436 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -395,11 +395,11 @@ "URLChangedCustomEvent" ].forEach(function(event) { self.addEventListener(event, function() { - const form = document.getElementById("search-form"); - const query = document.getElementById("search-input"); - const submit = document.getElementById("search-submit"); - const dropdown = document.getElementById("search-results"); - const container = document.getElementById("search-frame"); + 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) { return element.firstChild.nextElementSibling.firstChild.nextElementSibling; |