aboutsummaryrefslogtreecommitdiff
path: root/assets/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/index.js')
-rw-r--r--assets/js/index.js10
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;