forked from igvteam/igv.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
33 lines (22 loc) · 713 Bytes
/
embed.html
File metadata and controls
33 lines (22 loc) · 713 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- IGV JS -->
<script src="./dist/igv.min.js"></script>
</head>
<body>
<!-- This page contains an undecorated igv.js instance. Its purpose is to serve as an iFrame src for embedding igv.js view -->
<div id="igvDiv"/>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
var div = document.getElementById('igvDiv');
var config = {
queryParametersSupported: true
};
igv.createBrowser(div, config);
})
</script>
</body>
</html>