From e3abecc818711e84ce72c19d8d0f063cf467f7ae Mon Sep 17 00:00:00 2001 From: alkhafaji4 Date: Sun, 20 Oct 2024 14:52:38 -0400 Subject: [PATCH] Small edits for text that shows in result --- search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.js b/search.js index 35c6ba2..4a378dd 100644 --- a/search.js +++ b/search.js @@ -60,13 +60,13 @@ if (document.getElementById('search-input')) { suggestionsList.innerHTML = ''; // Clear suggestions }; - // Add suggestion to the list + // Add suggestion list suggestionsList.appendChild(suggestion); }); } } -// Check if we're on results.html to fetch and display the full search results +// Check if on results.html to fetch and display the full search results if (window.location.pathname.includes('results.html')) { const urlParams = new URLSearchParams(window.location.search); const searchQuery = urlParams.get('q'); // Get the 'q' parameter from the URL