-
Notifications
You must be signed in to change notification settings - Fork 6
/
dev.html
213 lines (185 loc) · 7.5 KB
/
dev.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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/aight/1.1.1/aight.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/sizzle/1.10.9/sizzle.min.js"></script>
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Yanone+Kaffeesatz' rel='stylesheet' type='text/css'>
<script src='js/lib/d3.v3.js'></script>
<script src='js/lib/jquery-1.8.3.js'></script>
<script src='js/lib/lodash.modern-2.4.1.js'></script>
<script src='js/lib/requestAnimationFrame.js'></script>
<script src='js/lib/modestmaps.js'></script>
<script src='js/lib/waxconnector.js'></script>
<script src='js/lib/easey.js'></script>
<script src='js/lib/d3.dimensions.js'></script>
<script src='js/lib/d3.keybinding.js'></script>
<script src='js/lib/topojson.js'></script>
<script src='js/src/cwm.js'></script>
<script src='js/src/map.js'></script>
<script src='js/src/stories.js'></script>
<script src='js/src/mission_control.js'></script>
<script src='js/src/render.js'></script>
<script src='js/src/templates.js'></script>
<script src='js/src/util.js'></script>
<script src='js/src/util/MM.overrides.js'></script>
<script src='js/src/core/base.js'></script>
<script src='js/src/core/place.js'></script>
<script src='js/src/core/collection.js'></script>
<script src='js/src/core/flightplan.js'></script>
<script src='js/src/ui/navigation.js'></script>
<script src='js/src/views.js'></script>
<script src='js/src/ui/markers.js'></script>
<script src='js/src/ui/popup.js'></script>
<script src='js/src/ui/overlay.js'></script>
<script src='js/src/layers.js'></script>
<script src='js/src/layers/bing_layer.js'></script>
<script src='js/src/layers/mapbox_layer.js'></script>
<script src='js/src/layers/feature_layer.js'></script>
<script src='js/src/layers/marker_layer.js'></script>
<script src='js/src/handlers.js'></script>
<script src='js/src/handlers/drag_handler.js'></script>
<link href='http://fonts.googleapis.com/css?family=Covered+By+Your+Grace' rel='stylesheet' type='text/css'>
<link href='css/data_uris.css' rel='stylesheet' />
<link href='css/map.css' rel='stylesheet' />
<link href='css/nav.css' rel='stylesheet' />
<link href='css/images.css' rel='stylesheet' />
<link href='css/stories.css' rel='stylesheet' />
<link href='css/markers.css' rel='stylesheet' />
<link href='css/features.css' rel='stylesheet' />
<link href='css/animation.css' rel='stylesheet' />
<link href='css/overlay.css' rel='stylesheet' />
<style type="text/css">
</style>
</head>
<body>
<div id="mapstory">
<div id='overlay'>
<div id='overlay-overview' class='overlay'>
<div class="nav hint">
Navigation menu
</div>
<div class="next hint">
Click or scroll to travel through the map
</div>
<div class="ecuador hint">
This is where we work, <br>
click to find out more
</div>
<div class="legend hint">
Legend
</div>
</div>
<div id='overlay-country' class='overlay'>
<div class="nav hint">
Navigation menu
</div>
<div class="prev hint">
Click to return to the overview
</div>
<div class="communities hint">
These are the communities where we work. <br>
Click on a community to visit it.
</div>
<div class="next hint">
Click or scroll to visit places one by one.
</div>
</div>
<div id='overlay-communities' class='overlay'>
<div class="installations hint">
These blue dots represent the rainwater catchment systems we have built.
Hover over a dot to see a photo. Click to zoom in and find out more.
Don’t miss the “Featured stories” — the bouncing white dots.
</div>
</div>
<div id='overlay-installations' class='overlay'>
<div class="donate hint">
Help bring drinking water to more families
</div>
</div>
</div>
<div id='legend'>
<dl>
<dt class="community">Clearwater community</dt>
<dt class="system">Clearwater system</dt>
<dt class="story">Featured story</dt>
<dt class="oilwell">Oil well</dt>
<dt class="pipeline">Oil pipeline</dt>
</dl>
</div>
<div id="attribution">
Map design and development by <a href="http://www.digital-democracy.org/">Digital Democracy</a><br>
<small><a href="http://www.openstreetmap.org/copyright">© OpenStreetMap</a> <a href="https://www.mapbox.com/about/maps/">© Mapbox</a> © Microsoft Corporation</small>
</div>
</div>
<script type="text/html" id="template-overview">
{{ renderMedia(attr("story_photo"), 480) }}
<h1>{{ attr("story_title") }}</h1>
<div class="text">
{{ attr("story_excerpt") }}
{{ attr("story_url") ? '<a href="' + attr("story_url") + '" target="_blank">Read more…</a>' : '' }}
</div>
</script>
<script type="text/html" id="template-country">
{{ renderMedia(attr("story_photo"), 480) }}
<h1>{{ attr("story_title") }}</h1>
<div class="text">
{{ attr("story_excerpt") }}
{{ attr("story_url") ? '<a href="' + attr("story_url") + '" target="_blank">Read more…</a>' : '' }}
</div>
</script>
<script type="text/html" id="template-nationalities">
{{ renderMedia(attr("story_photo"), 480) }}
<h1>{{ attr("story_title") }}</h1>
<div class="text">
{{ attr("story_excerpt") }}
{{ attr("story_url") ? '<a href="' + attr("story_url") + '" target="_blank">Read more…</a>' : '' }}
</div>
</script>
<script type="text/html" id="template-communities">
{{ renderMedia(attr("story_photo"), 480) }}
<h2>{{ attr("story_title") }}</h2>
<div class="text">
<ul>
<li>+ {{ children.count() }} Rainwater Catchment Systems</li>
<li>+ {{ children.count("users") }} people benefitted</li>
<li>+ {{ attr("technicians") }} community technicians trained</li>
</ul>
{{ attr("story_excerpt") }}
{{ attr("story_url") ? '<a href="' + attr("story_url") + '" target="_blank">Read more…</a>' : '' }}
</div>
</script>
<script type="text/html" id="template-installations">
{{ renderMedia(attr("story_photo"), 480) }}
<h2>{{ attr("story_title") }}</h2>
<div class="text">
{{ attr("story_excerpt") }}
{{ attr("story_url") ? '<a href="' + attr("story_url") + '" target="_blank">Read more…</a>' : '' }}
</div>
</script>
<script type="text/html" id="template-popup-small">
{{ renderMedia(attr("photo"), 150) }}
<p>{{ firstNames() }}</p>
</script>
<script type="text/html" id="template-popup-large">
{{ renderMedia(attr("photo"), 480) }}
<p><em>{{ attr("name") }}’s</em> rainwater collection system, in the {{ parent.attr("nationality") }} village of <em>{{ attr("settlement") }}</em>,
was installed on <em>{{ d3.time.format("%b. %e, %Y")(new Date(attr("date"))) }}</em>,
and provides clean drinking water to <strong>{{ attr("users") }} people</strong>.</p>
<% if (attr("featured")) { %>
<p><a href="{{ attr("story_url") }}" target="_blank">Read more</a> about {{ firstNames() }}.</p>
<% } %>
</script>
<script type="text/html" id="template-image">
<div class="image-wrapper"><img src="{{ mediaUrl }}"></div>
</script>
<script type="text/javascript" charset="utf-8">
cwm.launch("#mapstory");
</script>
</body>
</html>