-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
293 lines (277 loc) · 15.6 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- CSS FILE -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?family=Asap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:200" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- FIREBASE -->
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-database.js"></script>
<script src="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.css" />
<!-- MapBox -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css' rel='stylesheet' />
<title>Disaster Dashboard</title>
</head>
<body>
<div class="container">
<!--Navbar-->
<div class="row">
<div class="col-5">
<!--Logo-->
<a class="navbar-brand" href="./index.html">
<img src="./assets/images/DDlogoFinalSmall.png">
</a>
<!-- Buttons triggering modals -->
<button type="button" class="btn btn-outline-danger my-2 my-sm-0 login-hide" id="new-acct" data-toggle="modal" data-target="#newAcctModal">New Account</button>
<button type="button" class="btn btn-outline-danger my-2 my-sm-0 login-hide" id="loginbutton" data-toggle="modal" data-target="#loginModal">Login</button>
</div>
<!-- #loginModal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Login to My Disaster Dashboard</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="needs-validation" novalidate>
<div class="form-group" id="modal-input">
<label for="exampleInputEmail1 validationCustom01">Email address</label>
<input type="email" class="form-control input-email" aria-describedby="emailHelp" placeholder="Enter email" required="true">
<small id="emailHelp" class="form-text text-muted">We will not share your email with anyone else.</small>
<div class="valid-feedback">awesome!</div>
</div>
<div class="form-group">
<label for="exampleInputPassword1 ">Password</label>
<input type="password" class="form-control input-password" placeholder="Password" required="true">
</div>
<!-- <div class="form-group">
<label for="exampleInputPassword1">Re-enter Password</label>
<input type="password" class="form-control" id="input-password-verify" placeholder="Password" required="true">
</div> -->
</form>
<!-- The surrounding HTML is left untouched by FirebaseUI.
Your app may use that space for branding, controls and other customizations.-->
<!-- <h2>My Disaster Dashboard</h2>
<div id="firebaseui-auth-container"></div>
<div id="loader">Loading...</div> -->
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" id="login-submit-btn">Submit</button>
</div>
</div>
</div>
</div>
<!-- #newAcctModal -->
<div class="modal fade" id="newAcctModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Create a new Disaster Dashboard Account</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="needs-validation" novalidate>
<div class="form-group" id="modal-input">
<label for="exampleInputEmail1 validationCustom01">Email address</label>
<input type="email" class="form-control input-email" aria-describedby="emailHelp" placeholder="Enter email" required="true">
<small id="emailHelp" class="form-text text-muted">We will not share your email with anyone else.</small>
<div class="valid-feedback">awesome!</div>
</div>
<div class="form-group">
<label for="exampleInputPassword1 ">Password</label>
<input type="password" class="form-control input-password" placeholder="Password" required="true">
</div>
<!-- <div class="form-group">
<label for="exampleInputPassword1">Re-enter Password</label>
<input type="password" class="form-control" id="input-password-verify" placeholder="Password" required="true">
</div> -->
</form>
<!-- The surrounding HTML is left untouched by FirebaseUI.
Your app may use that space for branding, controls and other customizations.-->
<!-- <h2>My Disaster Dashboard</h2>
<div id="firebaseui-auth-container"></div>
<div id="loader">Loading...</div> -->
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" id="newacct-submit-btn">Submit</button>
</div>
</div>
</div>
</div>
<div class="col-7">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<!--Type of disaster dropdown menu-->
<div class="dropdown">
<button class="btn btn-danger dropdown-toggle disaster" type="button" id="dropdownMenu2 disaster-type"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Disaster Type</span>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
<button class="dropdown-item disaster-dropdown" type="button">Earthquake</button>
<button class="dropdown-item disaster-dropdown" type="button">Volcano</button>
<button class="dropdown-item disaster-dropdown" type="button">Hurricane</button>
<button class="dropdown-item disaster-dropdown" type="button">Tornado</button>
<button class="dropdown-item disaster-dropdown" type="button">Tsunami</button>
<button class="dropdown-item disaster-dropdown" type="button">Drought</button>
<button class="dropdown-item disaster-dropdown" type="button">Landslide</button>
<button class="dropdown-item disaster-dropdown" type="button">Fire</button>
<button class="dropdown-item disaster-dropdown" type="button">Debris Flow</button>
<button class="dropdown-item disaster-dropdown" type="button">Wildfire</button>
<button class="dropdown-item disaster-dropdown" type="button">Flood</button>
</div>
</div>
<!--Country Dropdown Menu-->
<div class="dropdown">
<button class="btn btn-danger dropdown-toggle country" type="button" id="dropdownMenu2 country"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Country</span>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
<button class="dropdown-item country-dropdown" type="button">Japan</button>
<button class="dropdown-item country-dropdown" type="button">China</button>
<button class="dropdown-item country-dropdown" type="button">United States</button>
<button class="dropdown-item country-dropdown" type="button">India</button>
<button class="dropdown-item country-dropdown" type="button">Brazil</button>
<button class="dropdown-item country-dropdown" type="button">Afganistan</button>
<button class="dropdown-item country-dropdown" type="button">France</button>
<button class="dropdown-item country-dropdown" type="button">Haiti</button>
<button class="dropdown-item country-dropdown" type="button">Mozambique</button>
<button class="dropdown-item country-dropdown" type="button">Indonesia</button>
</div>
</div>
<!--search input-->
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" id="user-input" type="search" placeholder="Disaster or City Name"
aria-label="search" size="20">
<button class="btn btn-outline-danger my-2 my-sm-0" id="submit-button" type="submit">Search</button>
</form>
</nav>
</div>
</div>
<!--Main Content-->
<div class="row">
<div class="col" id="title-bkg">
<h2 id="title-text"><strong>Disaster Dashboard</strong></h2>
<h4 class="title-subtext"><strong>Trending content about disasters worldwide and their humanitarian impact</strong></h4>
</div>
</div>
<!--sidebar-->
<div class="row flex" id="content-row">
<div class="col-6" id="trending-holder">
<!--Display for login email-->
<div class="row" id="email-holder1"><p class="login-show text-center" id="current-user" hidden>Current User: <span id="email-display"></span></p></div>
<div class="row">
<div class="col-3"><button type="button" class="btn btn-link login-show" id="stories" hidden>My Stories</button></div>
<div class="col-6"><h2 id="trending-text">Related News</h2></div>
<div class="col-3"><button type="button" class="btn btn-link login-show" id="logout-btn" hidden>Log Out</button></div>
</div>
<div id="trending">
</div>
</div>
<!--Map area-->
<div class="col-6">
<!--Videos Here-->
<div class="row">
<div class="col">
<!-- <h1>YouTube</h1> -->
<div id="player" class="iframe-container mt-2">
<div id="video-placeholder"></div>
<script src="https://www.youtube.com/iframe_api"></script>
<div id="youtube">
<img src="./assets/images/DD_infographic2.jpg" id="infographic" class="img-fluid">
<!-- take this out later -->
<!-- <iframe width="100%" height="auto" src="https://www.youtube.com/embed/HbJaMWw4-2Q" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe> -->
</div>
</div>
</div>
</div>
<div class="row">
<div class="col " id="mapArea">
<h2 class="text-center">Disaster Hotspots</h2>
<div class="my-3 mx-3"id="map">
</div>
</div>
</div>
</div>
</div>
<div class="row" id="donate-bkg">
<h2 id="getinvolved" class="text-center">Get Involved</h2>
</div>
<!-- donate row -->
<div class="row" id="donate">
<div class="col">
<div id="carouselExampleInterval" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" data-interval="7000">
<img src="./assets/images/carousel-3.JPG" class="d-block w-100" alt="...">
</div>
<div class="carousel-item" data-interval="7000">
<img src="./assets/images/carousel-1.jpg" class="d-block w-100" alt="...">
</div>
<div class="carousel-item" data-interval="7000">
<img src="./assets/images/carougel-2.jpg" class="d-block w-100" alt="...">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleInterval" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleInterval" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="col">
<a href="https://www.redcross.org/donate/donation.html/"><img class="donate-image-rc"
src="assets/images/redcross-logo.png" data-toggle="tooltip" data-placement="top"
title="From small house fires to multi-state natural disasters, the American Red Cross goes wherever we’re needed, so people can have clean water, safe shelter and hot meals when they need them most."></a>
<p>The American Red Cross responds to an emergency every 8 minutes</p>
</div>
<div class="col">
<a href="https://www.samaritanspurse.org/"><img class="donate-image-sp"
src="assets/images/samaritans-purse3.jpg" data-toggle="tooltip" data-placement="top"
title="They specialize in meeting critical needs for victims of conflict, disaster, famine, and epidemics throughout the world, providing food, water, shelter, medicine, and other assistance in the Name of Jesus Christ."></a>
<p>Samaritan's Purse stands ready to respond at a moment’s notice wherever disaster strikes.</p>
</div>
</div>
<hr>
<!--footer-->
<footer>
<p id="footer-text">© 2019 Disaster Dashboard, LLC | <a href="about.html">About Us</a></p>
</footer>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="./assets/js/app.js"></script>
<script src="./assets/js/apiDraft.js"></script>
<script src="./assets/js/fbAuth.js"></script>
</body>
</html>