forked from belugawhalesarecool/EmberWebmaster2024
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtourForm.html
More file actions
198 lines (172 loc) · 7.71 KB
/
tourForm.html
File metadata and controls
198 lines (172 loc) · 7.71 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
<!DOCTYPE html>
<html>
<head>
<title>Book your Tour</title>
<link rel="stylesheet" href="Real website/Html/standard format/embêr.css">
<link rel="stylesheet" href="Real website/Html/standard format/calendar.css">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed&display=swap" rel="stylesheet">
<link rel="icon" href="Real website/Html/standard format/logo.png"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20Real website/Html48,100Real website/Html700,0Real website/Html1,-50Real website/Html200">
<script src="Real website/Html/javascript/calendar.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="index.js" defer></script>
<link rel="stylesheet" href="Real website/Html/standard format/about.css">
<link rel="icon" href="Real website/Html/standard format/logo.png"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Antic+Didone&family=Barlow+Condensed&family=Inter:ital,opsz,wght@0,14Real website/Html32,100Real website/Html900;1,14Real website/Html32,100Real website/Html900&family=Playfair+Display:ital,wght@0,400Real website/Html900;1,400Real website/Html900&family=Poppins&family=Quicksand:wght@300Real website/Html700&display=swap" rel="stylesheet">
<style>
h1, .heading{
font-family: 'Playfair Display', serif;
}
footer {
background-color: #faf7ed;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
font-family: 'Inter', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
bottom: 0;
z-index:1000;
}
</style>
</head>
<div class="tour-page">
<body>
<div class = "left side">
<p id="heading"> EMBÊR </p>
<p id="heading1"> EMBÊR #2192-1 </p>
<img class="hover-rotate" src="Real website/Html/standard format/logo.png" id="logo" />
</div>
<nav class="nav-bar">
<div class="navlink-container">
<div class="dropcdown">
<button id="dropc-btn" class="navc-link"> ≡ </button>
<div class="dropc-links">
<a class="dropc-link" href="index.html"> HOME </a>
<a class="dropc-link" href="index.html?scroll=about"> ABOUT </a>
<a class="dropc-link" href="sustainabilityPage.html"> SUSTAINABILITY</a>
<a class="dropc-link" href="menuPage.html"> MENU </a>
<a class="dropc-link" href="reservePage.html"> RESERVE </a>
<form onsubmit="goToAbout(event)">
<a onsubmit="goToAbout(event)" class ="dropc-link" href="referencePage.html"> REFERENCES </a>
</form>
</div>
</div>
<form action = "index.html">
<button class="nav-link">HOME</button>
</form>
<form onsubmit="goToAbout(event)">
<button class="nav-link" type="submit">ABOUT</button>
</form>
<div class="dropdown">
<button id='drop-btn'class="nav-link">CONTACT US</button>
<div class="drop-links">
<a Href=tel:1234567890 class="tel-link"><b>Phone:</b><br>123-456-7890<br></a>
<a href="mailto:emberdining@gmail.com"class= 'mail-link'><b>Email:</b><br>emberdining@gmail.com</a>
</div>
</div>
<form action = "sustainabilityPage.html">
<button class="nav-link">SUSTAINABILITY</button>
</form>
<form action = "menuPage.html">
<button class="nav-link">MENU</button>
</form>
<form action = "reservePage.html">
<button class="nav-link">RESERVE</button>
</form>
<form action = "referencePage.html">
<button class="nav-link">REFERENCES</button>
</form>
</div>
<script>
function goToAbout(event) {
event.preventDefault();
window.location.href = "index.html?scroll=about";
}
</script>
<script>
window.onload = function() {
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('scroll') === 'about') {
document.getElementById("end-container").scrollIntoView({ behavior: "smooth" });
}
};
</script>
</nav>
<div class="reserve-container">
<h1 class="heading">Book a Tour</h1>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.getElementById("submit-tour").addEventListener("click", function (event) {
event.preventDefault();
// Get user inputs
const name = document.getElementById("name").value;
const selectedTime = document.getElementById("time-select").value;
// Store name and time in localStorage (for thank you page)
localStorage.setItem("Name", name);
localStorage.setItem("selectedTime", selectedTime);
// Redirect to the thank you page
window.location.href = "thankYouTour.html";
});
});
function goBack() {
window.location.href = "tourPage.html"; }
</script>
<br>
<button class="goback-button" onclick="goBack()">Go Back</button>
<br>
<div class="form-wrapper">
<form id="tour-form">
<div class="form-group">
<label for="name" class="form-label">Name</label>
<input type="text" id="name" class="form-input" placeholder="Your Name" required>
</div>
<div class="form-group">
<label for="email" class="form-label">Email</label>
<input type="email" id="email" class="form-input" placeholder="Your Email" required>
</div>
<div class="form-group">
<label for="tel" class="form-label">Phone Number</label>
<input type="phone number" id="phone number" class="form-input" placeholder="Your Number: 123-456-7890" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required>
</div>
<div class="number_input-wrapper">
<div class="number_input-group">
<label for="children" class="number_input-label">Number of Children</label>
<input type="number" id="children" class="number_input-input" placeholder="Enter a number" min="0" max="15" step="1" required>
</div>
<div class="number_input-group">
<label for="adults" class="number_input-label">Number of Adults</label>
<input type="number" id="adults" class="number_input-input" placeholder="Enter a number" min="0" max="15" step="1" required>
</div>
</div>
<div class="dropdown-group">
<label for="time-select" class="dropdown-label">Select a Time</label>
<select id="time-select" class="dropdown-select" required>
<option value="" disabled selected>Select a time</option>
<option value="12:00 PM">12:00 PM</option>
<option value="1:00 PM">1:00 PM</option>
<option value="2:00 PM">2:00 PM</option>
<option value="3:00 PM">3:00 PM</option>
<option value="4:00 PM">4:00 PM</option>
<option value="5:00 PM">5:00 PM</option>
<option value="6:00 PM">6:00 PM</option>
<option value="7:00 PM">7:00 PM</option>
<option value="8:00 PM">8:00 PM</option>
</select>
</div>
<Br>
<button id="submit-tour" type="button" class="form-button">Submit</button>
</form>
</div>
</div>
<footer>
<p><a href="https://tsaweb.org/competitions/computer-science/lists/high-school-computer-science---information-technology-competitions/webmaster" class="end-link">This website was created by Webmaster Team #2192-1.</a></p>
</footer>
</body>
</html>