forked from shivamparekh/week-7-project1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
262 lines (214 loc) · 8.21 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
<!DOCTYPE html>
<html>
<head>
<title>Project 1 - Oh, The Places We Will Go!</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Project 1 - Oh, The Places We Will Go!">
<meta name="author" content="Alberto Alvarez, Julie Hoffman, Shivam Parekh, Ali Zaidi">
<!-- add link to the jQuery Library -->
<script src="assets/javascript/jquery-3.1.1.min.js"></script>
<!-- reset stylesheet not needed because using bootstrap -->
<!-- <link rel="stylesheet" type="text/css" href="/assets/css/reset.css"> -->
<!-- Bootstrap section -->
<!-- Link in locally stored min version of bootstrap.css -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<!-- Link in locally stored min version of optional bootstrap theme -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-theme.min.css">
<!-- Add in locally stored min version of bootstrap javascript -->
<script src="assets/javascript/bootstrap.min.js"></script>
<!-- Google Fonts font usage - switched to local file instead - see style.css -->
<!-- <link href="https://fonts.googleapis.com/css?family=Caveat+Brush" rel="stylesheet"> -->
<!-- Make final css adjustments with personal stylesheet -->
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<!-- begin the bootstrap container -->
<div class="container">
<!-- title - will be populated later via JS when logo disappears after location is selected -->
<div class="row">
<div class="col-md-12 page-header" id="titleDiv">
</div>
</div>
<!-- begin by having logo displayed -->
<div class="row" id="logoImageDiv">
<div class="col-md-12">
<div class="well well-lg">
<img src="assets/images/PlacesLogo.png" class="img-responsive" id="logoImage" alt="Places Logo">
</div>
</div>
</div>
<!-- Modal for when nonsense location entered by user -->
<div class="row">
<div class="col-md-12">
<!-- Modal -->
<div class="modal fade" id="badLocationModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-sm" 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">Please enter a valid location!</h4>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of nonsense location modal code -->
<!-- Code for the modal that will display point of interest info detail -->
<div class="row">
<div class="col-md-12">
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" 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="myModalLabel">ADDRESS GOES HERE</h4>
</div>
<div class="modal-body" id="myModalContent">
<!-- first row holds the POI larger image and a small map w/marker -->
<div class="row" id="modalRow1">
<div class="col-md-8" id="myModalPOIImage"></div>
<div class="col-md-4" id="myModalMapImage"></div>
</div>
<!-- Next 6 rows hold the weather data: icon and forecast -->
<table class="table table-condensed table-striped table-responsive">
<!-- table version -->
<tr id="weatherRow0">
<td id="iconPeriod0"></td>
<td id="textPeriod0"></td>
</tr>
<tr id="weatherRow1">
<td id="iconPeriod1"></td>
<td id="textPeriod1"></td>
</tr>
<tr id="weatherRow2">
<td id="iconPeriod2"></td>
<td id="textPeriod2"></td>
</tr>
<tr id="weatherRow3">
<td id="iconPeriod3"></td>
<td id="textPeriod3"></td>
</tr>
<tr id="weatherRow4">
<td id="iconPeriod4"></td>
<td id="textPeriod4"></td>
</tr>
<tr id="weatherRow5">
<td id="iconPeriod5"></td>
<td id="textPeriod5"></td>
</tr>
</table>
<a target="_blank" href="https://www.wunderground.com/?apiref=6d09c4ae63c2a274">
<img src="assets/images/wundergroundLogo_4c_horz.jpg" id="wuLogo" alt="WU Logo">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of the point of interest modal code -->
<!-- location / venue / buttons row -->
<div class="row" id="userEntryRow">
<!-- location and venue div -->
<div class="col-md-12 text-center">
<!-- begin our form-->
<form class="form-inline">
<!-- first input is for the location -->
<div class="form-group">
<label for="location">Location: </label>
<input type="text" class="form-control" list="savedLocations" id="location" placeholder="Destination">
<datalist id="savedLocations"></datalist>
</div>
<!-- second input is for the venue type -->
<div class="form-group">
<label for="venue"> Venue: </label>
<select class="form-control" id="venue">
<option>Amusement Park</option>
<option>Art Gallery</option>
<option>Museum</option>
<option>Park</option>
<option>Zoo</option>
</select>
</div>
<!-- go button div -->
<button type="submit" class="btn btn-danger" id="goButton">GO!</button>
<!-- reset button div -->
<button type="reset" class="btn btn-danger" id="resetButton">RESET!</button>
</form>
<!-- end of location and venue div and column -->
</div>
<!-- end of location and venue row -->
</div>
<!-- map row -->
<div class="row" id="mapRow">
<div class="panel panel-default">
<div class="panel-body">
<!-- populate map in this column -->
<div class="col-md-12" id="map"></div>
</div></div></div>
<!-- photos row -->
<div class="row" id="photosDiv">
<div class="panel panel-default">
<div class="panel-body">
<!-- column 1 -->
<div class="col-md-3">
<!-- image 1 row -->
<div class="row">
<div class="col-md-12" id="image1"></div>
</div>
<!-- imaged 4 row -->
<div class="row">
<div class="col-md-12" id="image4"></div>
</div>
<!-- end column 1 -->
</div>
<!-- column 2 -->
<div class="col-md-3">
<!-- image 2 row -->
<div class="row">
<div class="col-md-12" id="image2"></div>
</div>
<!-- image 5 row -->
<div class="row">
<div class="col-md-12" id="image5"></div>
</div>
<!-- end column 2 -->
</div>
<!-- column 3 -->
<div class="col-md-3">
<!-- image 3 row -->
<div class="row">
<div class="col-md-12" id="image3"></div>
</div>
<!-- image 6 row -->
<div class="row">
<div class="col-md-12" id="image6"></div>
</div>
<!-- end column 3 -->
</div>
<!-- column 4 -->
<!-- reload button - empty for now - populate with function that loads images -->
<div class="col-md-3" id="reloadButtonDiv">
<!-- end column 4 -->
</div>
<!-- end photos row -->
</div></div>
</div>
<!-- end the bootstrap container -->
</div>
<!-- Link to modal JS -->
<!-- <script type="text/javascript" src="assets/javascript/modal.js"></script> -->
<!-- Link to flickr JS -->
<script type="text/javascript" src="assets/javascript/flickr.js"></script>
<!-- Link to the app javascript -->
<script type="text/javascript" src="assets/javascript/app.js"></script>
<!-- Link to Google Maps API - required to put it here - cannot be called via normal ajax method -->
<!-- This creates a google maps object then calls the initMap function in app.js -->
<!-- Required to do it this way per Google Maps API documentation -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD4gTlyrAaD5wN9zit_lSKLiNIGWhgKtwc&libraries=places&callback=initMap"></script>
</body>
</html>