/
small_example.html
66 lines (61 loc) · 1.67 KB
/
small_example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>stackable.info</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/cyto/cytoscape.min.js"></script>
<script src="js/underscore.js" type="text/javascript"></script>
<script src="js/grapel.js" type="text/javascript"></script>
<script src="js/stackable.js" type="text/javascript"></script>
<script type="text/javascript">
var content = [];
$(function () {
var tag_graph = {
"nodes": [
{
"id": "div",
"start": true,
"view": {
"position": {
"x": 62,
"y": 71
}
}
},
{
"id": "p",
"start": true,
"view": {
"position": {
"x": 125,
"y": 181
}
}
}
],
"edges": [
["div", "div", "tag_path"],
["div", "p", "tag_path"]
]};
$('#demo1').stackable({"tag_graph":tag_graph});
});
</script>
<script src="js/cyto/demo.js"></script>
<link href="css/stackable.css" rel="stylesheet" media="screen">
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet" media="screen">
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<h1>Small Example</h1>
<h2>Demonstration</h2>
<div id="demo1">
<p>paragraph1 text</p>
</div>
<div id="stackable_control_panel"></div>
<h3>Tag Graph</h3>
<div id="graph_vis">
</div>
</body>
</html>