forked from igvteam/igv-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
467 lines (356 loc) · 17.5 KB
/
index.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
<!DOCTYPE html>
<html lang="en" class="igv-app-html">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv=“Pragma” content=”no-cache”>
<meta http-equiv=“Expires” content=”-1″>
<meta http-equiv=“CACHE-CONTROL” content=”NO-CACHE”>
<title>IGV</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<!-- Font Awesome -->
<link rel="stylesheet" href="css/fontawesome/all.css">
<!-- Bootstrap 4 CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css">
<!-- DataTables CSS -->
<link rel="stylesheet" href="https://cdn.datatables.net/v/dt/dt-1.10.20/sl-1.3.1/datatables.min.css">
<!-- CSS -->
<link rel="stylesheet" href="css/app.css">
<!-- IGV JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.min.js"></script>
<!-- <script src="https://igv.org/web/snapshot/dist/igv.js"></script>-->
<!-- Development hack -- uncomment the code below and edit url to igv.js as appropriate to debug igv.js source -->
<!-- <script type="module">-->
<!-- import igv from "http://localhost/igv.js/js/index.js";-->
<!-- window.igv = igv;-->
<!-- </script>-->
<!-- Dropbox Chooser API-->
<script id="dropboxjs" src="https://www.dropbox.com/static/api/2/dropins.js"
data-app-key="8glijwyao9fq8we"></script>
<!-- Bootstrap 4 and Dependancies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/js/bootstrap.min.js"></script>
<!-- Datatables JS -->
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.20/sl-1.3.1/datatables.min.js"></script>
<!-- Google Platform JS -->
<script src="https://apis.google.com/js/platform.js"></script>
<!-- Twitter -->
<script src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script type="text/javascript" src="./igvwebConfig.js"></script>
<script type="module" src="js/app.js"></script>
</head>
<body class="igv-app-body-footerized">
<nav class="navbar fixed-top py-0 navbar-expand-sm navbar-dark justify-content-between">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#igv-app-navbar-navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="igv-app-navbar-navigation" class="collapse navbar-collapse">
<ul class="navbar-nav">
<!-- Genome -->
<li class="nav-item px-3">
<div class="dropdown">
<a id="igv-app-genome-dropdown-button" class="dropdown-toggle" href="#" data-toggle="dropdown">
Genome
</a>
<div id="igv-app-genome-dropdown-menu" class="dropdown-menu">
<!-- local file -->
<label class="dropdown-item btn btn-default btn-file">
<div class="igv-app-dropdown-item-cloud-storage">
<div>
Local File ...
</div>
<div>
<input id="igv-app-dropdown-local-genome-file-input" type="file" name="file"
multiple style="display: none;">
</div>
</div>
</label>
<!-- Dropbox -->
<div class="dropdown-item">
<div id="igv-app-dropdown-dropbox-genome-file-button"
class="igv-app-dropdown-item-cloud-storage">
<div>Dropbox</div>
<div><img id="igv-app-genome-dropbox-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>
<!-- Google Drive -->
<div class="dropdown-item">
<div id="igv-app-dropdown-google-drive-genome-file-button"
class="igv-app-dropdown-item-cloud-storage">
<div>Google Drive</div>
<div><img id="igv-app-genome-google-drive-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>
<!-- URL -->
<button class="dropdown-item" type="button" data-toggle="modal"
data-target="#igv-app-genome-from-url-modal">URL ...
</button>
<div id="igv-app-genome-dropdown-divider" class="dropdown-divider"></div>
</div>
</div>
</li>
<!-- Tracks -->
<li class="nav-item px-3">
<div id="igv-app-track-dropdown" class="dropdown">
<a id="igv-track-dropdown-button" class="dropdown-toggle" href="#" data-toggle="dropdown">
Tracks
</a>
<div id="igv-app-track-dropdown-menu" class="dropdown-menu">
<!-- local file -->
<label class="dropdown-item btn btn-default btn-file">
<div class="igv-app-dropdown-item-cloud-storage">
<div>
Local File ...
</div>
<div>
<input id="igv-app-dropdown-local-track-file-input" type="file" name="file" multiple
style="display: none;">
</div>
</div>
</label>
<!-- Dropbox -->
<div class="dropdown-item">
<div id="igv-app-dropdown-dropbox-track-file-button"
class="igv-app-dropdown-item-cloud-storage">
<div>Dropbox</div>
<div><img id="igv-app-track-dropbox-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>
<!-- Google Drive -->
<div class="dropdown-item">
<div id="igv-app-dropdown-google-drive-track-file-button"
class="igv-app-dropdown-item-cloud-storage">
<div>Google Drive</div>
<div><img id="igv-app-track-google-drive-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>
<!-- URL -->
<button class="dropdown-item" type="button" data-toggle="modal"
data-target="#igv-app-track-from-url-modal">
URL ...
</button>
<div id="igv-app-annotations-section" class="dropdown-divider">
</div>
</div>
</div>
</li>
<!-- Session -->
<li class="nav-item px-3">
<div class="dropdown">
<a id="igv-app-session-dropdown-button" class="dropdown-toggle" href="#" data-toggle="dropdown">
Session
</a>
<div id="igv-session-dropdown-menu" class="dropdown-menu">
<!-- Load local session file -->
<label class="dropdown-item btn btn-default btn-file">
<div class="igv-app-dropdown-item-cloud-storage">
<div>
Local File ...
</div>
<div>
<input id="igv-app-dropdown-local-session-file-input" type="file" name="file"
style="display: none;">
</div>
</div>
</label>
<!-- Dropbox -->
<!-- Google Drive -->
<!-- Session URL -->
<button class="dropdown-item" type="button" data-toggle="modal" data-target="#igv-app-session-url-modal">
Load URL ...
</button>
<div class="dropdown-divider"></div>
<!-- Save local session file -->
<button class="dropdown-item" type="button" data-toggle="modal" data-target="#igv-app-session-save-modal">
Save ...
</button>
</div>
</div>
</li>
<!-- Share (generate URL) -->
<li class="nav-item px-3">
<div>
<a id="igv-app-share-button" href="#" data-toggle="modal" data-target="#igv-app-share-modal">
Share
</a>
</div>
</li>
<!-- Bookmark -->
<li class="nav-item px-3">
<div>
<a id="igv-app-bookmark-button" href="#">
Bookmark
</a>
</div>
</li>
<!-- Save SVG -->
<li class="nav-item px-3">
<div>
<a id="igv-app-save-svg-button" href="#" data-toggle="modal" data-target="#igv-app-svg-save-modal">
Save SVG
</a>
</div>
</li>
<!-- Help Menu -->
<li class="nav-item px-3">
<div id="igv-app-help-dropdown" class="dropdown">
<a id="igv-app-help-button" class="dropdown-toggle" href="#" data-toggle="dropdown">
Help
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="https://igvteam.github.io/igv-webapp/" target="_blank">Documentation</a>
<a class="dropdown-item" href="https://github.com/igvteam/igv-webapp" target="_blank">GitHub
Repository</a>
<a class="dropdown-item" href="https://groups.google.com/group/igv-help" target="_blank">User
Forum</a>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#igv-app-help-about-modal">About
IGV-Web</a>
</div>
</div>
</li>
</ul>
</div>
</nav>
<main id="igv-main" role="main" class="container-fluid">
<!-- App container -->
<div class="row">
<div class="col-sm">
<div id="igv-app-container">
</div>
</div>
</div>
<!-- Share URL Modal -->
<div id="igv-app-share-modal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<div id="igv-app-share-input-modal-close-button" class="modal-title">Share</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<!-- copy url -->
<div class="row">
<div class="col-sm-8">
<div class="form-group">
<input id="igv-app-share-input" type="text" class="form-control" placeholder="">
</div>
</div>
<div class="col-sm-2">
<button id="igv-app-copy-link-button" type="button" class="btn btn-sm btn-default">
COPY
</button>
</div>
</div>
<!-- social buttons -->
<div class="igv-app-social-button-container">
<div id="igv-app-tweet-button-container">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button"
data-show-count="false">TWEET</a>
</div>
<div>
<a id="igv-app-email-button" href="mailto:?body=https://aidenlab.org/juicebox">EMAIL</a>
</div>
<div id="igv-app-embed-button">EMBED</div>
<div id="igv-app-qrcode-button">QR CODE</div>
</div>
<!-- qr code image -->
<div class="row justify-content-center">
<div id="igv-app-qrcode-image" class="col-4"></div>
</div>
<!-- embed widget -->
<div id="igv-app-embed-container" class="row">
<div class="col-sm-9 form-group">
<textarea class="form-control" rows="4"></textarea>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default">COPY</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- SVG save -->
<div id="igv-app-svg-save-modal" class="modal fade igv-app-file-save-modal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<div id="igv-app-svg-save-modal-label" class="modal-title">
<div>
Save SVG File
</div>
</div>
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<input class="form-control" type="text" placeholder="igv-app.svg">
<div>
Enter filename with .svg suffix
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-sm btn-secondary">OK</button>
</div>
</div>
</div>
</div>
<!-- Help - About - Modal -->
<div id="igv-app-help-about-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">About IGV-Web</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="igv-app-version"></div>
<div id="igv-igvjs-version"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</main>
<footer class="igv-app-footer">
<div>
<a href="https://igv.org" target="_blank">
<img src="img/igv-logo-cooked-40x40.png" width="32" height="32"> igv.org
</a>
</div>
<div id="igv-version-label">
</div>
<div>
<div id="igv-app-ucsd-logo">
<a href="https://ucsd.edu/" target="_blank" title="University of California at San Diego">
<img src="img/ucsd-logo.svg" width="123" height="24" alt="University of California at San Diego">
</a>
</div>
<div id="igv-app-broad-logo">
<a href="https://www.broadinstitute.org" target="_blank" title="Broad Institute home page">
<img src="https://igv.org/app/img/broad-institute-logo.svg" width="95" height="24"
alt="Broad Institute logo">
</a>
</div>
</div>
</footer>
</body>
</html>