From 4d0aab6a8f4fe2d9e20b8db4619b9f49dec23a08 Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Sun, 15 Mar 2020 22:28:16 -0400 Subject: [PATCH] Optimization for the Search - Stop to Reload the page, now it recreates the list dynamically. - Search support "enter" - Clean up the layout by removing waste of spaces. - Moved the Contribution invitation under the Result List (Maybe the link should point on Project Athena website for the details, user are not all familiar with Github) Co-Authored-By: Keb Helion <60008426+KebHelion@users.noreply.github.com> --- more/more.html | 73 ++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/more/more.html b/more/more.html index f003163..f2debf6 100644 --- a/more/more.html +++ b/more/more.html @@ -73,11 +73,16 @@ //Search function doSearch(keyword) { - location.href = "more.html?offset=0&search=" + encodeURI(keyword); + offset = 0; + search = keyword; + listBuilder(keyword, offset, perpage); } function clearSearch() { - location.href = "more.html?offset=0"; + offset = 0; + document.searchbar.searchtextbox.value = ""; + search = ""; + listBuilder("", offset, perpage); } //Running scripts @@ -139,9 +144,8 @@ -
-

Add more functionalities...

-

Want to add your own app? Read the guide!

+ + Add more functionalities...
@@ -149,7 +153,7 @@
@@ -163,29 +167,29 @@
-
+
- +

Want to contribute and add your own app?
Read the guide!

-