-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (50 loc) · 2.96 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" style="height:100%">
<head>
<title>MetExplore Visualization</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<link href="resources/icons/favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<!-- <script id="microloader" type="text/javascript" data-app="c2a09d62-4072-4cd8-93fd-00718ff8a8f2" src="bootstrap.js"></script> -->
<script id="microloader" type="text/javascript" src="bootstrap.js"></script>
<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script type="text/javascript">
function init(){
function whileMetExploreVizNotLoading(func){
this.reloadMetexploreViz(func);
};
// Avoid scrolling when visualisation is panning
var style = parent.document.createElement('style');
document.head.appendChild(style);
style.sheet.insertRule('.stop-scrolling {overflow: hidden;}');
style.sheet.insertRule('body {overflow: overlay;}');
if(parent.document.getElementById('iFrameMetExploreViz')!=null){
var dimensionIFrameMetExploreViz = parent.document.getElementById('iFrameMetExploreViz').getBoundingClientRect();
document.getElementById("visualisation").style.width = dimensionIFrameMetExploreViz.width+"px";
document.getElementById("visualisation").style.height = dimensionIFrameMetExploreViz.height+"px";
}
// Launch metExploreViz after microloader loading
//
// Ext.Microloader.onAllUpdatedAssetsReady = function(){
// Ext.onReady(function() {
// var visu = new metExploreViz('visualisation', parent);
// // Create metExploreViz variable in parent DOM
// parent.metExploreViz = metExploreD3;
// });
// };
Ext.Microloader.checkAllUpdates = function(){
Ext.onReady(function() {
var visu = new metExploreViz('visualisation', parent);
// Create metExploreViz variable in parent DOM
parent.metExploreViz = metExploreD3;
});
};
}
document.addEventListener("DOMContentLoaded", init, false);
</script>
</head>
<body style="height:100%">
<div id ="visualisation" style="height:100%; width:100%;">
</div>
</body>
</html>