aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gnqa.html
blob: bed2627dee356b01d1465891b4b0935323e8dd92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "base.html" %}
{% block title %}GNQNA{% endblock %}

{% block content %} <!-- Start of body -->


    <style>
   


   #gnqna_search {
    padding:15px  10px;
    border-radius: 15px;
    border:1px solid blue;
   }

  #gnqna_search{
    font-weight: bold;
    font-weight: 18px;
  }

   #main-search-controller{
  display: flex;
  justify-content: center;
  align-items: center;
}

</style>


<div style="height: 100vh;width: 100vw; ">
<div id="main-search-controller" style="margin: 20px;width: 100%;height: 100%;">
<div id="gnqna_controller">
  <form method="POST" action="/gnqna" id="gnqna_form">
  <input  id="gnqna_search" style="width:45vw" type="text" autocomplete="off" 
required placeholder="Ask a Question or Topic ( Genes) " value='' name="querygnqa">

</form>
</div>

</div>

<div>

</div>


<script src="{{ url_for('js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script>

 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript">

    document.addEventListener('DOMContentLoaded', function() {

       $("#gnqna_search").keyup(function(event) {
            if (event.keyCode === 13) {
            $('#gnqna_form').attr('action', "/gnqna").submit();
            }
        })


    });


</script>
<!-- Bootstrap JS and Popper.js -->
{% endblock %}