-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
248 lines (216 loc) · 11.2 KB
/
index.html
File metadata and controls
248 lines (216 loc) · 11.2 KB
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
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Mongabay Conservation Evidence</title>
<head>
<!-- iframe resize helper, see https://github.com/davidjbradshaw/iframe-resizer -->
<script src="./libs/iframeResizer.contentWindow.min.js"></script>
<!-- Leaflet local as unpkg is giving 503 -->
<link rel="stylesheet" href="./libs/leaflet.css" />
<script src="./libs/leaflet.js"></script>
<!-- leaflet extensions -->
<link rel="stylesheet" href="./libs/leaflet-control-credits.css" />
<script src="./libs/leaflet-control-credits.js"></script>
<!-- TopoJSON for loading polygon data more efficiently than GeoJSON -->
<script type="text/javascript" src="https://d3js.org/topojson.v1.min.js"></script>
<!-- D3, jQuery, lodash -->
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-drag.v1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>
<!-- bootstrap grid only -->
<link rel="stylesheet" href="libs/bootstrap.css" type="text/css" media="all" />
<!-- Local styles -->
<link rel="stylesheet" href="index.css" type="text/css" media="all" />
<!-- select2, a select box enhancer for jquery -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
<!-- local source updated based on https://github.com/select2/select2/issues/3472 -->
<script type="text/javascript" src="./libs/select2.min.js"></script>
<!-- fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500" rel="stylesheet">
<script src="https://use.fontawesome.com/234f271872.js"></script>
<link href="./icons/icomon/style.css" rel="stylesheet">
</head>
<body>
<div class="main" id="main-container" data-iframe-height>
<!-- top buttons -->
<div id="button-container" class="container-fluid">
<div class="row">
<div class="col-md-4 button-wrapper">
<div class="btn-header btn-left table-div">
<div class="table-cell title-cell">environmental</div>
<div class="table-cell icon-cell"><img class="img-responsive" src="./icons/environmental_large.png" /></div>
<div class="table-cell text-cell env"></div>
</div>
</div>
<div class="col-md-4 button-wrapper">
<div class="btn-header btn-center table-div">
<div class="table-cell title-cell">social</div>
<div class="table-cell icon-cell"><img class="img-responsive" src="./icons/social_large.png" /></div>
<div class="table-cell text-cell soc"></div>
</div>
</div>
<div class="col-md-4 button-wrapper">
<div class="btn-header btn-right table-div">
<div class="table-cell title-cell">economic</div>
<div class="table-cell icon-cell"><img class="img-responsive" src="./icons/economic_large.png" /></div>
<div class="table-cell text-cell econ"></div>
</div>
</div>
</div>
</div>
<!-- filters -->
<div id="select-container" class="container-fluid">
<div class="row">
<!-- country filter -->
<div class="filter-wrapper col-sm-3 col-sm-offset-1 col-md-offset-1 col-md-3">
<select id="country" placeholder="Select a country" style="width:100%;"></select>
</div>
<!-- strength filter -->
<div class="filter-wrapper col-sm-3 col-md-3">
<select id="evidence" placeholder="Select type of evidence" style="width:100%;"></select>
</div>
<!-- sort options -->
<div class="filter-wrapper col-sm-3 col-md-3">
<select id="sort" placeholder="Sort by evidence" style="width:100%;">
<option></option>
<option value="pluscount#reverse">Most positive evidence</option>
<option value="pluscount">Least positive evidence</option>
<option value="neutralcount#reverse">Most neutral evidence</option>
<option value="neutralcount">Least neutral evidence</option>
<option value="minuscount#reverse">Most negative evidence</option>
<option value="minuscount">Least negative evidence</option>
</select>
</div>
<div class="col-sm-2 col-md-2 clearall-container">
<a class="btn-sm" id="clearall" onclick="clear_all()" title="Clear all selections">Clear</a>
<!-- full screen version: href updated at runtime, see config.js -->
<a target="_blank" class="btn-sm hidden-xs" id="fullscreen" title="Click for fullscreen version"><span class="icon-enlarge2"></span></a>
</div>
</div><!-- row -->
</div><!-- select-container -->
<div class="container-fluid">
<div class="row vertical-align">
<div class="col-lg-3 col-md-4 col-sm-12 hidden-xs visible-sm visible-md visible-lg">
<div class="description-wrapper">
<div class="description-container">
<!-- will be added at run-time, always shows except xs -->
<div></div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-4 col-sm-8">
<div id="map">
<a class="btn-sm" id="clearall-map" onclick="clear_all()" title="Clear all selections">Clear</a>
</div>
</div>
<div class="col-xs-12 visible-xs hidden-sm hidden-md hidden-lg">
<div class="description-container">
<!-- will be added at run-time, only shows xs -->
<div></div>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-4">
<div class="legend-container">
<table id="legend">
<tbody>
<tr>
<td><h3>Legend</h3></td>
<td class="legend-header stronger" onclick="showLegendTip(event,'tip-stronger')">Stronger evidence <span class="icon-info"></span></td>
<td class="legend-header weaker" onclick="showLegendTip(event,'tip-weaker')">Weaker evidence <span class="icon-info"></span></td>
</tr>
<td class="legend-text"></td>
<td>
<span class="rect dark plus"></span>
</td>
<td>
<span class="rect light plus"></span>
</td>
</tr>
<tr>
<td class="legend-text"></td>
<td>
<span class="rect dark neutral"></span>
</td>
<td>
<span class="rect light neutral"></span>
</td>
</tr>
<tr>
<td class="legend-text"></td>
<td>
<span class="rect dark minus"></span>
</td>
<td>
<span class="rect light minus"></span>
</td>
</tr>
</tbody>
</table>
</div><!-- legend-container -->
</div><!-- col -->
</div><!-- row -->
</div><!-- container -->
<div class="chart-container container-fluid">
<div class="row">
<div class="col-md-4 chartcol env-chart">
<div class="toggler" data-col="env" data-details="show" onclick="event.stopPropagation(); toggleColumnDetails(event);">
<div class="btn-bottom-header btn-left table-div">
<div class="table-cell icon-cell"><img src="./icons/environmental_large.png" /></div>
<div class="table-cell subtitle-cell">environmental
<div class="details"><span class="details-msg">less detail <i class="fa fa-chevron-up"></i></span><span class="details-msg" style="display:none;">more detail <i class="fa fa-chevron-down"></i></span></div></div>
</div>
</div>
<div class="env-chart"></div>
</div>
<div class="col-md-4 chartcol soc-chart">
<div class="toggler" data-col="soc" data-details="show" onclick="toggleColumnDetails(event)">
<div class="btn-bottom-header btn-center table-div">
<div class="table-cell icon-cell"><img src="./icons/social_large.png" /></div>
<div class="table-cell subtitle-cell">social<div class="details"><span class="details-msg">less detail <i class="fa fa-chevron-up"></i></span><span class="details-msg" style="display:none;">more detail <i class="fa fa-chevron-down"></i></span></div></div>
</div>
</div>
<div class="soc-chart"></div>
</div>
<div class="col-md-4 chartcol econ-chart">
<div class="toggler" data-col="econ" data-details="show" onclick="toggleColumnDetails(event)">
<div class="btn-bottom-header btn-right table-div">
<div class="table-cell icon-cell"><img src="./icons/economic_large.png" /></div>
<div class="table-cell subtitle-cell">economic<div class="details"><span class="details-msg">less detail <i class="fa fa-chevron-up"></i></span><span class="details-msg" style="display:none;">more detail <i class="fa fa-chevron-down"></i></span></div></div>
</div>
</div>
<div class="econ-chart"></div>
</div>
</div><!-- row -->
</div><!-- chart-container -->
</div>
<!-- tooltips! -->
<div class="tooltip">
<span class="tooltip-close">×</span>
<div class="tooltip-content">
<a class="tooltip-author-link"></a><span class="tooltip-conclusion"></span>
</div>
</div>
<div class="legend-tooltip" id="tip-stronger">
<span class="tooltip-close" onclick="event.target.parentNode.style.display = 'none'">×</span>
<div class="legend-tooltip-content">
These studies include meta-analyses, systematic reviews, and rigorously designed studies that can show causality. Try using the drop-down menu "Select type of evidence" or read about different types of evidence <a href="https://news.mongabay.com/conservation-effectiveness/how-we-reviewed-the-evidence/" target="_blank">here</a>
</div>
</div>
<div class="legend-tooltip" id="tip-weaker">
<span class="tooltip-close" onclick="event.target.parentNode.style.display = 'none'">×</span>
<div class="legend-tooltip-content">
These studies include individual case studies that can only show correlation, not causation. Try using the drop-down menu "Select type of evidence" or read about different types of evidence <a href="https://news.mongabay.com/conservation-effectiveness/how-we-reviewed-the-evidence/" target="_blank">here</a>
</div>
</div>
<div class="variable-tooltip">
<span class="tooltip-close" onclick="event.target.parentNode.style.display = 'none'">×</span>
<div class="variable-tooltip-content"></div>
</div>
<!-- Local javascript -->
<script type="text/javascript">function isMobile() { return window.innerWidth < 768; }</script>
<script type="text/javascript" src="./config.js?v=2"></script>
<script type="text/javascript" src="./index.js?v=2"></script>
</body>
</html>