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";