-
Notifications
You must be signed in to change notification settings - Fork 2
/
CompositionBrowser.html
62 lines (49 loc) · 1.87 KB
/
CompositionBrowser.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GNOme Browser</title>
<style>
* {
font-size: 100%;
font-family: Arial;
}
</style>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<script src="./JS/gnome.js"></script>
</head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-164151077-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-164151077-4');
</script>
<body>
<div id="gnome"></div>
<script>
"use strict";
let gnome = new GNOmeCompositionBrowser("gnome");
let FullScreenControl = new GNOmeDisplayPresetFullScreen(gnome);
FullScreenControl.FixBodyEle();
let InitialPara = FullScreenControl.GetURLParameter();
InitialPara = FullScreenControl.FixAnyHexCount(InitialPara);
let Init = async function (){
// theme: default GlyTouCan GlyGen
await gnome.Init({
"data":"./BrowserData.min.json",
"theme":"./JS/theme/default.min.json",
// "icon_style":"cfg","image_url_prefix":"https://edwardslab.bmcb.georgetown.edu/~wzhang/web/glycan_images/cfg/extended/","image_url_suffix":".png",
// "icon_style":"cfg","image_url_prefix":"https://api.glygen.org/glycan/image/","image_url_suffix":"",
// "icon_style":"snfg", "image_url_prefix":"https://image.glycosmos.org/snfg/png/","image_url_suffix":"",
})
FullScreenControl.ResizeToCurrent();
FullScreenControl.StartMonitor();
FullScreenControl.UpdateGNOmeBrowser(InitialPara);
}
Init();
</script>
</body>
</html>