-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
123 lines (110 loc) · 5.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>OSM Changeset browser</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="vendor/leaflet/leaflet.css" rel="stylesheet" type="text/css">
<link href="vendor/leaflet/leaflet.ie.css" rel="stylesheet" type="text/css">
<script src='vendor/leaflet/leaflet-src.js'></script>
<script src='vendor/leaflet-hash.js'></script>
<script src='vendor/jquery-1.8.2.min.js'></script>
<script src='vendor/jquery.cookie.js'></script>
<script src='vendor/underscore-min.js'></script>
<script src='config.js'></script>
<script src='data-tiles.js'></script>
<script src='geojson-tiles.js'></script>
<script src='marker-tiles.js'></script>
<script src='mode-geojson.js'></script>
<script src='mode-summary.js'></script>
<script src='mode-bboxes.js'></script>
<script src='mode-changeset.js'></script>
<script src='app.js'></script>
</head>
<body>
<div id='sidebar'>
<div id='header'>
<div class='inner branding'>
<div class='logo'></div>
<h1>OpenStreetMap Changeset Browser</h1>
</div>
<div class='inner'>
<h2>Recent contributions to the map</h2>
</div>
</div>
<div class='content'>
<div id='changesets'>
</div>
</div>
<div id ='footer' class='inner'>
<a href="" id="feed_link">
<p><span class='icon feed'></span>Get a changeset feed for this map area</p>
</a>
</div>
</div>
<div class='map-container'>
<div class='nav-container editor'>
<a href='#' class='nav-link'></a>
<ul class='overlay inner'>
<li><a class='button hover-glow edit-osm' editor='potlatch2' href='#'>Edit in <strong>Potlatch II</strong></a></li>
<li><a class='button hover-glow edit-osm' editor='remote' href='#'>Edit in <strong>JOSM</strong></a></li>
</ul>
</div>
<div class='nav-container info active'>
<a href='#' class='nav-link'></a>
<div class='overlay'>
<div class='inner-2'>
<h3>The OpenStreetMap Changeset Browser</h3>
<p>The OpenStreetMap Changeset Browser is a service that monitors areas recently edited in <a href='http://www.openstreetmap.org/'>OpenStreetMap(OSM)</a> and visualizes them in close to real time. The left sidebar lists all changes on the visible map area. Click on a changeset to view more details or pan around the map to explore different regions of the globe.</p>
<p><em>The OpenStreetMap Changeset Browser is an experimental tool currently in development.</em></p>
<h3>Get involved</h3>
<a class='button hover-glow' href="https://github.com/ppawel/openstreetmap-watch-list">Contribute on <strong>GitHub</strong></a>
<a class='button hover-glow' href="http://www.openstreetmap.org/">Join <strong>OpenStreetMap</strong></a>
</div>
</div>
</div>
<div id='map'></div>
<div id='statusbar'></div>
<div id='attribution'><a href="http://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a></div>
</div>
<script name="changeset" type="text/html">
<div class='changeset inner hover-glow' id='changeset-<%=id%>'>
<div class='date'><span class='icon clock'></span><%= (new Date(created_at)).nice() %></div>
<div class='user'><a class='id' href='http://www.openstreetmap.org/browse/changeset/<%=id%>'>#<%=id%></a>
by <a href='http://www.openstreetmap.org/user/<%=user_name%>'><strong><%=user_name%></strong></a></div>
<div class="stats">
<span class="graph">N:<span class="created"><%=entity_changes[0] %></span><span class="modified"><%=entity_changes[1] %></span><span class="deleted"><%=entity_changes[2] %></span></span>
<span class="graph">W:<span class="created"><%=entity_changes[3] %></span><span class="modified"><%=entity_changes[4] %></span><span class="deleted"><%=entity_changes[5] %></span></span>
<span class="graph">R:<span class="created"><%=entity_changes[6] %></span><span class="modified"><%=entity_changes[7] %></span><span class="deleted"><%=entity_changes[8] %></span></span>
</div>
</div>
</script>
<script name="summarytile" type="text/html">
<div class='summary-tile-inner <%= divclass %>' style="width: <%= size %>px; height: <%= size %>px; border-radius: <%= size / 2 %>px; -moz-border-radius: <%= size / 2 %>px; -webkit-border-radius: <%= size / 2 %>px;">
<div class='count'><%= tiledata.num_changesets %></div>
</div>
</script>
<script name="statusbar" type="text/html">
Currently showing
<select id="status_mode">
<option value="SUMMARY">summary tiles</option>
<option value="BBOXES">bounding boxes</option>
<option value="GEOJSON">geometry</option>
</select>
<select id="status_timelimit">
<option value="24" selected>from the last 24 hours</option>
<option value="168">from the last 7 days</option>
<option value="672">from the last month</option>
<option value="0">since 'forever'</option>
</select>
</script>
<script name="statusbar_changeset" type="text/html">
Currently showing changeset <%= id %> <a href="" id="reset_settings">[back to browsing]</a>
</script>
<script name="statusbar_reset_settings" type="text/html">
<a id="reset_settings">[reset to default]</a>
</script>
</body>
</html>