-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.html
210 lines (174 loc) · 9.27 KB
/
search.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DNA Damage and Repair Database</title>
<link rel="stylesheet" href="/css/foundation.css">
<link rel="stylesheet" href="/css/app.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Font Style -->
<link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">
<!-- import JQuery, JQuery UI, Mongo Stitch, Plotly JS, BootstrapJS, and Google Fonts -->
<script src="/frontend/jquery-3.2.1.js"></script>
<link rel="stylesheet" href="/ui/jquery-ui.min.css">
<link rel="stylesheet" href="/frontend/style.css">
<script src="/ui/external/jquery/jquery.js"></script>
<script src="/ui/jquery-ui.min.js"></script>
<script src="https://s3.amazonaws.com/stitch-sdks/js/library/v3/stable/stitch.min.js"></script>
<script src="/plotly-latest.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Cabin" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Trocchi" rel="stylesheet">
<!-- Import IGV.JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.min.js"></script>
<script src="/frontend/script.js"></script>
</head>
<body>
<div class="off-canvas-wrapper">
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
<!-- OFF-CANVAS MENU -->
<div class="off-canvas position-left" id="mobile-menu" data-off-canvas>
<!-- <ul>
<li><a href="#">Home</a></li>
<li>
<a href="#">Browse</a>
<div class="dropdown">
<button class="dropbtn">Browse
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="/frontend/humanBrowser.html" class = 'navLinks'>HUMAN </a>
<a href="/frontend/mouseBrowser.html" class = 'navLinks'>MOUSE</a>
<a href="/frontend/arabidopsisBrowser.html" class = 'navLinks'>ARABIDOPSIS</a>
<a href="/frontend/yeastBrowser.html" class = 'navLinks'>YEAST</a>
<a href="/frontend/ecoliBrowser.html" class = 'navLinks'>E.COLI</a>
</div>
</div>
</li>
<li><a href="#">Search</a></li>
<li><a href="#">Download</a></li>
<li><a href="#">Help</a></li>
</ul> -->
<button class="accordion" id="home">Home</button>
<script type="text/javascript">
document.getElementById("home").onclick = function () {
location.href = "index.html";
};
</script>
<button class="accordion" id="browse">Browse</button>
<div class="panel">
<ul style="text-align:left">
<p>
<a href="/frontend/humanBrowser.html" class = 'navLinks'>Human </a>
<a href="/frontend/mouseBrowser.html" class = 'navLinks'>Mouse</a>
<a href="/frontend/arabidopsisBrowser.html" class = 'navLinks'>Arabidopsis</a>
<a href="/frontend/yeastBrowser.html" class = 'navLinks'>Yeast</a>
<a href="/frontend/ecoliBrowser.html" class = 'navLinks'>E.Coli</a>
</p>
</ul>
</div>
<button class="accordion" id="search">Search</button>
<script type="text/javascript">
document.getElementById("search").onclick = function () {
location.href = "search.html";
};
</script>
<button class="accordion" id="download">Download</button>
<script type="text/javascript">
document.getElementById("download").onclick = function () {
location.href = "download.html";
};
</script>
<button class="accordion" id="help">Help</button>
<script type="text/javascript">
document.getElementById("help").onclick = function () {
location.href = "help.html";
};
</script>
</div>
<!-- KEEP -->
<div class="off-canvas-content" data-off-canvas-content>
<!-- MOBILE NAVIGATION -->
<div class="title-bar show-for-small-only">
<div class="title-bar-left">
<button class="menu-icon" type="button" data-open="mobile-menu"></button>
<!-- <span class="title-bar-title">MENU</span> -->
</div>
<div class="title-bar-center show-for-small-only"><img class="logo-image logo-center" src="img/xr_logo_white.png" width="75" height="92"></img></div>
</div>
<!-- DESKTOP NAVIGATION -->
<div id = 'header'></div>
<!-- MAIN SECTION -->
<section class="main">
<div id = 'mainDiv' class = "wrap">
<!-- TODO-implement tabs -->
<div class = "wrap">
<div>
<!-- more organisms to be added -->
<div id = "querySelectors">
<div id = "nameSelector">
<div id = 'organismName'>Select an organism: <span id = "nameHover"></span></div>
<div class = "row medium-unstack" id = 'orgPics'>
<img class = "thumbnail" id = "Human" alt = "Pic of Human" src = "img/human.png">
<img class = "thumbnail" id = "Arabidopsis" alt = "Pic of Arabidopsis" src = "img/Arabidopsis.png">
<img class = "thumbnail" id = "Ecoli" alt = "Pic of E.Coli" src = "img/bacterium.png">
<img class = "thumbnail" id = "Mouse" alt = "Pic of Mouse" src = "img/mouse.png" style = "border-color: #32CD32">
</div>
</div>
<!-- 'row' encompasses both query fields -->
<!--<div class = "row">-->
<div class = 'tabs centered' id = 'tabsList'>
<ul>
<li class = 'tabsList' id = 'geneNameTab'> <a href = '#tabs-1'> Gene Name </a></li>
<li class = 'tabsList' id = 'chrRegionTab'> <a href = '#tabs-2'> Chromosome Region</a></li>
</ul>
<!-- Search gene name div below -->
<div id = 'tabs-1' class = "centered">
<input type = 'text' class='inline' id = 'gene' placeholder="Gene name">
<button id = 'submitGeneName' class="button" type="button" data-tooltip aria-haspopup="true" class="has-tip" data-disable-hover="false" tabindex="1" title="Or press 'Enter' to search :)" data-position="bottom" data-alignment="left">
Submit
</button>
</div>
<!--<div class = "large-1 columns" id = 'or'> <h2>OR</h2> </div> -->
<!-- Search chr region div below-->
<div id = 'tabs-2' class = "centered">
<div class = 'containerChrRegion'>
<div id = 'chrDropDiv' class = 'small-2 large-4 columns'> </div>
<div>
<input type = 'number' class="inline small-2 large-4 columns" id = 'startChr' placeholder="Start position">
</div>
<div>
<input type = 'number' class="inline small-2 large-4 columns" id = 'endChr' placeholder="End position">
</div>
</div>
<button id = 'submitChr' class="button" type="button" data-tooltip aria-haspopup="true" class="has-tip" data-disable-hover="false" tabindex="1" title="Or press 'Enter' to search :)" data-position="bottom" data-alignment="left">
Submit
</button>
</div>
<!-- </div> -->
</div>
</div>
<div id = 'results'>
</div>
<div id = "pagination"></div>
<div id = 'plots' class = "row medium-unstack"></div>
</div>
</div>
</div>
<!-- For IGV.js -->
<div id = "igvContainer">
</div>
</section>
<!-- FOOTER -->
<div id = 'footer'></div>
</div>
</div>
</div>
<script src="js/vendor/what-input.js"></script>
<script src="js/vendor/foundation.js"></script>
<script src="js/app.js"></script>
<script src="js/accordion.js"></script>
</body>
</html>