-
Notifications
You must be signed in to change notification settings - Fork 0
/
task2.html
419 lines (378 loc) · 18.8 KB
/
task2.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
415
416
417
418
419
<!DOCTYPE html>
<html>
<head>
<title>cleartrip</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</head>
<script type="text/javascript">
function jsonfuntion()
{
var x;
var y=localStorage.getItem("x");
if(y==null)
{
localStorage.setItem("x",0);
x=localStorage.getItem("x");
}
else
{
y=parseInt(y);
localStorage.setItem("x",y+1);
x=localStorage.getItem("x");
}
var travel=sessionStorage.getItem("travel1");
var email1=document.getElementById("email").value;
var name1 = document.getElementById("name").value;
var age1=document.getElementById("age").value;
var address1=document.getElementById("address").value;
var mobile1=document.getElementById("mobile").value;
var price1=sessionStorage.getItem("price");
var currentdate=new Date();
var date1=currentdate.getDate()+"-"+currentdate.getMonth()+"-"+currentdate.getFullYear();
var time1=currentdate.getHours()+":"+currentdate.getMinutes();
var details={
name:name1,
age:age1,
address:address1,
mobile:mobile1,
email:email1,
price:price1,
time:time1,
date:date1,
travel:travel1
}
var s=x.toString();
localStorage.setItem(s,JSON.stringify(details));
var m=JSON.parse( localStorage.getItem(s));
var t=JSON.stringify(m);
document.getElementById("name").value="";
document.getElementById("age").value="";
document.getElementById("address").value="";
document.getElementById("mobile").value="";
document.getElementById("email").value="";
}
</script>
<style>
.container {
margin:0 auto; /* this will center the page */
width:1000px; /* use your width here */
}
.logo{
font-size: 30px;
color: rgb(31, 8, 92);
font-weight: bold;
}
.book{
font-size: 30px;
font-weight: lighter;
color: gray;
}
.background{
background-color: rgba(11, 85, 134, 0.705);
color:white
}
.background1{
background-color: whitesmoke;
}
.review{
font-size: 13px;
text-align: center;
}
.ground{
background-color: white;
}
body{
background-color: whitesmoke;
}
.font{
font-size: 11px;
color: gray;
}
.fontbox{
font-size: 12px;
color: white;
}
.number{
background-color: rgb(9, 19, 153);
}
.yellow{
background-color: #efee9d;
}
.offer{
background-color:coral;
font-size: 12px;
font-weight: bold;
color: white;
}
.time{
font-size: 18px;
font-weight: bold;
}
.thick{
font-weight: bold;
}
.apply{
background-color: whitesmoke;
color: blue;
}
.white{
color: white;
}
.font12{
font-size: 12px;
}
input[type=text] {
padding: 10px;
}
.ton{
background-color: coral;
}
.ton:hover{
background-color: rgb(236, 146, 124);
}
.bgwhite{
background-color: white;
}
@media screen and (max-width: 400px) {
.container {
margin:0 auto; /* this will center the page */
width:960px; /* use your width here */
}
}
</style>
<body>
<body>
<div class="container">
<div class="d-flex">
<div class="p-3 logo mr-5 " style="white-space: nowrap;"><img src="cleartripicon.png" height="20px">cleartrip</div>
<div class="p-3 ml-5 book" style="white-space: nowrap;" >Book in four simple steps</div>
</div>
<div class="d-flex justify-content-between background p-3">
<div style="font-weight: bold;">
<div class="d-flex">
<div class="number pl-2 pr-2 mr-2">1</div>
<div>Itinerary</div>
</div>
</div>
<div class="review">Review your flight details</div>
</div>
<div class="d-flex ground flex-column p-0">
<div class="ml-5 border m-3 yellow">
<div class="d-flex">
<div class="offer border mr-2 pl-2 pr-2">OFFER</div>
<div><small>Get upto Rs.1500 cashback. Use coupon:CT2020 <a href="#">Know more</a></small></div>
</div>
</div>
<div class="d-flex">
<div class="ml-5" ><h3><span id="travel"><span></h3></div>
<div class="pl-2 p-2" style="color: gray; font-weight:normal;"><h5>Saturday 13 Jun 2020</h5></div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 border border-top-0 border-left-0 border-right-0 " style="width: 700px auto;">
<div class="d-flex flex-column justify-content-center">
<div><img src="airasiaicon.png" alt="imagenotfount" width="30px" height="30px"></div>
</div>
<div class="d-flex flex-column p-2 pl-4 pt-3">
<div>Air Asia</div>
<div class=" font">I5-2389</div>
<div class=" font">Economy</div>
</div>
<div class="d-flex flex-column text-right p-2 pl-4 pt-3">
<div class="time"><span id="source"></span></div>
<div>Sat, 13 Jun, 2020</div>
<div class="font">kempegowda International</div>
<div class="font">Ariport, Bangalore</div>
</div>
<div class="d-flex flex-column text-center p-2 pl-4 pt-3">
<div class="time"><i class="fa fa-clock-o" style="font-size: 35px;"></i></div>
<div><span id="time"></span></div>
</div>
<div class="d-flex flex-column justify-content-flex-end p-2 pl-4 pt-3">
<div class="time"><span id="destination"></span></div>
<div>Sat, 13 Jun, 2020</div>
<div class="font">Chennai Airport, Chennai</div>
</div>
<div class="d-flex flex-column p-2 pl-4 pt-3">
<div>Baggage information</div>
<div class="font">Check-in: 20 KG / person</div>
<div class="font">cabin: 7KG / person</div>
<div class="font"><a href="#">more info</a></div>
</div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 border border-top-0 border-left-0 border-right-0 " style="width: 700px auto;">
<div class="d-flex flex-column ml-4">
<div class="ml-2">Choose fare</div>
</div>
<div class="d-flex flex-column bg-primary text-white ml-5 p-2">
<div class="fontbox">Standard Fare</div>
<div> ₹ <span id="price"></span> </div>
<div class="white pt-2 pb-2">Date change fees:</div>
<div class="white">Airline fee upto 3,000</div>
<div class="white">Cleartrip fee upto 200</div>
</div>
<div class="d-flex flex-column bg-primary text-white ml-0 p-2 ">
<div class="p-2"><i class="fa fa-check-circle" style="font-size: 25px;"></i></div>
</div>
<div class="d-flex flex-column ml-3 p-2 border">
<div class="">Flexify</div>
<div> ₹ <span id="price1"></span> </div>
<div class=" pt-2 pb-2">Date change fees:</div>
<div class=""><del>Airline fee upto 3,000</del></div>
<div class=""><del>Cleartrip fee upto 200</del></div>
<div class="pt-2x"><a href="#" class="">know more</a></div>
</div>
<div class="d-flex flex-column ml-0 pl-3 ">
<div class="d-flex border text-white bg-dark">
<div class="d-flex flex-column">
<div class="p-2"><h6>Introducing Flexifly <span class="badge badge-success">New</span></h6></div>
<div class="font12 pl-2">Change your flight for free,pay</div>
<div class="font12 pl-2 pb-2">only the fare difference</div>
</div>
</div>
</div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 border border-top-0 border-left-0 border-right-0 " style="width: 700px auto;">
<div class="pl-5">Insurance</div>
<div class="d-flex flex-column pl-5">
<div class="form-check">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="">Secure your trip for delays and baggage loss for 1 Adult
</label>
</div>
<div class="font">279.0 per passenger <a href="#">(Hide benefits)</a></div>
<div class="d-flex pb-4 border border-left-0 border-right-0 border-top-0">
<div class="d-flex flex-column text-center pt-2">
<div class="p-2 "><img src="sitting.png" width="30px"></div>
<div class="font thick">Flight delay</div>
<div class="font">Reimbursed upto</div>
<div class="font">750* for 90 min delay</div>
</div>
<div class="d-flex flex-column text-center pt-2 ml-5 ">
<div class="p-2 "><img src="baggage.png" width="40px"></div>
<div class="font thick">Baggage loss</div>
<div class="font">Reimbursed upto</div>
<div class="font">7500*</div>
</div>
<div class="d-flex flex-column text-center pt-2 ml-5 ">
<div class="p-2 "><img src="medical.jpg" width="50px"></div>
<div class="font thick">Medical emergency</div>
<div class="font">Reimbursed upto</div>
<div class="font">100,000*</div>
</div>
<div class="d-flex flex-column text-center pt-2 ml-5 ">
<div class="p-2 "><img src="quick1.png" width="40px"></div>
<div class="font thick">Quick Approval</div>
<div class="font">Easy and paperless</div>
<div class="font">claims</div>
</div>
</div>
<div class="d-flex">
<div><img src="digit.jpg" width="50px"></div>
<div class="p-1 font"><a href="#"> Read policy details</a> to know more</div>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="">Yes, I accept the terms and conditions of the policy
</label>
</div>
<div class="font pl-4">(only for Indian resident between the age group 1 to 70 years)</div>
</div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 border border-top-0 border-left-0 border-right-0 " style="width: 700px auto;">
<div class="ml-0">Coupon or discount</div>
<div class="d-flex flex-column ml-4">
<div class="font">Have a coupon code or gift card to redeem?</div>
<div class="d-flex pt-2">
<input type="text" style="font-size: 15px;" placeholder="Enter Your Code / Card Number" size="40">
<button class=" pl-5 pr-5 apply" style="border-width: 1px;">Apply</button>
</div>
</div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 border border-top-0 border-left-0 border-right-0 " style="width: 700px auto;">
<div class="d-flex flex-column pl-5">
<div class="pl-4 mr-1" >PAYBACK</div>
</div>
<div class="d-flex flex-column ml-4">
<div class="font">Redeem existing points Also earn 24 points with this booking</div>
<div class="d-flex pt-2">
<input type="text" style="font-size: 15px;" placeholder="Enter PAYBACK Card/Mobile No." size="40">
<button class=" pl-5 pr-5 apply" style="border-width: 1px;">Apply</button>
</div>
<div class="pt-2"><img src="payback.png" width="60" height="30"> <a href="#" style="font-size:15px ;">Know more</a> </div>
</div>
</div>
<div class="d-flex ml-5 mb-4 pb-4 " style="width: 700px auto;">
<div class="d-flex flex-column pl-5">
<div class="pl-5">Total</div>
</div>
<div class="ml-4 flex-column mr-5">
<div class="ml-2"> ₹ <span id="price2"></span></div>
<div class="ml-2">1 adult <a href="#"> (fare details)</a></div>
</div>
<script type="text/javascript">
var travel1=sessionStorage.getItem("travel1");
var source=sessionStorage.getItem("source");
var destination=sessionStorage.getItem("destination");
var time=sessionStorage.getItem("time");
var price=sessionStorage.getItem("price")
document.getElementById("travel").innerHTML=travel1;
document.getElementById("source").innerHTML=source;
document.getElementById("time").innerHTML=time;
document.getElementById("destination").innerHTML=destination;
document.getElementById("price").innerHTML=price;
document.getElementById("price1").innerHTML=price;
document.getElementById("price2").innerHTML=price;
</script>
<div class="ml-5 flex-column">
<div class="flex-column ml-0">
<div class="ml-4"><span class="badge badge-success">Partially Refundable</span></div>
<div class="ml-5"><a href="#"> view details</a></div>
</div>
</div>
<div class="d-flex border text-white bg-dark ml-5">
<div class="d-flex flex-column">
<div class="p-2"><h6>Introducing PAYBACK <span class="badge badge-success">New</span></h6></div>
<div class="font12 pl-2">Earn points for every booking and</div>
<div class="font12 pl-2">redeem existing PAYBACK Points</div>
<div class="font12 pl-2 pb-2">for additional savings</div>
</div>
</div>
</div>
<div class="d-flex justify-content-between p-3 bgwhite">
<div class="d-flex flex-column">
<div style="font-weight: bold;"><span class="badge badge-primary p-2">2</span> Email address</div>
<div class="p-4"><input type="text" size="50" name="email" placeholder="Enter your email" id="email"></div>
</div>
<div class="review">Where do you want the ticket?</div>
</div>
<div class="d-flex justify-content-between p-3 border bgwhite">
<div class="d-flex flex-column">
<div style="font-weight: bold;"><span class="badge badge-primary p-2">3</span> Travellers</div>
<div class="p-4"><input type="text" size="50" name="namebox" placeholder="Name" id="name" required></div>
<div class="pb-4 pl-4 pt-0"><input type="text" size="50" name="namebox" id="age" placeholder="Age" ></div>
<div class="pb-4 pl-4 pt-0"><input type="text" size="50" name="address" id="address" placeholder="Address" required></div>
<div class="pb-4 pl-4 pt-0"><input type="text" size="50" name="mobile" id="mobile" placeholder="Mobile" pattern="[1-9]{1}[0-9]{9}" ></div>
<div class="mt-4 ml-4 mb-4"><a href="admin.html"> <button class=" text-white ton" onclick="jsonfuntion()">Continue booking</button></a></div>
</div>
<div class="review">Tell us who's travelling</div>
</div>
<div class="d-flex justify-content-between p-3 border background1">
<div style="font-weight: bold;"><span class="badge badge-primary p-2">4</span> Payment</div>
<div class="review">How would you like to pay?</div>
</div>
<div class="d-flex justify-content-between p-3 border background1 pt-5 pb-5">
<div style="font-weight: bold;"><i class="fa fa-lock"></i> Completely safe and secure transaction</div>
<div class="review"><i class="fa fa-copyright"></i> 2006-2020 Cleartrip Private Limited</div>
</div>
</div>
</div>
</div>
</body>
</body>
</html>