diff --git a/app/static/js/script.js b/app/static/js/script.js
index 9c68169..5ddf309 100644
--- a/app/static/js/script.js
+++ b/app/static/js/script.js
@@ -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
diff --git a/app/templates/advanced_search.html b/app/templates/advanced_search.html
index d172455..7c5edc4 100644
--- a/app/templates/advanced_search.html
+++ b/app/templates/advanced_search.html
@@ -9,52 +9,62 @@
-
-
🚧
-
Work in Progress
-
Advanced Search Features Coming Soon
-
-
-
Planned Features:
-
- - Multi-criteria filtering (type, material, color, size)
- - Price range filters
- - Availability by location
- - Advanced product specifications search
- - Compatibility matching
- - Save and share custom searches
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+