From 23da4fa4123aa329084b48942946f93f939f01f9 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 8 Mar 2023 06:00:41 +0300 Subject: integrate to global search --- .../static/new/javascript/search_autocomplete.js | 2 +- wqflask/wqflask/templates/index_page.html | 56 ++++++++++++++++++++-- 2 files changed, 53 insertions(+), 5 deletions(-) diff --git a/wqflask/wqflask/static/new/javascript/search_autocomplete.js b/wqflask/wqflask/static/new/javascript/search_autocomplete.js index a68dc655..04634f9b 100644 --- a/wqflask/wqflask/static/new/javascript/search_autocomplete.js +++ b/wqflask/wqflask/static/new/javascript/search_autocomplete.js @@ -149,6 +149,6 @@ let search = retrieveSearchHistory() search.unshift(new_search) - localStorage.setItem("gn_search_history", JSON.stringify([...new Set(search)])) + localStorage.setItem("gn_search_history", JSON.stringify([...new Set(search)].splice(0,8))) } \ No newline at end of file diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html index 09f24d5a..0e120d69 100755 --- a/wqflask/wqflask/templates/index_page.html +++ b/wqflask/wqflask/templates/index_page.html @@ -4,6 +4,7 @@ + @@ -62,7 +63,7 @@ -
@@ -115,8 +116,8 @@
-
- +
+
@@ -291,8 +292,30 @@ {%endblock%} {% block js %} + + + + + + @@ -323,5 +372,4 @@ twitterFetcher.fetch(configProfile); - {% endblock %} -- cgit v1.2.3