-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
135 lines (125 loc) · 6.44 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Trucking Around: Food Truck Finder</title>
<link rel="stylesheet" href="materialize/css/materialize.css" media="screen,projection">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/stylesheet.css">
</head>
<body class="#f5f5f5 grey lighten-4">
<nav>
<div class="nav-wrapper #ffca28 amber lighten-1"><a href="index.html"><img class="navImg" src="imgs/foodtruck.png"></a>
<h1 class="brand-logo center grey-text text-lighten-4 hide-on-small-and-down"><b>Trucking Around: Food Truck Finder</b></h1>
<ul id="nav-mobile" class="right">
<li><a href="favorites.html"><i class="material-icons">favorite</i></a></li>
<li><a href="index.html"><i class="material-icons">home</i></a></li>
</ul>
</div>
</nav>
<br>
<div class="container">
<div class="row">
<div class="col s12">
<h5 class="center">Welcome to Trucking Around - the San Francisco Food Truck finding app</h5>
<p class="center">Be sure to save your favorites. To view favorites click on the heart icon in the top right corner.</p><br>
<form>
<div class="row">
<div class="input-field col s6">
<i class="material-icons prefix red-text">search</i>
<input placeholder="enter your address -- Defaults to City Hall" id="address" type="text" class="validate">
<label for="address">Your Location in San Francisco</label>
</div>
<div class="input-field col s2 browser-default red-text">
<select id="distanceField">
<option value="" disabled selected>Default - 0.5 Miles</option>
<option value="0.2">4 Blocks</option>
<option value="0.5">0.5 Miles</option>
<option value="0.75">0.75 Miles</option>
<option value="1">1 Mile</option>
<option value="1.5">1.5 Miles</option>
<option value="5000">Anywhere</option>
</select>
<label>Choose your Distance</label>
</div>
<div class="input-field col s2 browser-default red-text">
<select id="dayOfWeek">
<option value="" disabled selected>Default - Current Day</option>
<option value="Monday">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wednesday</option>
<option value="Thursday">Thursday</option>
<option value="Friday">Friday</option>
<option value="Saturday">Saturday</option>
<option value="Sunday">Sunday</option>
</select>
<label>Day</label>
</div>
<div id="submitButton">
<button class="btn waves-effect waves-light red col s1.5" id="submit" type="submit" name="action">Submit
<i class="material-icons right">local_shipping</i>
</button>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<div class="col s6">
<h4 class="center red-text"> Food Trucks Map</h4>
<div id="map"> </div>
</div>
<!-- Stay above here -->
<div class="col s6">
<h4 class="center red-text"> Food Trucks Available</h4>
<div id="truckDiv">
<ul class="collapsible" data-collapsible="accordion" id="truckList">
</ul>
</div>
</div>
</div>
</div>
<footer class="page-footer #ffca28 amber lighten-1">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="grey-text text-lighten-4">Trucking Around: Food Truck Finder</h5>
<p class="grey-text text-lighten-4">Please submit your feedback <a href="mailto:daniel.marc.gardner@gmail.com">here</a></p>
<p class="grey-text text-lighten-4">Data provided by <a href="https://data.sfgov.org/"> SF Open Data</a>. If you see any data that is incorrect please let SF Open Data know <a href="http://support.datasf.org/customer/portal/emails/new"> here</a>.</p>
</div>
<div class="col l4 offset-l2 s12">
<a class="github-button" href="https://github.com/danielmarcgardner" data-style="mega" data-count-href="/danielmarcgardner/followers" data-count-api="/users/danielmarcgardner#followers" data-count-aria-label="# followers on GitHub" aria-label="Follow @danielmarcgardner on GitHub">Follow @danielmarcgardner</a>
<p class="grey-text text-lighten-4">Icons courtesy of <a href=" https://mapicons.mapsmarker.com"> Maps Icons Collection</a></p><img src="imgs/logo.gif">
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2017 Daniel Gardner - Q1 Galvanize Project
</div>
</div>
</footer>
<!--Scripts for loading -->
<script type="text/javascript" src="apikeys.js"></script>
<!-- So I can use the gitignore file -->
<script>
var GOOGLE_MAP_KEY = apiKey;
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.googleapis.com/maps/api/js?' +
'key=' + GOOGLE_MAP_KEY +'&callback=initMap';
script.async = true;
script.defer = true;
document.body.appendChild(script);
}
window.onload = loadScript;
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.2/fetch.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="materialize/js/materialize.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/truck.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>