-
Notifications
You must be signed in to change notification settings - Fork 1
/
index_springy.html
36 lines (35 loc) · 1011 Bytes
/
index_springy.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="graph-common.css"/>
<script src="vendor/springy.js"></script>
<script src="vendor/svg-pan-zoom.js"></script>
<script src="graph-common.js"></script>
<script src="graph-springy.js"></script>
<script type="text/javascript">//<![CDATA[
document.addEventListener('DOMContentLoaded', function() {
graph = new damasGraph( document.getElementById('graph'));
graph.fetchJSONFile('json/bigbuckbunny_characters.json', function(data){
graph.load(data);
});
});
//]]>
</script>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<div id="graph"></div>
<div id="graphDebug">
DEBUG:
<span id="graphDebugNbNodes">0</span> node(s),
<span id="graphDebugNbEdges">0</span> edge(s),
<span id="graphDebugNbSelection">0</span> selected<br/>
<div id="graphDebugFileKeys"></div>
</div>
</body>
</html>