From 16a4dc43137edf413849eec4b10dbbcfaa66b2a7 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 8 Mar 2024 14:01:03 -0500 Subject: themes/default/layouts/partials/navigator-middle: Use query selector Search entry -> search box --- assets/js/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'assets/js') 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; -- cgit v1.2.3