forked from ffnord/ffmap-d3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.html
105 lines (104 loc) · 4.23 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Freifunk Wuppertal - Knotengraph</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/force.css" />
<link rel="stylesheet" type="text/css" href="css/force-light.css" title="light" />
<link rel="stylesheet" type="text/css" href="css/force-big.css" title="big" />
</head>
<body>
<header>
<h1><a href="http://freifunk-wuppertal.net">freifunk-wuppertal.net</a></h1>
<ul>
<li><a href="graph.html">Graph</a></li>
<li><a href="geomap.html">Karte</a></li>
<li><a href="list.html">Liste</a></li>
<li><a href="http://firmware.freifunk-wuppertal.net/">Firmwarebäckerei</a></li>
</ul>
<h1><a href="https://freifunk-rheinland.net/">Freifunk Rheinland e. V.</a></h1>
</header>
<div id="content">
<div id="container">
<div id="chart">
</div>
<div id="sidebar">
<div id="legend">
<h2>Legende</h2>
<ul>
<li><svg width=30 height=20>
<circle cx=15 cy=10 r=8 class="node"/>
</svg>
<label>Knoten</label>
</li>
<li><svg width=30 height=20>
<circle cx=15 cy=10 r=8 class="node"/>
<g class="label">
<circle cx=15 cy=10 r=3 class="dot"/>
</g>
</svg>
<label>mit Koordinaten</label>
</li>
<li><svg width=30 height=20>
<circle cx=15 cy=10 r=8 class="node uplink"/>
</svg>
<label>mit Uplink</label>
</li>
<li><svg width=30 height=20>
<circle cx=15 cy=10 r=8 class="node gateway"/>
</svg>
<label>Gateway</label>
</li>
<li><svg width=30 height=20>
<circle cx=15 cy=10 r=4 class="node client"/>
</svg>
<label>Client</label>
</li>
<li><svg width=30 height=20 class="link">
<line x1="2" y1="10" x2="28" y2="10"/>
</svg>
<label>Link</label>
</li>
<li><svg width=30 height=20 class="link vpn">
<line x1="2" y1="10" x2="28" y2="10"/>
</svg>
<label>VPN-Link</label>
</li>
<li><svg width=140 height=25 class="link vpn">
<defs>
<linearGradient id="linkgrad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#0a3" />
<stop offset="50%" stop-color="orange" />
<stop offset="100%" stop-color="red" />
</linearGradient>
</defs>
<rect x="18" y="12" width="88" height="6" fill="url(#linkgrad)"/>
<text text-anchor="middle" y=8 x=18>gut</text>
<text text-anchor="middle" y=8 x=106>schlecht</text>
</svg>
</li>
<li><svg width=30 height=20 class="uplinks">
<g transform="translate(12,28)">
<line x1="2" y1="10" x2="28" y2="10" stroke="#000"/>
<path d="m -2.8850049,-13.182327 c 7.5369165,0.200772 12.1529864,-1.294922
12.3338513,-10.639456 l 2.2140476,1.018191 -3.3137621,-5.293097
-3.2945999,5.20893 2.4339957,-0.995747 c -0.4041883,5.76426
-1.1549641,10.561363 -10.3735326,10.701179 z"/>
<text text-anchor="middle" y=-17>ℕ</text>
</g>
</svg>
<label>Anzahl VPN-Links</label>
</li>
</ul>
</div>
</div>
</div>
</div>
<footer>
<a href="http://tcatm.github.com/ffmap-d3/">ffmap-d3</a> — © Nils Schneider</a>
</footer>
<script type="text/javascript" src="graph_compiled.js"></script>
</body>
</html>