-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbooking.html
204 lines (187 loc) · 5.99 KB
/
booking.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
<!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>Booking</title>
<link rel="stylesheet" href="./booking.css" />
<link rel="stylesheet" href="./navbar.css" />
<link
rel="icon"
type="image/x-icon"
href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRdeXTVDu67JZDJNNRO9MhA7OBpUHYgEC54aw&usqp=CAU"
/>
<script
src="https://kit.fontawesome.com/5fc882c95a.js"
crossorigin="anonymous"
></script>
<link
rel="icon"
type="image/x-icon"
href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRdeXTVDu67JZDJNNRO9MhA7OBpUHYgEC54aw&usqp=CAU"
/>
</head>
<body>
<div id="navbar">
<div onclick="window.location.href='index.html'">
<img
src="https://logos-world.net/wp-content/uploads/2022/05/Trivago-Logo-700x394.png"
alt=""
/>
</div>
<div id="navlist">
<a
href="./favourites.html"
style="color: #007cc2; border-bottom: 3px solid#007cc2"
>
<i class="fa-regular fa-heart" style="font-size: 23px; opacity: 80%">
</i>
My favourites
</a>
<a href="./login.html"> Log in </a>
<a href=""> Menu <i class="fa-solid fa-chevron-down"></i> </a>
<a> INR <i class="fa-solid fa-chevron-down"></i> </a>
</div>
</div>
<div id="main">
<div id="hotelDetails">
<div id="head"></div>
<div id="center">
<h2 id="name"></h2>
<p id="desc" style="opacity: 80%"></p>
<div>
<div id="rating"></div>
<div id="all"></div>
</div>
<p><span id="night"> </span> Night</p>
</div>
<div id="bottom">
<div id="duration">
<h4 id="fromTo"></h4>
<h4 style="font-weight: lighter" id="userPref">1 Room, 2 Guests</h4>
</div>
<p><i class="fa-solid fa-door-open"></i> Classic</p>
<div id="prices">
<p id="roomPrice">Room price for 1 Night X 2 Guests</p>
<p id="price1">₹960</p>
<p>Discount 5%(Site discount)</p>
<p id="discount">-250</p>
</div>
<div id="lastbill">
<div>
<h3 style="line-height: 0px">Payable Amount</h3>
<h5 style="font-weight: lighter">inclusive of all taxes</h5>
</div>
<div><h2 id="total">₹500</h2></div>
</div>
<div>
<button
id="back"
style="cursor: pointer"
onclick="window.location.href='hotels.html'"
>
Incorrect booking? Click to change
</button>
</div>
</div>
</div>
<div id="customerDetails">
<div>
<div id="heading">
<div><span id="numdec"> 1 </span> Enter your details</div>
</div>
<div id="ext">
<div id="user_details">
<p>
We will use these details to share your booking information.
Hence confirm the below details.
</p>
<div id="primary">
<div>
<label for=""> Phone Number </label>
<input
type="number"
placeholder="Enter your phone no."
id="userPhone"
/>
</div>
<div id="emailVerify">
<label for=""> Email Address </label>
<input
type="email"
placeholder="Enter your email address"
id="userEmail"
/>
<br />
<input type="submit" value="Send OTP" id="otpButton" />
</div>
<div id="otp">
<label for=""> Enter OTP </label>
<input
type="number"
placeholder="Enter your OTP"
id="otpValue"
/>
<br />
<input type="submit" value="Verify" id="otpVerify" />
</div>
</div>
</div>
</div>
</div>
<div style="margin-top: 20px" id="paymentDetails">
<div id="heading" style="border-radius: 0px">
<div>
<span id="numdec"> 2 </span> Payment
</div>
</div>
<div id="paymentOptions">
<div
class="setSmoke"
id="opt2"
onclick="window.location.href='payment.html'"
>
<h4>Pay Now</h4>
</div>
</div>
<div id="pay" style="cursor: pointer"></div>
</div>
</div>
</div>
</body>
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"
></script>
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script src="./booking.js"></script>
<script>
async function otpRequest(OTP, email) {
let status = 0;
try {
let response = await Email.send({
Host: "smtp.elasticemail.com",
Username: "[email protected]",
Password: "BA3EA10909EC1121A81021DF4632399BE5CB",
To: email,
From: "[email protected]",
Subject: "Email verification",
Body:
"Your OTP is " + OTP + ". Please use this OTP to verify your Email",
});
if (response == "OK") {
status = 200;
} else {
status = 404;
}
} catch (error) {
console.log(error);
status = 404;
}
return status;
}
</script>
</html>