Advanced search work started

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jason
2026-04-28 16:50:41 -05:00
parent b8c477a59c
commit a6056f69ca
2 changed files with 298 additions and 55 deletions
+10 -2
View File
@@ -1677,8 +1677,16 @@ function showSearchResultsGrid(matches, searchTerm) {
// Handle Advanced Search button click
function handleAdvancedSearch() {
// Navigate to advanced search page
window.location.href = '/quiz/advanced-search';
// Get search text from input field
const searchInput = document.getElementById('searchInput');
const searchText = searchInput ? searchInput.value.trim() : '';
// Navigate to advanced search page with search query parameter
if (searchText) {
window.location.href = '/quiz/advanced-search?q=' + encodeURIComponent(searchText);
} else {
window.location.href = '/quiz/advanced-search';
}
}
// Set up search input event listeners