-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
307 lines (273 loc) · 14.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- water storage material -->
<script src="js/water_storage.min.js?t=1395793874049" charset="utf-8"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<title>Into the Drought: California's Shrinking Reservoirs</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/water_storage.css?t=1395793874048" rel="stylesheet">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Draught in California</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/icons.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/animation.css" />
<link rel="stylesheet" type="text/css" href="css/agr_usage/move.css">
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<!-- <div class="container-fluid light-blue darken-1">
</div> -->
<div class="container-fluid">
<!-- <section class="color">
<h2>We all know about the drought in California</h2>
</section> -->
<!-- <div class="lighten-4 wave-bottom" style="width: 100%;"></div> -->
<section class="row white" id="drought-monitor">
<div class="col l4">
<h2>We all know about the drought in California </h2>
<h3>But...How bad is it?</h3>
</div>
<div class="col l8">
<div>
<img id="drought">
<h4 id="year">2011</h4>
</div>
<p><cite>United States Drought Monitor</cite></p>
</div>
</section>
<div class="lighten-4 wave-bottom" style="width: 100%;"></div>
<section class="color">
<h2>California is sinking from the drought</h2>
<p class="white-text">Two bridges in Fresno County – an area that produces about 15 percent of the world’s almonds – have sunk so much that they are nearly underwater and will cost millions to rebuild</p>
<div id="bridge">
<!--TODO Insert animation file aka landing page -->
<img src="images/cloud2.svg" class="cloud">
<img src="images/building3.svg" class="building3">
<img src="images/bridge.svg" class="bridge1 bridge-a">
<img src="images/water.svg" class="water_bridge1">
<img src="images/building4.svg" class="building4">
<img src="images/bridge.svg" class="bridge2 bridge-a">
<img src="images/water.svg" class="water_bridge2">
<img src="images/building5.svg" class="building5">
</div>
</section>
<section class="white ss-style-roundedsplit row" id="d3">
<h2>California is sinking from the drought</h2>
<p>The bluer the color, the more land has sunk since 2002</p>
<div class="col l6">
<p class="black-text legend">History of land height </p>
<img style="width:600px; height:auto; display: inline-block; margin-left: 0px;" id="sink">
<p id="sink_year" style="margin-left: 0px;">2002</p>
</div>
<div class="col l6" id="myDiv" style="width:400px; height:400px; display: inline-block; margin-top: 0px;"></div>
</div>
<p class="center"><cite>United States Drought Monitor</cite></p>
</section>
<!-- <svg id="stamp" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100" viewBox="0 0 100 100" preserveAspectRatio="none">
<svg id="stamp" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 0 Q 2.5 40 5 0
Q 7.5 40 10 0
Q 12.5 40 15 0
Q 17.5 40 20 0
Q 22.5 40 25 0
Q 27.5 40 30 0
Q 32.5 40 35 0
Q 37.5 40 40 0
Q 42.5 40 45 0
Q 47.5 40 50 0
Q 52.5 40 55 0
Q 57.5 40 60 0
Q 62.5 40 65 0
Q 67.5 40 70 0
Q 72.5 40 75 0
Q 77.5 40 80 0
Q 82.5 40 85 0
Q 87.5 40 90 0
Q 92.5 40 95 0
Q 97.5 40 100 0 Z">
</path>
</svg> -->
<section class="grey lighten-4">
<h2>Water Storage is decreasing at an alarming rate</h2>
<!-- <section>insert map</section> -->
<div ng-app="myApp" ng-controller="MainCtrl" ng-clock>
<loading-dialog ng-show="!loaded"></loading-dialog>
<div class="map-container" ng-style="{opacity: loaded ? 1 : 0 }">
<p>
<div class="play-btn" ng-model="playing" ng-click="playButtonClicked()">
{{ playing ? 'pause' : 'play' }}
</div>
{{ year }} - {{ months[month] }}
<small style="float:right">Data is current as of April 11th, 2015</small>
</p>
<scale-slider domain="domain" now="sliderPosition"></scale-slider>
<div class="detail">
<h1 class="title"> {{reservoir.station}}</h1>
<h5 class="project">{{reservoir.project}}</h5>
<p>
<P id="lake_reservoir">
Storage: <span class="black-text bold">{{formatCapacity(history[now].reservoirs[reservoir.id])}}</span>
<span class="acre-feet">acre-feet</span><br>
</P>
<p id="lake_capacity">
Capacity: {{formatCapacity(reservoir.capacity)}}
<span class="acre-feet">acre-feet</span><br>
</p>
</p>
<reservoir-detail reservoir="reservoir" year="year" month="month">
</reservoir-detail>
</div>
<water-map
reservoirs="reservoirs"
history="history"
now="now"
selected-reservoir="reservoir"
shapefile="shapefile">
</water-map>
</div>
<p><cite>California Department of Water Resources</cite></p>
<p><cite>Adapted from opensource creation by <a href="https://twitter.com/vicapow" class="grey-text">Victor Powell</a></cite></p>
</div>
</section>
<section class="grey darken-4 ss-style-zigzag">
<div class="column">
<div style="margin-top: -60px;">
<h2 class="white-text">Agriculture is accountable for <span class="blue-text">80%</span> of the total use</h2>
<p class="white-text">Increased groundwater usage dries up our Lakes and Rivers</p>
</div>
<div id="demo">
<div class="box" id="tractor4"><img src="images/agr_usage/tractor_icon.svg"></div>
<div class="box" id="tractor3"><img src="images/agr_usage/tractor_icon.svg"></div>
<div class="box" id="tractor2"><img src="images/agr_usage/tractor_icon.svg"></div>
<div class="box" id="tractor1"><img src="images/agr_usage/tractor_icon.svg"></div>
<div class="box" id="house"><img src="images/agr_usage/house_icon.svg"></div>
</div>
</div>
</section>
<section class=" red darken-1">
<h2 class="white-text">We need better agricultural policy </h2>
<p class="white-text">specifically on deep water drilling</p>
</section>
<section class="white">
<h2>However, California has poor data on deep water drilling to make informed policy decisions</h2>
<h3 class="bold">Well Logging Avilability and Quality </h3>
<img src="images/States_Data_quality/Capture2.png" id="cali-data-qual">
<p><cite>The Nature Conservancy, Drought in California Team</cite></p>
</section>
<section id="calltoaction">
<!-- <img src="images/city.jpg">
--> <h2>The 5 Missing Metrics</h2>
<div class="row fix-height" style="display:flex; margin-bottom:50px;">
<div class="col l6 m6 s6">
<h3> Without Data </h3>
<p id="without">Water managers can't support the state’s economy.</p>
</div>
<div class="col l6 m6 s6">
<h3 > With Data </h3>
<p id="with">Sustainably management of groundwater for their direct use to support the state’s economy.</p>
</div>
</div>
<div id="calldata" style="display:flex; position:fix; margin-top:50px;">
<!--TODO Insert animation file aka landing page -->
<!-- <img src="images/well1.svg" class="data-well">
-->
<a class="data-well">data-well</a>
<a type="image" class="data-groundwater" /> groundwater</a>
<a type="image" class="data-meter" /> meter</a>
<a type="image" class="data-quality" /> quality</a>
<a type="image" class="data-model" /> model</a>
<!-- <img src="images/well1blue2.svg" class="data-well">
<img src="images/groundwater.svg" class="data-groundwater">
<img src="images/meter.svg" class="data-meter">
<img src="images/quality.svg" class="data-quality">
<img src="images/model.svg" class="data-model"> -->
</div>
<div style="display:flex;">
<h3 style="margin: 20px 25px 95px 90px;">Well Drilling <br> Log</h3>
<h3 style="margin: 20px 20px 20px 45px;">Groundwater <br> Elevations</h3>
<h3 style="margin: 20px 35px 20px 50px;">Production <br> Metering</h3>
<h3 style="margin: 20px 50px 20px 55px;">Water <br> Quality</h3>
<h3 style="margin: 20px 25px 20px 70px;">Groundwater <br> Models</h3>
</div>
<!-- <p class="white-text">What we need is better agricultural policy, specifically on deep water drilling</p> -->
</section>
<section class>
<div id="chatbot-container">
<img src="images/logo-s.png" class="margin-top-s">
<h1>
What will you do to help?
</h1>
<h3>
Sign a petition, donate to a cause, or find an organization through Oasis, your personal chatbot.
</h3>
<div class="img-circle petition">
<a target="_blank" href="https://www.messenger.com/t/hioasis/"><h2>Petition </h2></a>
</div>
<div class="img-circle donate">
<a target="_blank" href="https://www.messenger.com/t/hioasis/"><h2>Donate </h2></a>
</div>
<div class="img-circle explore">
<a target="_blank" href="https://www.messenger.com/t/hioasis/"><h2>Explore </h2></a>
</div>
</div>
</section>
<div class="white wave-top" style="width: 100%;"></div>
<section class="color">
</section>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.js"></script>
<script type="text/javascript" src="js/agr_usage/move.js"></script>
<script type="text/javascript" src="js/drought_animate.js"></script>
<script type="text/javascript" src="js/sink_animate.js"></script>
<script type="text/javascript" src="js/changeText.js"></script>
<!-- <script type="text/javascript" src="js/sink_3d.js"></script> -->
<script>
Plotly.d3.csv('js/usa_2016_plotly_noheader.csv', function(err, rows){
function unpack(rows, key) {
return rows.map(function(row) { return row[key]; });
}
var z_data=[ ]
for(i=0;i<1374;i++)
{
z_data.push(unpack(rows,i));
console.log(unpack(rows,i))
}
var data = [{
z: z_data,
type: 'surface',
marker: {
color: '#2980b9'
}
}];
var layout = {
title: '3D Model of US land height in 2016',
autosize: true,
width: 400,
height: 400,
margin: {
l: 65,
r: 50,
b: 65,
t: 90,
}
};
console.log(data)
Plotly.newPlot('myDiv', data, layout);
});
</script>
</body>
</html>