From e41f17ec974e613ddfbe4232669c878b598d71e9 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 8 Jan 2024 17:35:50 +0300 Subject: code refactoring for gn llm ui --- gn2/wqflask/templates/gnqa.html | 50 ++++++++----------- gn2/wqflask/templates/gnqa_answer.html | 87 ++-------------------------------- 2 files changed, 24 insertions(+), 113 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/templates/gnqa.html b/gn2/wqflask/templates/gnqa.html index 46cc1e90..a2febb17 100644 --- a/gn2/wqflask/templates/gnqa.html +++ b/gn2/wqflask/templates/gnqa.html @@ -4,27 +4,12 @@ {% block content %} - +
-
-
-
- -
+
+

GN LLM DESCRIBPTION GOES HERE

-
- -
@@ -75,6 +53,20 @@ required placeholder="Ask a Question or Topic e.g ( Genes) " value='' name="quer }) + $('#globalsearchform').hide() + $('#gnqna_search_home').show() + $('footer').hide() + $("#gnqna_search_home_input").keypress(function(event) { + if (event.keyCode === 13) { + console.log("clicked this button") + $('#gnqna_search_home').submit(); + let spinner = $("#loader") + spinner.show(); + + } + }) + + }); diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 99242b29..c8ec9bbb 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -4,96 +4,15 @@ {% block content %} - + {% block css %} + {% endblock %}