forked from kyleheadley/graphmovie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.html
87 lines (75 loc) · 2.84 KB
/
graph.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
85
86
87
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="lib/joint.all.min.css" />
<link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css" />
<link rel="stylesheet" type="text/css" href="lib/layout-default.css" />
<link rel="stylesheet" type="text/css" href="graph.css" />
<link id="csschoice" rel="stylesheet" type="text/css" href="" />
</head>
<body>
<!-- HEADER SECTION -->
<div id="initcontrols" class="header">
<select id="style" class="header-buttons header-spacing">
<option value="colors" selected>Simple colors</option>
<option value="adapton">Adapton</option>
<option value="hashbaltree">HashTree</option>
</select>
<button id="dolayout" class="header-spacing">Layout Now(beta)</button>
<select id="mode" class="header-buttons header-spacing">
<option value="all" selected>View full state</option>
<option value="diff">Changes only</option>
<option value="no-change">Skip changes</option>
</select>
<input id="zoomnum" type="number" min="10" max="200" step="5" value="100" class="header-spacing" />
<input id="file" type="file" name="file" class="header-spacing" />
</div>
<!-- END OF HEADER SECTION -->
<!-- LEFT PANE -->
<div id="controls-left" class="graphmoviepane">
<div id="listpane" class="graphmoviepane">
<select id="list" size="2">
<option value="-1c-1">No file selected</option>
</select>
</div>
<div id="infobox" class="graphmoviepane"></div>
</div>
<!-- END OF LEFT PANE-->
<!-- RIGHT PANE -->
<div id="centerpane" class="graphmoviepane">
<div id="mainDisplay" class="graphmoviepane"></div>
</div>
<!-- END OF RIGHT PANE -->
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/joint.all.min.js"></script>
<script type="text/javascript" src="lib/joint.layout.DirectedGraph.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui.min.js"></script>
<script type="text/javascript" src="lib/jquery.layout.js"></script>
<script type="text/javascript" src="graph.js"></script>
<script>
$(document).ready(function () {
$('body').layout({
north__paneSelector: "#initcontrols",
west__paneSelector: "#controls-left",
center__paneSelector: "#centerpane",
west__size: 250,
north__maxSize: 50,
north__minSize: 50
});
$('#controls-left').layout({
center__paneSelector: "#listpane",
south__paneSelector: "#infobox",
south__size: 100,
spacing_open: 5,
spacing_closed: 5,
minSize: 50
});
$('#centerpane').layout({
center__paneSelector: "#mainDisplay",
spacing_open: 5,
spacing_closed: 5,
minSize: 30
});
});
</script>
</body></html>