-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGlycoTree_OGlycans.StructureBrowser.html
executable file
·54 lines (42 loc) · 1.62 KB
/
GlycoTree_OGlycans.StructureBrowser.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
<!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>
<script src="../JS/ganalytics.js"></script>
</head>
<body>
<div id="gnome"></div>
<script>
"use strict";
let gnome = new GNOmeStructureBrowser("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":"./GlycoTree_OGlycans.BrowserData.min.json",
"theme":"../JS/theme/Sandbox.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>