-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
414 lines (366 loc) · 19.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>California Road Trip Planner</title>
<!--JQUERY UI ,BOOTSTRAP STYLE LINK-->
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="./assets/css/style.css" />
</head>
<body>
<header class="d-flex justify-content-center align-items-center">
<h1>California Road Trip Planner</h1>
</header>
<main class="my-6">
<!--Container for MAP-->
<div class="container map-container mx-auto my-5 card-container">
<div class="row">
<div id="map"></div>
</div>
</div>
<!--Container for Attraction Cards-->
<div class="container card-container d-flex justify-content-center align-items-center flex-wrap py-4 mb-5" id = "attraction-box">
<div class ="row align-items-center justify-content-center">
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox1" value="34.031246,-118.788193"/>
<label for="checkbox1">
<img src="assets/images/Malibu.jpg" alt = "Image of Malibu"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "http://malibupier.com/" target="_blank">Malibu</a>
<div class="attraction-detail">Malibu Pier</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox2" value="34.456936,-119.254440" />
<label for="checkbox2">
<img src="assets/images/Ojai.webp" alt="Image of Ojai" />
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href="https://www.ojaivalleyinn.com/" target="_blank">Ojai</a>
<div class="attraction-detail">Ojai Valley Inn</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox3" value="34.420830,-119.698189" />
<label for="checkbox3">
<img src="assets/images/Santa-Barbara.jpg" alt="Image of Santa Barbara" />
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href="https://santabarbaraca.com/explore-and-discover-santa-barbara/neighborhoods-towns/santa-barbara/downtown-santa-barbara/state-street-promenade/"
target="_blank">Santa Barbara</a>
<div class="attraction-detail">State Street Promenade</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox4" value="34.5897,-120.1372" />
<label for="checkbox4">
<img src="assets/images/Solvang.jpg" alt="Image of Solvang" />
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href="https://santabarbaraca.com/explore-and-discover-santa-barbara/neighborhoods-towns/beyond-the-south-coast/solvang/"
target="_blank">Solvang</a>
<div class="attraction-detail">Danish Town</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox5" value="35.370781,-120.851173" />
<label for="checkbox5">
<img src="assets/images/Morro-Bay.jpg" alt="Image of Morro Bay" />
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href="https://www.morro-bay.ca.us/383/Morro-Rock-Beach" target="_blank">Morro Bay</a>
<div class="attraction-detail">Morro Rock</div>
</label>
</div>
</div>
</div>
<!--Row -2-->
<div class="row align-items-center justify-content-center attDirection">
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox6" value="35.640556,-120.680008"/>
<label for="checkbox6">
<img src="assets/images/Paso-Robles.jpg" alt = "Image of Paso Robles"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "https://pasowine.com/visit/wineries/" target="_blank">Paso Robles</a>
<div class="attraction-detail">Winery</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox7" value="36.1045,-121.6222" />
<label for="checkbox7">
<img src="assets/images/Big-Sur.jpg" alt = "Image of Big Sur"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "https://www.postranchinn.com/" target="_blank">Big Sur</a>
<div class="attraction-detail">Post Ranch Inn</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox8" value="36.555241,-121.923286"/>
<label for="checkbox8">
<img src="assets/images/Carmel-by-the-Sea.jpg" alt = "Image of Carmel-by-the-Sea"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "https://www.pebblebeach.com/17-mile-drive/" target="_blank">Carmel-by-the-Sea</a>
<div class="attraction-detail">17 Mile Drive</div>
</label>
</div>
</div>
<div class="col-lg-2 col-md-6 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox9" value="36.974117,-122.030792"/>
<label for="checkbox9">
<img src="assets/images/Santa-Cruz.jpg" alt = "Image of Santa Cruz"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "https://www.santacruz.org/blog/exploring-pleasure-point/" target="_blank">Santa Cruz</a>
<div class="attraction-detail">Pleasure Point</div>
</label>
</div>
</div>
<div class="col-lg-2 col-sm-12 col-12 mx-1 attSize">
<div class="attraction-checkbox">
<input type="checkbox" id="checkbox10" value="37.463552,-122.428586"/>
<label for="checkbox10">
<img src="assets/images/Half-Moon-Bay.jpg" alt = "Image of Half Moon Bay"/>
<span class="checkbox-cover">
<svg viewBox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<a href = "https://maverickssurfcompany.com/location-1" target="_blank">Half Moon Bay</a>
<div class="attraction-detail">Mavericks</div>
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-2 col-md-6 col-sm-12 col-12">
<button id="plan-trip" class="btn ">Plan My Trip</button>
</div>
</div>
</div>
</main>
<!--The below elements will be hidden-->
<section id="buttonSection" class="hide container m-auto">
<div class="row">
<div class="col-sm-12 col-md-6 d-flex">
<!--Added bootstrap attributes for modal component-->
<button id="back-button" class="btn w-100 text-white">Go Back</button>
</div>
<div class="col-sm-12 col-md-6 d-flex">
<button id="view-direction-button" class="btn w-100 text-white">View Directions</button>
</div>
</div>
</section>
<!--JQUERY UI Widget DIalog Confirm Box-->
<section class="container" id="dialog-section">
<div id="dialog-confirm" title="Directions">
<p id="directions-panel"></p>
</div>
</section>
<!--YEL API Restaurnat Carousel-->
<!--
Carousel Slides are generated Dynamically based on the attractions selected by User
-->
<section class="container bg-black my-5">
<section class="row text-center">
<section id="carousel-section" class="restaurant-carousel col-12 hide">
<div id="carouselExampleControls" class="carousel slide" data-interval = "false" data-ride="carousel" id="carousel-container">
<div class="carousel-inner">
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" 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="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section>
<section class="row text-center"></section>
</section>
</section>
<!--Carousel Hotel Container-->
<section class="container bg-black my-5">
<section class="row text-center">
<section id="carousel-section" class="hotel-carousel col-12 hide">
<section id="carouselExampleControls-1" class="hotel-carousel carousel slide " data-interval = "false" data-ride="carousel" id="carousel-container">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="assets/images/La-hotel.jpg" alt="...">
<div class="carousel-caption d-md-block">
<h2>Los Angeles</h2>
<h3>Best Western Royal Palace Inn & Suites</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-los-angeles/best-western-royal-palace-inn-suites/propertyCode.05268.html" target="_blank">2528 S. Sepulveda Boulevard Los Angeles, CA 90064</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/ojai-hotel-2.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Ojai</h2>
<h3>Best Western Plus Carpinteria Inn</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-carpinteria/best-western-plus-carpinteria-inn/propertyCode.05425.html" target="_blank">4558 Carpinteria Avenue Carpinteria, 93013-1863</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/sb-hotel.webp" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Santa Barbara</h2>
<h3>Best Western Plus Santa Barbara</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-santa-barbara/best-western-plus-santa-barbara/propertyCode.05206.html" target="_blank">2220 Bath Street Santa Barbara, CA 93105-4322</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/sf-hotel-2.webp" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Solvang</h2>
<h3>SureStay Plus Hotel by Best Western Lompoc</h3>
<a href = "https://www.bestwestern.com/en_US/book/lompoc/hotel-rooms/surestay-plus-hotel-by-best-western-lompoc/propertyCode.52049.html" target="_blank">1621 N H Street Lompoc, CA 93436</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/mb-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Morro Bay</h2>
<h3>Best Western San Marcos Inn</h3>
<a href = "https://www.bestwestern.com/en_US/book/morro-bay/hotel-rooms/best-western-san-marcos-inn/propertyCode.05232.html" target="_blank">250 Pacific Street Morro Bay, CA 93442</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/pr-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Paso Robles</h2>
<h3>Best Western Plus Black Oak</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-paso-robles/best-western-plus-black-oak/propertyCode.05084.html" target="_blank">1135 24th Street Paso Robles, CA 93446</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/cbts-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Big Sur</h2>
<h3>Best Western Carmel's Town House Lodge</h3>
<a href = "https://www.bestwestern.com/en_US/book/carmel-by-the-sea/hotel-rooms/best-western-carmel-s-town-house-lodge/propertyCode.05022.html" target="_blank">5th & San Carlos StreetCarmel-by-the-Sea, CA 94539</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/cbts-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Carmel-by-the-Sea</h2>
<h3>Best Western Carmel's Town House Lodge</h3>
<a href = "https://www.bestwestern.com/en_US/book/carmel-by-the-sea/hotel-rooms/best-western-carmel-s-town-house-lodge/propertyCode.05022.html" target="_blank">5th & San Carlos StreetCarmel-by-the-Sea, CA 94539</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/sb-hotel.webp" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Santa Cruz</h2>
<h3>Best Western Plus All Suites Inn</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-santa-cruz/best-western-plus-all-suites-inn/propertyCode.05480.html" target="_blank">500 Ocean Street
Santa Cruz, CA 95060</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/hmb-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>Half Moon Bay</h2>
<h3>Best Western Coyote Point Inn</h3>
<a href = "https://www.bestwestern.com/en_US/book/san-mateo/hotel-rooms/best-western-coyote-point-inn/propertyCode.05669.html" target="_blank">480 N Bayshore Boulevard
San Mateo, CA 94401</a>
</div>
</div>
<div class="carousel-item">
<img src="assets/images/sf-hotel.jpg" class="img-responsive rounded mx-auto d-block img-thumbnail" alt="...">
<div class="carousel-caption d-none d-md-block">
<h2>San Francisco</h2>
<h3>Hotel Bijou, WorldHotels Crafted</h3>
<a href = "https://www.bestwestern.com/en_US/book/hotels-in-san-francisco/hotel-bijou-worldhotels-crafted/propertyCode.05766.html" target="_blank">111 Mason Street San Francisco, CA 94102</a>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls-1" 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="#carouselExampleControls-1" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section>
</section>
</section>
</section>
<!-- JQUERY UI WIDGET DIALOG CONFIRMATION COMPONENT -->
<div id="dialog-confirm-back" title="Go Back">
<p>Are you sure you want to leave the page ?</p>
</div>
</section>
<!--JQUERY & JQUERY WIDGET SCRIPT-->
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script>
<!--BOOTSTRAP SCRIPT-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<!--
JAVASCRIPT MAP API
* The `defer` attribute causes the callback to execute after the full HTML
document has been parsed. For non-blocking uses, avoiding race conditions,
and consistent behavior across browsers, consider loading using Promises
with https://www.npmjs.com/package/@googlemaps/js-api-loader.
* callback executes the initMap function
* async allows the API loading to happen parellely while the remaining page is rendering
-->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAI4WnhNGdD61jpIljMc8JwFpXFXOd2jUM&callback=initMap&libraries=places"></script>
<!--CUSTOM SCRIPT & BOOTSTRAP RELATED SCRIPT-->
<script src="assets/js/script.js" ></script>
</body>
</html>