-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
178 lines (154 loc) · 6.13 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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width">
<title>ClearWater Map</title>
<link href='dist/cwm.min.css' rel='stylesheet' />
<!--[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|Covered+By+Your+Grace' rel='stylesheet' type='text/css'>
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
<script type="text/javascript" src="//d2zah9y47r7bi2.cloudfront.net/releases/current/tracker.js" data-token="50dea113ff4b4e66adf94bfbf365e881"></script>
<script src='dist/cwm.min.js'></script>
<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>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-6555262-2', 'digital-democracy.org');
ga('send', 'pageview');
</script>
<script type="text/javascript" charset="utf-8">
cwm.launch("#mapstory");
</script>
</body>
</html>