-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
379 lines (365 loc) · 17.3 KB
/
index.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>OpenWiFiMap</title>
<link rel="icon" href="images/favicon.ico" />
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.2/leaflet.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.2/leaflet.ie.min.css" />
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.2/leaflet.js"></script>
<link rel="stylesheet" href="external/leaflet-markercluster/MarkerCluster.css" />
<link rel="stylesheet" href="external/leaflet-markercluster/MarkerCluster.Default.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="external/leaflet-markercluster/MarkerCluster.Default.ie.css" /><![endif]-->
<script src="external/leaflet-markercluster/leaflet.markercluster-src.js"></script>
<script src="external/leaflet/Bing.js"></script>
<!--leaflet end-->
<script src="https://andrenarchy.github.io/jquery-mobile-params/jquery-mobile-params.js"></script>
<script>
$(document).on("mobileinit", function(){
$.mobile.defaultHomeScroll = 0;
});
</script>
<script src="https://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<script src="external/icanhaz/ICanHaz.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'https://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
<script src="https://andrenarchy.github.io/couchmap/script/couchmap.js"></script>
<link rel="stylesheet" href="style/owm_widget.css" />
<script src="script/owm_widget.js"></script>
<link rel="stylesheet" href="style/owm_app.css" />
<script src="script/owm_app.js" type="text/javascript"></script>
<script id="mappopupmust" type="text/html">
<a href="#detail?node={{id}}" class="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-b">
<span class="ui-btn-inner ui-btn-corner-all">
<span class="ui-btn-text">{{hostname}}</span>
</span>
</a>
</script>
<script id="about_contrib_must" type="text/html">
{{#contributors}}
<div class="gh-contrib">
<a href="{{html_url}}" class="ui-link"><img class="gh-avatar" src="{{avatar_url}}" />{{login}}</a>,
</div>
{{/contributors}}
</script>
<script id="mapiconsvg" type="text/html">
<svg width="{{w}}" height="{{h}}">
<defs>
<radialGradient id="gradfill" gradientUnits="userSpaceOnUse" cx="{{hw}}" cy="{{hh}}" r="{{r}}" fx="{{hw}}" fy="{{hh}}">
<stop offset="0%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="20%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="25%" style="stop-color:rgb(0,0,255); stop-opacity:0.75" />
<stop offset="30%" style="stop-color:rgb(0,0,255); stop-opacity:0.75" />
<stop offset="35%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="40%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="45%" style="stop-color:rgb(0,0,255); stop-opacity:0.55" />
<stop offset="50%" style="stop-color:rgb(0,0,255); stop-opacity:0.55" />
<stop offset="55%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="60%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="65%" style="stop-color:rgb(0,0,255); stop-opacity:0.35" />
<stop offset="70%" style="stop-color:rgb(0,0,255); stop-opacity:0.35" />
<stop offset="75%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="80%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
<stop offset="85%" style="stop-color:rgb(0,0,255); stop-opacity:0.15" />
<stop offset="90%" style="stop-color:rgb(0,0,255); stop-opacity:0.15" />
<stop offset="95%" style="stop-color:rgb(0,0,255); stop-opacity:0" />
</radialGradient>
<radialGradient id="gradline" gradientUnits="userSpaceOnUse" cx="{{hw}}" cy="{{hh}}" r="{{r}}" fx="{{hw}}" fy="{{hh}}">
<stop offset="0%" style="stop-color:rgb(0,0,255); stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:0" />
</radialGradient>
</defs>
{{{paths}}}
</svg>
</script>
<script id="listmust" type="text/html">
<ul data-role="listview" id="listul">
{{#nodes}}
<li><a href="#detail?node={{id}}&bbox={{bbox}}" data-transition="slide">
<h3>{{hostname}}</h3>
<p>
{{#tags}}#{{.}} {{/tags}}
{{^tags}} {{/tags}}
</p>
</a></li>
{{/nodes}}
</ul>
</script>
<script id="detailmust" type="text/html">
<div class="titlecont">
<div id="avaframe">
<img id="avatar" src="images/wifi_icon60.png" />
</div>
<h2><a href="https://{{_id}}">{{hostname}}</a></h2>
</div>
<!--div data-role="collapsible-set"-->
<div data-role="collapsible" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-collapsed="false">
<h3>Map and address</h3>
<div class="ui-grid-a">
<div class="ui-block-a" id="detailmapcontainer"><div id="detailmap"></div></div>
<div class="ui-block-b" id="detailaddrcontainer"><div class="ui-bar">
<p>
{{#postalAddress}}
<h4>Postal address</h4>
{{name}}<br/>
{{street}}<br/>
{{zip}} {{city}}<br/>
{{country}}
{{/postalAddress}}
{{#freifunk}}
{{#contact}}
<h4>Contact details</h4>
{{name}} ({{nickname}})</br>
{{location}}</br>
{{mail}}
{{/contact}}
{{/freifunk}}
</p>
<a id="detailmapcenter" data-role="button" data-icon="home">Center map</a>
</div></div>
</div>
</div>
{{#interfaces?}}
<div data-role="collapsible" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
<h3>Network interfaces</h3>
{{#interfaces}}
<div data-role="collapsible" data-theme="c" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
<h4>Interface {{name}}</h4>
<table class="fifty">
{{#physicalType}}
<tr>
<td>Physical type</td>
<td>{{physicalType}}</td>
</tr>
{{/physicalType}}
{{#ipv4Addresses?}}
<tr>
<td>IPv4 addresses</td>
<td>
{{#ipv4Addresses}}
{{.}}<br />
{{/ipv4Addresses}}
</td>
</tr>
{{/ipv4Addresses?}}
{{#ipv6Addresses?}}
<tr>
<td>IPv6 addresses</td>
<td>
{{#ipv6Addresses}}
{{.}}<br />
{{/ipv6Addresses}}
</td>
</tr>
{{/ipv6Addresses?}}
{{#macAddress}}
<tr>
<td>MAC address</td>
<td>{{macAddress}}</td>
</tr>
{{/macAddress}}
{{#accessNote}}
<tr>
<td>Access Note</td>
<td>{{accessNote}}</td>
</tr>
{{/accessNote}}
{{#channel}}
<tr>
<td>Wireless Channel</td>
<td>{{channel}}</td>
</tr>
{{/channel}}
{{#ssid}}
<tr>
<td>Wireless SSID</td>
<td>{{ssid}}</td>
</tr>
{{/ssid}}
{{#bssid}}
<tr>
<td>Wireless BSSID</td>
<td>{{bssid}}</td>
</tr>
{{/bssid}}
{{#mode}}
<tr>
<td>Wireless Mode</td>
<td>{{mode}}</td>
</tr>
{{/mode}}
{{#txpower}}
<tr>
<td>Wireless TX Power</td>
<td>{{txpower}} dBm</td>
</tr>
{{/txpower}}
</table>
</div>
{{#wifi?}}
<div data-role="collapsible" data-theme="c" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
<h4>Wireless {{name}}</h4>
{{#wifi}}
<table class="fifty">
<tr>
<td><tr><td>Interface {{ifname}}</td><td></td></tr></td>
<td>
<tr>
<td>{{ifname}} Device</td>
<td>{{device}}</td>
</tr>
</td>
<td>
<tr>
<td>{{ifname}} SSID</td>
<td>{{ssid}}</td>
</tr>
</td>
<td>
<tr>
<td>{{ifname}} BSSID</td>
<td>{{bssid}}</td>
</tr>
</td>
<td>
<tr>
<td>{{ifname}} Signal/Noise/Quality</td>
<td>{{signal}}/{{noise}}/{{quality}}</td>
</tr>
</td>
{{#assoclist?}}
<td><tr><td>Association List</td><td></td></tr></td>
{{#assoclist}}
<td>
<tr>
<td>{{mac}} Signal/Noise/rx_rate/tx_rate</td>
<td>{{signal}}/{{noise}}/{{rx_rate}}/{{tx_rate}}</td>
</tr>
</td>
{{/assoclist}}
{{/assoclist?}}
</tr>
</table>
{{/wifi}}
</div>
{{/wifi?}}
{{/interfaces}}
<table class="fifty">
<tr>
<td>IPv4 default Gateway</td>
<td>{{ipv4defaultGateway.gateway}} device:{{ipv6defaultGateway.dev}} metric:{{ipv6defaultGateway.metr}}</td>
</tr>
<tr>
<td>IPv6 default Gateway</td>
<td>{{ipv6defaultGateway.gateway}} device:{{ipv6defaultGateway.dev}} metric:{{ipv6defaultGateway.metr}}</td>
</tr>
</table>
</div>
{{/interfaces?}}
{{#firmware}}
<div data-role="collapsible" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
<h3>Firmware</h3>
{{name}} {{revision}} from <a href="{{url}}">{{url}}</a>
</div>
{{/firmware}}
<a href="{{couchurl}}/api/db/{{_id}}" rel="external" data-role="button">full JSON dataset</a>
<!--/div-->
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><!--target-densitydpi=device-dpi-->
</head>
<body>
<div id="container">
<div data-role="page" data-theme="b" id="map">
<div data-role="header">
<h1>OpenWiFiMap</h1>
</div>
<div data-role="content">
<div id="mapdiv"></div>
</div>
<div data-role="footer">
<div class="ui-grid-b">
<div class="ui-block-a">
<a data-role="button" data-rel="popup" data-position-to="window" data-transition="fade" data-mini="false" onclick="$('#about').popup( 'open' )">About</a>
<div data-role="popup" id="about" data-theme="b" data-overlay-theme="a">
<div data-role="header">
<h1>About</h1>
</div>
<div data-role="content" style="max-width: 400px;">
<p>OpenWiFiMap is
<ul>
<li>free software licensed under the MIT License.</li>
<li>available at <a href="https://github.com/freifunk/openwifimap-html5">github</a>. Please submit code, bug reports, feature requests or other ideas for improvements there!</li>
<li>meant to support free networks (free as in <em>free speech</em>, not <em>free beer</em>) like <a href="http://www.freifunk.net">freifunk</a>.</li>
<li>a HTML5 app that should run fine on mobile devices.</li>
<li>is backed by <a href="http://couchdb.apache.org/">CouchDB</a>+<a href="https://github.com/couchbase/geocouch/">GeoCouch</a> and it can be easily run as a <a href="http://couchapp.org/page/index">CouchApp</a> on your own CouchDB server.</li>
<li>written by:
<div id="about_contrib">
</div>
with contributions from <a href="https://twitter.com/RhoTep">Andreas Pittrich</a> and <a href="https://twitter.com/ProtectorP">Daniel Pfisterer</a>.</li>
</ul>
The WiFi icon was created by <a href="http://commons.wikimedia.org/wiki/User:Canopus49">Canopus49</a> and is licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/deed.en">CC-BY-SA</a>.
</p>
<p>
Donate with flattr:
<a class="FlattrButton" style="display:none;" data-flattr-popout="0" data-flattr-button="compact" href="https://openwifimap.net"></a>
<!--noscript><a href="https://flattr.com/thing/1154333/OpenWiFiMap" target="_blank" data-flattr-popout="0">
<img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" />
</a></noscript-->
</p>
<a data-role="button" onclick="$('#about').popup( 'close' )" data-theme="b">Close</a>
</div>
</div>
</div>
<div class="ui-block-b"></div>
<div class="ui-block-c"><a id="listlink" href="#list" data-role="button" data-transition="slide" data-theme="b" data-icon="arrow-r" data-iconpos="right" data-mini="false">List</a></div>
</div>
</div>
</div>
<div data-role="page" id="list" data-theme="b">
<div data-role="header">
<h1>OpenWiFiMap – List</h1>
</div>
<div data-role="content">
<div id="listdiv">
</div>
</div>
<div data-role="footer">
<div class="ui-grid-b">
<div class="ui-block-a"><a id="maplink" href="#map" data-role="button" data-transition="slide" data-direction="reverse" data-theme="b" data-icon="arrow-l" data-iconpos="left" data-mini="false">Map</a></div>
<div class="ui-block-b"></div>
<div class="ui-block-c"></div>
</div>
</div>
</div>
<div data-role="page" id="detail" data-theme="b">
<div data-role="header">
<h1>OpenWiFiMap – Details</h1>
</div>
<div data-role="content">
<div id="detaildiv" data-role="content">
</div>
</div>
<div data-role="footer">
<div class="ui-grid-b">
<div class="ui-block-a"><a id="detailback" href="#map" data-role="button" data-transition="slide" data-direction="reverse" data-theme="b" data-icon="arrow-l" data-iconpos="left" data-mini="false">Map</button></a></div>
<div class="ui-block-b"></div>
<div class="ui-block-c"></div>
</div>
</div>
</div>
<!--/div-->
</body>
</html>