-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsports_booking.html
More file actions
234 lines (206 loc) · 8.59 KB
/
Copy pathsports_booking.html
File metadata and controls
234 lines (206 loc) · 8.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Book Now</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Fonts -->
<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=Heebo:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Font Awesome + Bootstrap Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Optional Libraries -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />
<!-- Main Stylesheet -->
<link href="css/style.css" rel="stylesheet">
<!-- Booking Page Specific Styling -->
<style>
body {
padding: 50px 15px;
background-color: #f9f9f9;
font-family: 'Heebo', sans-serif;
}
.booking-box {
background: #fff;
padding: 30px;
border-radius: 10px;
max-width: 600px;
margin: auto;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.booking-box h2 {
margin-bottom: 20px;
font-weight: 600;
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
.total {
font-weight: bold;
font-size: 18px;
margin-top: 15px;
text-align: right;
}
#booking-confirm-button {
margin-top: 25px;
}
</style>
</head>
<body>
<!-- Page Header -->
<div class="container-fluid page-header mb-5 p-0" style="background-image: url(img/carousel-1.jpg);">
<div class="container-fluid page-header-inner py-5">
<div class="container text-center pb-5">
<h1 class="display-3 text-white mb-3 animated slideInDown">Booking</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-center text-uppercase">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="breadcrumb-item"><a href="#">Services</a></li>
<li class="breadcrumb-item text-white active" aria-current="page">Book Now</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- Page Header End -->
<!-- Booking Form -->
<div class="booking-box">
<h2 id="booking-activity-name">Booking</h2>
<div class="form-group">
<label for="booking-members-input">Number of Members</label>
<input type="number" id="booking-members-input" class="form-control" min="1" value="1">
</div>
<div class="form-group">
<label for="booking-time-slot">Time Slot</label>
<select id="booking-time-slot" class="form-control">
<option>7:00 AM – 9:00 AM</option>
<option>10:00 AM – 12:00 PM</option>
<option>1:00 PM – 3:00 PM</option>
<option>4:00 PM – 6:00 PM</option>
</select>
</div>
<div class="form-group">
<label for="booking-price-per-member">Price per Member</label>
<input type="text" id="booking-price-per-member" class="form-control" readonly>
</div>
<div class="total">
Total: Rs. <span id="booking-total">0</span>
</div>
<a href="sports&gaming.html" class="btn btn-outline-primary w-100" id="back-button">← Back to Sports & Gaming</a>
<!-- <a href="sports_booking.php" class="btn btn-primary w-100" id="booking-confirm-button">Confirm Booking</a>
</div>-->
<!-- Newsletter Start -->
<div class="container newsletter mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="row justify-content-center">
<div class="col-lg-10 border rounded p-1">
<div class="border rounded text-center p-1">
<div class="bg-white rounded text-center p-5">
<h4 class="mb-4">Subscribe Our <span class="text-primary text-uppercase">Newsletter</span></h4>
<div class="position-relative mx-auto" style="max-width: 400px;">
<input class="form-control w-100 py-3 ps-4 pe-5" type="text" placeholder="Enter your email">
<button type="button" class="btn btn-primary py-2 px-3 position-absolute top-0 end-0 mt-2 me-2">Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Newsletter Start -->
<!-- Footer Start -->
<div class="container-fluid bg-dark text-light footer wow fadeIn mt-5" data-wow-delay="0.1s">
<div class="container pb-5">
<div class="row g-5">
<div class="col-md-6 col-lg-4">
<div class="bg-primary rounded p-4">
<a href="index.html"><h1 class="text-white text-uppercase mb-3">GOLK</h1></a>
<p class="text-white mb-0">🌍 Thank you for exploring the world with us! Your adventure is our passion. See you on your next journey! ✈️</p>
</div>
</div>
<div class="col-md-6 col-lg-3">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Contact</h6>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>University of Ruhuna, Matara</p>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>+012 345 67890</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>info@example.com</p>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-5 col-md-12">
<div class="row gy-5 g-4">
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Company</h6>
<a class="btn btn-link" href="#">About Us</a>
<a class="btn btn-link" href="#">Contact Us</a>
<a class="btn btn-link" href="#">Privacy Policy</a>
<a class="btn btn-link" href="#">Terms & Condition</a>
<a class="btn btn-link" href="#">Support</a>
</div>
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Services</h6>
<a class="btn btn-link" href="#">Food & Restaurant</a>
<a class="btn btn-link" href="#">Spa & Fitness</a>
<a class="btn btn-link" href="#">Sports & Gaming</a>
<a class="btn btn-link" href="#">Event & Party</a>
<a class="btn btn-link" href="#">GYM & Yoga</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<!-- Script -->
<script>
const prices = {
pool: 500,
chess: 300,
boardgames: 400,
badminton: 600,
cycling: 700,
volleyball: 650,
tennis: 550,
swimming: 800,
gym: 1000
};
const activityMap = {
pool: "Pool Table",
chess: "Chess Room",
boardgames: "Board Games",
badminton: "Badminton",
cycling: "Cycling",
volleyball: "Beach Volleyball",
tennis: "Tennis",
swimming: "Swimming Pool",
gym: "Gym & Fitness"
};
function getQueryParam(param) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(param);
}
const activity = getQueryParam("activity") || "pool";
const activityName = activityMap[activity] || "Activity";
const activityPrice = prices[activity] || 0;
// Assign values
document.getElementById("booking-activity-name").innerText = "Booking: " + activityName;
document.getElementById("booking-price-per-member").value = "Rs. " + activityPrice;
const membersInput = document.getElementById("booking-members-input");
const totalSpan = document.getElementById("booking-total");
function updateTotal() {
const members = parseInt(membersInput.value) || 1;
totalSpan.innerText = members * activityPrice;
}
membersInput.addEventListener("input", updateTotal);
window.onload = updateTotal;
</script>
</body>
</html>