-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvis.html
More file actions
64 lines (55 loc) · 1.1 KB
/
vis.html
File metadata and controls
64 lines (55 loc) · 1.1 KB
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
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
stroke: #000;
stroke-width: 1.5px;
}
.node {
fill: #000;
stroke: #fff;
stroke-width: 1.5px;
}
.nodelabel {
stroke: #000;
stroke-width: 0.5px;
text-anchor: "middle";
}
table,tr,td,th {
border: 1px solid;
border-collapse:collapse;
padding: 3px ;
}
#menu {
top: 5 ;
left: 5 ;
position: absolute;
}
.menuitem {
background-color:#b0c4de;
border-style:solid;
border-width:1px;
border-collapse:collapse;
margin: 2px ;
padding: 2px ;
}
/*
individual node color classes
*/
.node.host { fill: #1f77b4; }
.node.VoIP { fill: #1f77b4; }
.node.group { fill: #ff7f0e; }
.node.ovs { fill: #2ca02c; }
</style>
<body>
<script src="d3/d3.v3.min.js"></script>
<script src="vis.js"></script>
<div class="menuBlock" id="menu">Display:
<div class="menuitem" id="hosts">Hosts</div>
<div class="menuitem" id="groups">Groups</div>
<div class="menuitem" id="switches">Switches</div>
<div class="menuitem" id="uplinks">Uplinks</div>
<div class="menuitem" id="flows">Flows</div>
</div>
</body>
</html>