This repository has been archived by the owner on Jul 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
84 lines (65 loc) · 3.11 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; X-Content-Type-Options=nosniff">
<link rel="stylesheet" type="text/css" href="./static/styles.css">
<link rel="stylesheet" type="text/css" href="./static/visview.css">
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet' type='text/css'>
<!-- VS: Call to trace.js -->
<script type="text/javascript" src="./static/traces/trace.js"></script>
<!--<script src="../node_modules/d3/d3.min.js"></script>-->
<script src="./d3.js"></script>
<script src="./node_modules/jquery/dist/jquery.js" type="text/javascript"></script>
<script src="./node_modules/jstorage/jstorage.js"></script>
<script src="./node_modules/moment/moment.js" type="text/javascript"></script>
<script src="./static/science.js"></script>
<script type="text/javascript" charset="utf8" src="./static/DataTables-1.10.7/media/js/jquery.dataTables.js"></script>
<script> var exports = {}; </script>
<script src="./node_modules/vistorian-core/lib/vistorian-core.js"></script>
<script src="./node_modules/vistorian-vis/lib/vistorian-web.js"></script>
</head>
<title>Node link</title>
<body >
<!-- VS: Call to trace_test_130529 -->
<script type="text/javascript" src="./static/traces/trace_test_130529.js"></script>
<table>
<tr>
<td width="220px">
<div width="220" id="visFrame">
</td>
</tr>
</table>
<div id="footer">
<script type="text/javascript">
// Load demo data
$.get("https://raw.githubusercontent.com/networkcube/vistorian/master/demo/demo_scientists.vistorian",
function (data) {
window.exports.networkcube.vistorian.importData(JSON.parse(data), 0);
window.exports.networkcube.vistorian.importData(JSON.parse(data), 0);
});
</script>
</div>
<script type="text/javascript">
if (window.location.port)
SERVER = location.protocol + '//' + window.location.hostname + ':' + window.location.port + '' + window.location.pathname + '/';
else
SERVER = location.protocol + '//' + window.location.hostname + '' + window.location.pathname + '/';
SERVER = SERVER.split('index/')[0]
$(document).ready(function () {
var width = window.innerWidth - 30;
var height = window.innerHeight - 50
var params = {"session": 0, "datasetName": "demo_scientists"}//window.vc.utils.getUrlVars();
params['datasetName'] = params['datasetName'].replace(/___/g, ' ');
window.vc.main.createVisualizationIFrame(
'visFrame',
SERVER + './web/index.html',
params['session'], params['datasetName'],
width, height
);
});
</script>
</body>
</html>