-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtours.html
More file actions
423 lines (321 loc) · 20.5 KB
/
tours.html
File metadata and controls
423 lines (321 loc) · 20.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Visit Charleston South Carolina</title>
<meta charset="utf-8">
<link rel="icon" href="lighthouseICON.jpg" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="final.css">
<meta name="description" content="Experience the best of Charleston's waterways with diverse boat tour options. Delve into captivating
sightseeing tours and embark on a spine-tingling journey through the city's haunted history. Schedule your tour now!">
</head>
<body>
<header>
<h1><a href="index.html">Schedule a Tour</a></h1>
</header>
<div class="wrapper">
<div id="top"></div>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="history.html">History <span class="arrow">▼</span></a>
<ul class="drop">
<li><a href="history.html#majorevents">Major Historical Events</a></li>
<li><a href="history.html#monuments">Monuments in Charleston</a></li>
<li><a href="history.html#haunted-section">What makes Charleston Haunted?</a></li>
</ul>
</li>
<li><a href="resturants.html">Taste Charleston <span class="arrow">▼</span></a>
<ul class="drop">
<li><a href="resturants.html#poogansporch">Poogan's Porch</a></li>
<li><a href="resturantshtml#taverntable">Tavern & Table</a></li>
<li><a href="resturants.html#sushibar">167 Sushi Bar</a></li>
<li><a href="resturants.html#thegrocery">The Grocery</a></li>
<li><a href="resturants.html#leons">Leon's Fine Poultry & Oyster Shop</a></li>
<li><a href="resturants.html#morefood">More of the Best!</a></li>
</ul>
</li>
<li><a href="bestofcharleston.html">Explore <span class="arrow">▼</span></a>
<ul class="drop">
<li><a href="bestofcharleston.html#parksandmore">Parks, Plantations, and Shops</a></li>
<li><a href="bestofcharleston.html#beaches">Charleston Beaches</a></li>
<li><a href="bestofcharleston.html#museums">Charleston Museums</a></li>
</ul>
</li>
<li><a href="obx.html">Outer Banks Hub <span class="arrow">▼</span></a>
<ul class="drop">
<li><a href="obx.html#whatisobx">What is Netflix's Outer Banks</a></li>
<li><a href="obx.html#kooksvspogues">Pogues vs Kooks</a></li>
<li><a href="obx.html#filiming">Filming Locations</a></li>
</ul>
</li>
<li><a href="tours.html">Charleston Tours <span class="arrow">▼</span></a>
<ul class="drop" id="tour-viewport">
<li><a href="tours.html#boat-tours">Boating Tours</a></li>
<li><a href="tours.html#sight-tours">City Tours</a></li>
<li><a href="tours.html#haunted-tours">Haunted Tours</a></li>
</ul>
</li>
</ul>
</nav>
<div id="tourhero" role="img" aria-label="Horse and Carriage Tour"></div>
<div class="hero-section">
<figure>
<img src="tour2.jpg" alt="Horse and Carriage City Tour">
<figcaption><a href="https://upload.wikimedia.org/wikipedia/commons/7/74/Horse_tour_corner_of_Wilson_St_and_Beaufain_St%2C_Charleston.jpg">Horse and Carriage City Tour</a></figcaption>
</figure>
</div>
<main>
<!--Section for Boating Catchphrase and Scheduling Form-->
<h2 id="boat-tours">Boating </h2>
<p>Experience the best of Charleston's waterways with our diverse boat tour options! From the luxurious Charleston Harbor
Dinner Cruise to the thrilling Speed Boat Adventure, there's something for everyone. Get up close with nature on our Nature Boat
Tour or spot playful dolphins on the Folly Beach Dolphin Viewing Boat Tour. For a more intimate experience, book our 2.5 Hour
Private Boating Tour. Your adventure starts here
</p>
<details>
<summary><h3 class="schedule">Schedule a Tour Today ▼</h3></summary>
<p class="required">
All Children 8 and under are Free! <br>
All required fields are marked with an astrisk *.
</p>
<form id="boating-schedule" name="Boating-schedule" action="https://webdevbasics.net/scripts/demo.php" method="post" class="grid-form">
<fieldset id="customer-information">
<legend> Boating Tours </legend>
<label for="first-name">*First Name: </label>
<input type="text" name="First-Name" id="first-name" size="25" required placeholder="First Name" ><br>
<label for="last-name">*Last Name: </label>
<input type="text" name="Last-Name" id="last-name" size="25" required placeholder="last Name"><br>
<label for="dob1">*Date of Birth:</label>
<input type="date" id="dob1" name="dob1"><br>
<label for="email-address">*Email Address: </label>
<input type="email" name="Email" id="email-address" size="25" required placeholder="youremail@domain.com">
<label for="phone-number">*Phone Number: </label>
<input type="text" name="Phone-Number" id="phone-number" size="25" required placeholder="000-000-0000" maxlength="12"><br>
<label for="address">Street Address:</label>
<input type="text" id="address" name="Address" size="25" placeholder="123 1st Street"><br>
<label for="city">City:</label><br>
<input type="text" id="city" name="City" size="25" placeholder="Charleston"><br>
<label for="state">State:</label>
<input type="text" id="state" name="State" size="25" maxlength="2" placeholder="SC"><br>
<label for="zip">Zip Code:</label>
<input type="text" id="zip" name="Zip" size="25" maxlength="5" placeholder="12345"><br>
<br>
<br>
<label for="boating-tour">*Select Boating Tour</label>
<select name="Boating-Tour" id="boating-tour" required="">
<option value="" selected="" >Tours</option>
<option value="Private-Tour">2.5 Hour Private </option>
<option value="Dolphin-Tour">Folly Beach Dolphin</option>
<option value="Speed-Adventure">Harbor Speed Boat Adventure</option>
<option value="Nature-Tour">Nature Boat Tour with Naturalist</option>
<option value="Dinner-Cruise">Harbor Luxury Dinner Cruise</option>
</select>
<br>
<label for="adult-tickets">*Number of Adults</label>
<input type="number" id="adult-tickets" name="Adult-Tickets" min="1" max="10" required><br>
<label for="child-tickets">*Children under 8</label>
<input type="number" id="child-tickets" name="Child-Tickets" min="0" max="10" required><br>
<label for="eventDate1">*Event Date:</label>
<input type="date" id="eventDate1" name="eventDate1"><br>
<br>
<br>
<label for="customer-note" class="note-text">Note for Tour Guide: </label><br>
<textarea rows="3" cols="40" name="Note" id="customer-note" placeholder="Include any additional information for your Tour Guide!"></textarea>
<br>
<input type="reset" value="Reset Form">
<input type="submit" value="Schedule Tour">
</fieldset>
</form>
</details>
<!--Section for Sightseeing Catchphrase and Scheduling Form-->
<h2 id="sight-tours"> City Tours </h2>
<p>Explore the enchanting sights of Charleston with our array of captivating sightseeing tours!
Delve into the beauty of the Magnolia Plantation, traverse the historic city streets, and immerse yourself
in the rich tapestry of Charleston's past. Whether you seek a leisurely exploration on foot, an enlightening journey by bus,
or a romantic and nostalgic horse and carriage ride, our diverse range of options ensures an experience tailored to
your preferences. Secure your booking now and indulge in the captivating history and natural allure of Charleston!
</p>
<details>
<summary><h3 class="schedule">Schedule a Tour Today ▼</h3></summary>
<p class="required">
All Children 8 and under are Free! <br>
All required fields are marked with an astrisk *.
</p>
<form id="sightseeing-schedule" name="sightseeing-schedule" action="https://webdevbasics.net/scripts/demo.php" method="post" class="grid-form">
<fieldset id="customer-info">
<legend> City Tours </legend>
<label for="f-name">*First Name: </label>
<input type="text" name="First-Name" id="f-name" required placeholder="First Name"><br>
<label for="l-name">*Last Name: </label>
<input type="text" name="Last-Name" id="l-name" required placeholder="last Name"><br>
<label for="dob2">*Date of Birth:</label>
<input type="date" id="dob2" name="dob2"><br>
<label for="e-address">*Email Address: </label>
<input type="email" name="Email" id="e-address" required placeholder="youremail@domain.com"><br>
<label for="p-number">*Phone Number: </label>
<input type="text" name="Phone-Number" id="p-number" required placeholder="000-000-0000" maxlength="12"><br>
<label for="st-address">Street Address:</label>
<input type="text" id="st-address" name="Address" placeholder="123 1st Street"><br>
<label for="address-city">City:</label><br>
<input type="text" id="address-city" name="City" placeholder="Charleston"><br>
<label for="address-state">State:</label>
<input type="text" id="address-state" name="State" maxlength="2" placeholder="SC"><br>
<label for="zip-code">Zip Code:</label>
<input type="text" id="zip-code" name="Zip" maxlength="5" placeholder="12345"><br>
<br>
<br>
<label for="sightseeing-tours">*Select Sightseeing Tour</label>
<select name="Sightseeing-Tours" id="sightseeing-tours" required="">
<option value="" selected="" disabled="">Tours</option>
<option value="Carriage-Tour">Horse & Carriage Historic Tour</option>
<option value="Bus-Tour">90-minute City Bus</option>
<option value="All-Bus-Adventure">See-it-all Bus</option>
<option value="Walking-Tour">Guided Walking Tour $47.50</option>
<option value="Magnolia-Plantation">Magnolia Plantation</option>
</select>
<br>
<label for="adult-ticket">*Number of Adults</label>
<input type="number" id="adult-ticket" name="Adult-Tickets" min="1" max="10" required><br>
<label for="child-ticket">*Children under 8</label>
<input type="number" id="child-ticket" name="Child-Tickets" min="0" max="10" required><br>
<label for="eventDate2">*Event Date:</label>
<input type="date" id="eventDate2" name="eventDate2"><br>
<br>
<br>
<label for="cust-note" class="note-text">Note for Tour Guide</label><br>
<textarea rows="3" cols="40" name="Note" id="cust-note" placeholder="Include any additional information for your Tour Guide!"></textarea>
<br>
<input type="reset" value="Reset Form">
<input type="submit" value="Schedule Tour">
</fieldset>
</form>
</details>
<!--Section for Haunted Tour Catchphrase and Scheduling Form-->
<h2 id="haunted-tours">Haunted </h2>
<p>Prepare to embark on an unforgettable journey through the eerie realms of Charleston's haunted history! From the ghostly whispers
of the Unitarian Church Graveyard to the chilling legends of Pirates, Haunts, & Death, our tours offer a spine-tingling exploration
of the city's most notorious haunts. Join us for a hair-raising adventure as we delve into the shadowy past of Charleston's most
haunted locations!
</p>
<details>
<summary><h3 class="schedule">Schedule a Tour Today ▼</h3></summary>
<p class="required">
All Children 8 and under are Free! <br>
All required fields are marked with an astrisk *.
</p>
<form id="haunted-schedule" name="haunted-schedule" action="https://webdevbasics.net/scripts/demo.php" method="post" class="grid-form">
<fieldset id="customer-details">
<legend> Haunted Tours </legend>
<label for="f_name">*First Name: </label>
<input type="text" name="First-Name" id="f_name" size="25" required placeholder="First Name"><br>
<label for="l_name">*Last Name: </label>
<input type="text" name="Last-Name" id="l_name" size="25" required placeholder="last Name"><br>
<label for="dob3">Date of Birth:</label>
<input type="date" id="dob3" name="dob3"><br>
<label for="phone">*Phone Number: </label>
<input type="text" name="Phone-Number" id="phone" size="25" required placeholder="000-000-0000" maxlength="12"><br>
<label for="st_address">Street Address:</label>
<input type="text" id="st_address" name="Address" size="25" placeholder="123 1st Street"><br>
<label for="add_city">City:</label>
<input type="text" id="add_city" name="City" size="25" placeholder="Charleston"><br>
<label for="add_state">State:</label>
<input type="text" id="add_state" name="State" size="25" maxlength="2" placeholder="SC"><br>
<label for="zip_code">Zip Code:</label>
<input type="text" id="zip_code" name="Zip" size="25" maxlength="5" placeholder="12345"><br>
<label for="e-mail">*Email Address: </label>
<input type="email" name="Email" id="e-mail" size="25" required placeholder="youremail@domain.com"><br>
<br>
<br>
<label for="haunted-tour">*Select a Haunted Tour</label>
<select name="Haunted-Tour" id="haunted-tour" required="">
<option value="" selected="" disabled="">Tours</option>
<option value="Jail-Tour">Haunted Jail Walking Tour</option>
<option value="Evening-Carriage-tour">Evening Horse & Carriage</option>
<option value="History-Adventure">Haunted History Walking</option>
<option value="Shadows-of-Peninsula-Tour">Peninsula Haunts Pirates & Ghost</option>
<option value="Graveyard-Tour">City & Unitarian Graveyard</option>
</select>
<br>
<br>
<label for="a-tickets">*Number of Adults</label>
<input type="number" id="a-tickets" name="Adult-Tickets" min="1" max="10" required><br>
<label for="c-tickets">*Children under 8</label>
<input type="number" id="c-tickets" name="Child-Tickets" min="0" max="10" required><br>
<label for="eventDate3">Event Date:</label>
<input type="date" id="eventDate3" name="eventDate3"><br>
<br>
<br>
<label for="c-note" class="note-text">Note for Tour Guide</label><br>
<textarea rows="3" cols="40" name="Note for Tour Guide" id="c-note" placeholder="Include any additional information for your Tour Guide!"></textarea><br>
<br>
<input type="reset" value="Reset Form">
<input type="submit" value="Schedule Tour">
</fieldset>
</form>
</details>
</main>
<h3 id="viator-heading">Not finding the Tour you were hoping for? View all of Charleston South Carolina's tourist attractions on Viator.com.</h3>
<ifrmae id="viator">
<a href="https://www.viator.com/Charleston/d4384-ttd?sortType=external">
<img src="viator-logo.jpg" alt="Viator Logo" width=40% height=5%>
</a>
</ifrmae>
<h4 class="top"><a href="#top">Jump to top</a></h4>
<footer>
<div class="sitemap-link"><a href="sitemap.html">Sitemap</a></div>
<br>
<br>
<div>
<script>
// JavaScript to display modified date and time
document.write("Last modified: " + document.lastModified);
</script>
</div>
Copyright © 2024 Visit Charleston South Carolina <br>
<a href="mailto:sharper23@ivytech.edu">sharper23@ivytech.edu</a>
</footer>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const forms = document.querySelectorAll('form');
forms.forEach(form => {
form.addEventListener('submit', function(event) {
event.preventDefault();
const dobInput = form.querySelector('input[name^="dob"]');
const eventDateInput = form.querySelector('input[name^="eventDate"]');
if (validateDOB(dobInput) && validateEventDate(eventDateInput)) {
form.submit();
}
});
});
function validateDOB(dobInput) {
const dob = new Date(dobInput.value);
const today = new Date();
const age = today.getFullYear() - dob.getFullYear();
const monthDiff = today.getMonth() - dob.getMonth();
const dayDiff = today.getDate() - dob.getDate();
if (monthDiff < 0 || (monthDiff === 0 && dayDiff < 0)) {
age--;
}
if (age < 18) {
alert('You must be at least 18 years old.');
return false;
}
return true;
}
function validateEventDate(eventDateInput) {
const eventDate = new Date(eventDateInput.value);
const today = new Date();
if (eventDate <= today) {
alert('Event date must be in the future.');
return false;
}
return true;
}
});
</script>
<script>
</script>
</body>
</html>