-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (173 loc) · 8.94 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
<!DOCTYPE html>
<html lang="en">
<!-- HTML file to execute the Still Open application.
NAME: index.html
AUTHOR: Robert Brown, Joshua Lewis, Elaina Swann
DATE: 01/25/2018
REVISION LOG:
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Still Open" />
<meta name="keywords" content="Restaurants, Still Open" />
<meta name="author" content="Robert Brown, Joshua Lewis, Elaina Swann" />
<title>Still Open?</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Fonts used -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:100&effect=neon">
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Condensed" rel="stylesheet">
<!-- Application specific stylesheet -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Google Maps JavaScript library -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDHJqlNREO1QpaDF_ZwGt6M2CedgpZ4L7I&libraries=places,geometry" async defer></script>
<!-- Moment JavaScript library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
<!-- Spiderfier JavaScript library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/OverlappingMarkerSpiderfier/1.0.3/oms.min.js"></script>
<!-- Application specific javascript -->
<script src="assets/javascript/app.js"></script>
<script src="assets/javascript/utilities.js"></script>
<script src="assets/javascript/address.js"></script>
<script src="assets/javascript/hours.js"></script>
<script src="assets/javascript/restaurants.js"></script>
<script src="assets/javascript/renderList.js"></script>
<script src="assets/javascript/renderRestModal.js"></script>
<script src="assets/javascript/processAddr.js"></script>
<script src="assets/javascript/errorHandler.js"></script>
</head>
<body>
<!-- Button trigger restaurant info modal -->
<!-- Found in restaurant list divs -->
<!-- Restaurant info modal -->
<div class="modal fade" id="info-modal" tabindex="-1" role="dialog" data-backdrop="true" data-keyboard="true" aria-labelledby="info-modal-title">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="info-modal-title">Restaurant Info</h4>
</div>
<div class="modal-body" id="info-modal-body">
<!-- Divs are dynamically created by JavaScript -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</div>
</div>
</div>
<!-- Address modal -->
<div class="modal fade" id="addr-modal" tabindex="-1" role="dialog" data-backdrop="false" data-keyboard="true" aria-labelledby="addr-modal-title">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close reload" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title text-center" id="addr-modal-title">Please enter an address so that we can find the closest open restaurants!<br>At least city/state or zip code.</h4>
</div>
<div class="modal-body" id="addr-modal-body">
<form>
<div class="form-group" id="form-addr-street">
<label for="addr-street">Street address</label>
<input type="text" class="form-control" id="addr-street" placeholder="123 Street">
</div>
<div class="form-group" id="form-addr-city">
<label for="addr-city">City</label>
<input type="text" class="form-control" id="addr-city" placeholder="Savannah">
</div>
<div class="form-group" id="form-addr-state">
<label for="addr-state">State</label>
<input type="text" class="form-control" id="addr-state" placeholder="GA">
</div>
<div class="form-group" id="form-addr-zipcode">
<label for="addr-zipcode">Zip Code</label>
<input type="number" class="form-control" id="addr-zipcode" placeholder="12345">
</div>
<button type="submit" class="btn btn-primary" id="btn-addr-submit">Submit</button>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default reload" id="btn-addr-close" data-dismiss="modal">
Close
</button>
</div>
</div>
</div>
</div>
<!-- Error Modal -->
<div class="modal fade" id="err-modal" tabindex="-1" role="dialog" data-backdrop="true" data-keyboard="true" aria-labelledby="err-modal-label">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close reload" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="err-modal-title">Error!</h4>
</div>
<div class="modal-body" id="err-modal-body">
<!-- Divs are dynamically created by JavaScript -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default reload" data-dismiss="modal" id="reset-btn">
Refresh App
</button>
</div>
</div>
</div>
</div>
<div class="header">
<div class="container">
<h1 class="text-center font-effect-neon" id="title">Still Open?</h1>
</div>
</div>
<div class="container" id="main-content">
<div class="row info">
<h3 class="text-center blurb">Welcome to Still Open. The app that easily finds all the currently open restaurants near you.
<br>
Never ask <span id="catch-phrase">"What's still open?"</span> again!</h3>
</div>
<div class="col-xs-12 col-sm-12 col-md-6" id="list-container">
</div>
<div class="col-xs-12 col-sm-12 col-md-6" id="map-container">
<div class="row">
<div id="legend">
</div>
<div id="map"></div>
</div>
<div class="row text-center" id="radius">
<div class="btn btn-default" id="center-map">Center Map</div>
<div class="radio btn btn-default">
<label>
<input type="radio" name="radius" class = "radio-button" id="radio-button-1" value="">
1 mile
</label>
</div>
<div class="radio btn btn-default">
<label>
<input type="radio" name="radius" class = "radio-button" id="radio-button-2" value="" checked>
2 mile
</label>
</div>
<div class="radio btn btn-default">
<label>
<input type="radio" name="radius" class = "radio-button" id="radio-button-3" value="">
4 mile
</label>
</div>
<h4 class="blurb">Change your search radius with these!</h4>
</div>
</div>
</div>
</body>
</html>