cleaned up JS

This commit is contained in:
partisan 2024-10-22 10:46:47 +02:00
parent 186026fa6d
commit cdd0c13cdc
7 changed files with 82 additions and 75 deletions

View file

@ -1,4 +1,6 @@
// Wait for the DOM to load
/*
This script is responsible for fetching search suggestions when the user types in the search bar. It also shows and hides the search suggestions wrapper.
*/
document.addEventListener('DOMContentLoaded', () => {
const searchInput = document.getElementById('search-input');
const searchWrapper = document.querySelector('.wrapper, .wrapper-results');