From 62457781e59ec1fb7b87c72199e2b11b4ff80092 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 6 May 2024 12:45:39 +0200 Subject: [PATCH] Improve search script --- static/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/search.js b/static/js/search.js index 4256301..3aa39f4 100644 --- a/static/js/search.js +++ b/static/js/search.js @@ -7,5 +7,5 @@ function filter_name(str) } } -let articles = Array.from(document.getElementsByTagName("article")); -document.getElementById("search").style.display = "inline-block"; +let articles = Array.from(document.querySelectorAll("article")); +document.querySelector("#search").style.display = "inline-block";