generated from sindresorhus/electron-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (44 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<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="">
<link rel="shortcut icon" href="https://igv.org/web/img/favicon.ico">
<title>IGV</title>
<!-- 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>
</head>
<body>
<div id="myDiv"></div>
<script type="module">
import MockFile from "./src/renderer/mockFile.js";
var div = document.getElementById("myDiv");
var options =
{
genome: "hg19",
};
igv.createBrowser(div, options)
.then(function (browser) {
console.log("Browser ready");
window.api.receive("fromMain", (data) => {
const configs = JSON.parse(data);
console.log(`Received ${data} from main process`);
for (let c of configs) {
c.url = new MockFile(c.url);
if (c.indexURL) c.indexURL = new MockFile(c.indexURL);
}
browser.loadTrackList(configs)
});
/**
* {id: uid, data: UINT8 array}
*/
window.api.receive("sliceFromMain", data => {
})
})
</script>
</body>
</html>