-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
497 lines (424 loc) · 18.6 KB
/
index.html
File metadata and controls
497 lines (424 loc) · 18.6 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
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ProTrip</title>
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.png" type="image/x-icon">
<link rel="icon" href="assets/images/favicon.png" type="image/x-icon">
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Materialize CDN -->
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
<!-- Style Sheet -->
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection" />
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase.js"></script>
<!-- Moment.js CDN-->
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
</head>
<!-- User sign in navigation. -->
<body>
<nav class="white" role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" href="#" class="brand-logo">ProTrip</a>
<div class="dropdown">
<ul class="right hide-on-med-and-down" id="dropdown-menu">
<li><a class="account-info no-mobile " onclick="noUserSignedIn()" href="#" value="0">Login</a></li>
</ul>
</div>
<ul id="nav-mobile" class="sidenav" value="0">
<li><a class="account-info" onclick="noUserSignedIn()" href="#">Login</a></li>
</ul>
<a href="#" data-target="nav-mobile" class="sidenav-trigger" value="0"><i class="material-icons">account_circle</i></a>
</div>
</nav>
<!-- Floating menu navigation button. -->
<div class="fixed-action-btn">
<a class="btn-floating btn-large blue lighten-1">
<i class="large material-icons">map</i>
</a>
<ul>
<li><a id="food-action-btn" href="#foodSection" class="btn-floating green darken-4"><i class="material-icons">local_dining</i></a></li>
<li><a id="gas-action-btn" href="#gasSection" class="btn-floating teal darken-1"><i class="material-icons">local_gas_station</i></a></li>
<li><a id="activities-action-btn" href="#activitiesSection" class="btn-floating orange darken-2"><i class="material-icons">local_activity</i></a></li>
<li><a id="fav-action-btn" href="#favoritesSection" class="btn-floating red"><i class="material-icons">favorite</i></a></li>
</ul>
<a class="scrollToTop btn-floating btn-large deep-orange darken-1">
<i class="large material-icons">arrow_upward</i>
</a>
</div>
<!-- oopsie message start -->
<div class="container" id="oopsie">
<div class="modal-content">
<div class="row">
<div class="col s12">
<a id="close-btn" class=' btn-floating halfway-fab waves-effect waves-light grey darken-3'><i class='material-icons'>close</i></a>
<h4 class="close-text center">Oops! you misspelled something. Please Try Again.</h4>
</div>
</div>
</div>
</div>
<!-- Sign-in pop-up -->
<div class="container" id="user-sign-in">
<div class="modal-content">
<div class="row">
<div class="col s12">
<button class="btn-small right no-signin" id="top-exit-btn" type="submit" name="action" style="display: none">X</button>
<h4 class="center">Sign in to save your favorite searches.</h4>
</div>
</div>
<div class="row userSignIn">
<div id="login-btns">
<div class="row" style="margin-bottom: 10px;">
<div class="col s12">
<div class="center">
<button id="first-sign-in-new" class="btn-large waves-effect waves-light blue lighten-1" type="submit"
name="action">Create a New Account
</button>
</div>
</div>
</div>
<div class="row" style="margin-bottom: 0px;">
<div class="center">
<p>OR</p>
</div>
</div>
<div class="row" style="margin-bottom: 20px;">
<div class="col s12">
<div class="center">
<button id="first-sign-in" class="btn-large waves-effect waves-light blue lighten-1" type="submit" name="action">Log
In
</button>
</div>
</div>
</div>
<div class="row" style="margin-bottom: 0px;">
<div class="col s12">
<div class="center">
<button id="cancel-sign-in" class="btn-small no-signin" type="submit" name="action">Continue Without
Signing In
</button>
</div>
</div>
</div>
</div>
<div id="create-account" class="col s12" style="display: none">
<span>Create a new account</span>
<form class="new-user">
<label for="username">Username</label>
<input placeholder="Username" id="new-username" type="text" class="validate">
<label for="email">Email</label>
<input placeholder="Email" id="new-email" type="email" class="validate">
<label for="password">Password</label>
<input placeholder="Password" id="new-password" type="password" class="validate">
<br>
<div class="center">
<button class="btn waves-effect waves-light blue lighten-1" id="new-member" type="submit" name="action">Create
New Account
</button>
</div>
</form>
</div>
<div class="col s12" id="current-user" style="display: none">
<span>Log In</span>
<form class="existing-user">
<label for="email">Email</label>
<input placeholder="Email" id="email" type="email" class="validate">
<label for="password">Password</label>
<input placeholder="Password" id="password" type="password" class="validate">
<br>
<div class="center">
<button class="btn waves-effect waves-light blue lighten-1" id="sign-in" type="submit" name="action">Log
In
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Begin main section. -->
<div id="main-section">
<div id="index-banner" class="parallax-container">
<div class="section no-pad-bot">
<div class="container">
<br><br>
<h1 class="header center white-text text-lighten-1">Where's your next pit stop?</h1>
<div class="row center">
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">location_city</i>
<input id="city_input" type="text" class="validate">
<label for="city_input">City</label>
</div>
<form autocomplete="off" action="/action_page.php">
<div class="autocomplete input-field col s12">
<i class="material-icons prefix">filter_hdr</i>
<input id="state_input" type="text" name="myState">
<label for="state_input">State</label>
</div>
</form>
</div>
</form>
</div>
</div>
<div class="row center">
<a href="#" id="submit-button" class="btn-large waves-effect waves-light blue lighten-1">Get Started</a>
</div>
<br><br>
</div>
</div>
<div class="parallax"><img src="assets/images/background19.jpg" alt="Unsplashed background img 1"></div>
</div>
<!-- Info section begins. -->
<div id="titleSection" class="container">
<div class="section">
<!-- Icon Section -->
<div class="row initialInfo">
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center"><i class="material-icons">drive_eta</i></h2>
<h5 class="center ">Tell us where <br> you're going</h5>
<p class="light">We've designed ProTrip to be your perfect road trip companion. Let us know where you
plan on taking your next pit stop and we will do the rest. No matter how far you are from your next
city, we will give you the information you need right now to make that next stop the best one yet.</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center"><i class="material-icons">local_dining</i><i class="material-icons">local_gas_station</i><i
class="material-icons">local_activity</i></h2>
<h5 class="center">We'll pick the<br>best spots</h5>
<p class="light">If you're on a road trip, it's easy to waste money. ProTrip helps you save money and
spend it at the right places. We've made sure to get you the best gas prices, so you can spend that
extra cash on the best local food and activities at your next pit stop.</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center"><i class="material-icons">favorite</i></h2>
<h5 class="center">Save your<br>favorites</h5>
<p class="light">ProTrip finds you the best options and lets you decide. As you browse the choices at
your next pit stop, select the ones you like and quickly save them to your favorites. From there you
can compare menus, prices, and addresses to make the best decision.</p>
</div>
</div>
</div>
<div class="row hiddenInfo hidden">
<div class="col s12">
<div class="icon-block">
<h1 class="center"><i class="material-icons">place</i></h1>
<h2 class="center" id="selectedCity"></h2>
<br><br><br><br>
</div>
</div>
</div>
</div>
</div>
<!-- Begin Food Section -->
<div class="parallax-container valign-wrapper" id="photoSection">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light"><i class="material-icons" id="diningIcon">local_dining</i></h5>
</div>
</div>
</div>
<div class="parallax"><img src="assets/images/background15.jpg" alt="Unsplashed background img 3"></div>
</div>
<div id="foodSection" class="container">
<div class="section">
<div class="row">
<div class="col s12 center">
<h3><i class="mdi-content-send brown-text"></i></h3>
<h4>Food</h4>
<!-- API food card starts -->
<div id="food_cards">
</div>
<!-- API food card ends -->
<p class="left-align light initialInfo"><br>Don't settle for stopping at a fast food chain at your next pit
stop. One of the best ways to make a road trip memorable is to discover some of the best local food
places as you travel through towns. ProTrip helps you discover those places by giving you some of the
highest rated local restaurants. Favorite the ones you're interested in and browse the menu before you
get there.</p>
<!-- preloader image starts -->
<div class="preloader col s12 center">
<div class="progress light-blue">
<div class="indeterminate"></div>
</div>
<h5>Searching for the best food...</h5>
</div>
<!-- preloader image ends -->
</div>
</div>
</div>
</div>
<!-- Begin Gas Section -->
<div class="parallax-container valign-wrapper" id="photoSection">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light"><i class="material-icons" id="gasIcon">local_gas_station</i></h5>
</div>
</div>
</div>
<div class="parallax"><img src="assets/images/background21.jpg" alt="Unsplashed background img 2"></div>
</div>
<div id="gasSection" class="container">
<div class="section">
<div class="row">
<div class="col s12 center">
<h3><i class="mdi-content-send brown-text"></i></h3>
<h4>Gas</h4>
<!-- API gas card starts -->
<div id="gas_cards">
</div>
<p class="left-align light initialInfo" id="gasText"><br>ProTrip helps you find the cheapest gas prices at
your next pit stop. Think of what you could spend those extra dollars on as you travel. Using our
real-time gas price locator, we will help you save time and money finding the right gas pump to keep you
fueled on your journey.</p>
<!-- preloader image starts -->
<div class="preloader col s12 center">
<div class="progress light-blue">
<div class="indeterminate"></div>
</div>
<h5>Searching for the cheapest gas...</h5>
</div>
<!-- preloader image ends -->
<!-- API gas card ends -->
</div>
</div>
</div>
</div>
<!-- Begin activities section. -->
<div class="parallax-container valign-wrapper" id="photoSection">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light"><i class="material-icons" id="activityIcon">local_activity</i></h5>
</div>
</div>
</div>
<div class="parallax"><img src="assets/images/background17.jpg" alt="Unsplashed background img 3"></div>
</div>
<div id="activitiesSection" class="container">
<div class="section">
<div class="row">
<div class="col s12 center">
<h3><i class="mdi-content-send brown-text"></i></h3>
<h4>Events</h4>
<!-- API event card starts -->
<div id="event_cards">
</div>
<!-- API event card ends -->
<p class="left-align light initialInfo"><br>Chances are wherever you're headed there could be great local
events and activities happening. From exciting sports events to phenomonal concerts, ProTrip highlights
some of the activities happening at this next stop. Check out the dates and make plans to come back to
this pit stop in the future so you don't miss out on these activities.</p>
<!-- preloader image starts -->
<div class="preloader col s12 center">
<div class="progress light-blue">
<div class="indeterminate"></div>
</div>
<h5>Searching for available events...</h5>
</div>
<!-- preloader image ends -->
</div>
</div>
</div>
</div>
<!-- Begin favorites section. -->
<div class="parallax-container valign-wrapper" id="photoSection">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light"><i class="material-icons" id="favoriteIcon">favorite</i></h5>
</div>
</div>
</div>
<div class="parallax"><img src="assets/images/background13.jpg" alt="Unsplashed background img 3"></div>
</div>
<div id="favoritesSection" class="container">
<div class="section">
<div class="row">
<div class="col s12 center">
<h3><i class="mdi-content-send brown-text"></i></h3>
<h4>Favorites</h4>
<!-- API food card starts -->
<div id="fav_cards">
</div>
<!-- API food card ends -->
<p id="favParagraph" class="left-align light"><br>Once logged in, ProTrip will save all of your favorite
gas stations, restaurants, and activities here. Come back to your favorites to reference the info you
need to make your next pit stop the best one yet.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Team section and footer begins. -->
<footer class="page-footer blue blue darken-1">
<div class="container">
<div class="row">
<div class="col m12 l4 s12">
<h5 class="white-text">Our Team</h5>
<p class="grey-text text-lighten-4">We are a team of developers who love building tools to make life better.
We welcome any feedback, development ideas, problems or opportunities. Thanks for using ProTrip.</p>
</div>
<div class="col s3 m3 l2">
<a href="https://markpython86.github.io/Bootstrap-Portfolio/">
<h6 class="white-text center">Mark</h6>
<div class="bioPic center">
<img src="assets/images/TeamPics/mark2.jpg" alt="Mark" class="circle responsive-img">
</div>
</a>
</div>
<div class="col s3 m3 l2">
<a href="https://aalbrecht17235.github.io/">
<h6 class="white-text center">Andrew</h6>
<div class="bioPic center">
<img src="assets/images/TeamPics/Andrew.jpg" alt="Andrew" class="circle responsive-img">
</div>
</a>
</div>
<div class="col s3 m3 l2">
<a href="https://madelyneh.github.io/">
<h6 class="white-text center">Madelyn</h6>
<div class="bioPic center">
<img src="assets/images/TeamPics/madelyn.jpg" alt="Madelyn" class="circle responsive-img">
</div>
</a>
</div>
<div class="col s3 m3 l2">
<a href="https://danielpolk.github.io/">
<h6 class="white-text center">Daniel</h6>
<div class="bioPic center">
<img src="assets/images/TeamPics/daniel.jpg" alt="Daniel" class="circle responsive-img">
</div>
</a>
</div>
</div>
</div>
<br>
<div class="col s12 m12 l12">
<div class="footer-copyright">
<div class="container center">
Made with love.
</div>
</div>
</div>
</footer>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/api.js"></script>
<script src="js/init.js"></script>
<script src="js/main.js"></script>
<script src="js/firebase2.js"></script>
<script src="js/authentication.js"></script>
</body>
</html>