summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-bmx7/ucode/template/bmx7/bmxtopology.ut
blob: 8af2a885e0bea69d870b330e404b3b51d889935d (plain)
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
{% include('header', { }) %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.12/d3.min.js" integrity="sha512-uy3foVtL4u0+5430l7zZt4PHjVtICfrbu3mtzdanR425sKD7kS5264djeZAzNIV0l4vc1QkFpW2+G5i5KoJIFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="{{ resource }}/bmx7/js/netjsongraph.js"></script>

<link href="{{ resource }}/bmx7/css/netjsongraph.css" rel="stylesheet">
<style>
		body {
			font-family: Arial, sans-serif;
			font-size: 13px;
		}

		.njg-overlay{
			width: auto;
			height: auto;
			min-width: 200px;
			max-width: 400px;
			border: 1px solid #000;
			border-radius: 2px;
			background: rgba(0, 0, 0, 0.7);
			top: 10px;
			right: 10px;
			padding: 0 15px;
			font-family: Arial, sans-serif;
			font-size: 14px;
			color: #fff
		}

		.njg-node {
			fill: #008000;
			fill-opacity: 0.8;
			stroke: #008000;
			stroke-width: 1px;
			cursor: pointer;
		}
		.njg-node:hover,
		.njg-node.njg-open{
			fill-opacity: 1;
		}

		.njg-link {
			stroke: #00ff00;
			stroke-width: 2;
			stroke-opacity: .5;
			cursor: pointer;
		}
		.njg-link:hover,
		.njg-link.njg-open{
			stroke-width: 3;
			stroke-opacity: 1
		}
</style>
<script>d3.netJsonGraph("/cgi-bin/bmx7-info?netjson/network-graph.json", { defaultStyle: false });</script>
{% include('footer', { }) %}