-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
586 lines (565 loc) · 17.9 KB
/
index.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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
<!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="preconnect" href="https://fonts.googleapis.com" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"
/>
<script src="https://code.iconify.design/iconify-icon/1.0.0-beta.3/iconify-icon.min.js"></script>
<link
href="https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css"
rel="stylesheet"
/>
<link
rel="icon"
href="https://iconape.com/wp-content/files/re/43583/svg/bookingcom-1.svg"
type="image/x-icon"
/>
<link rel="stylesheet" href="./css/Header.css" />
<link rel="stylesheet" href="./css/explore.css" />
<link rel="stylesheet" href="./css/index.css" />
<link rel="stylesheet" href="./css/swiper.css" />
<link rel="stylesheet" href="./css/navbar.css" />
<link rel="stylesheet" href="./css/footer.css" />
<style>
#navbar > :last-child > a:nth-child(1) {
border: 1px solid white;
background-color: rgb(26, 74, 141);
padding: 9px;
border-radius: 10em;
}
#navbar > :last-child > a:nth-child(2) {
border: inherit;
background-color: inherit;
padding: 9px;
border-radius: 10em;
}
#navbar > :last-child > a:nth-child(3) {
border: inherit;
background-color: inherit;
padding: 9px;
border-radius: 10em;
}
#navbar > :last-child > a:nth-child(4) {
border: inherit;
background-color: inherit;
padding: 9px;
border-radius: 10em;
}
#navbar > :last-child > a:nth-child(5) {
border: inherit;
background-color: inherit;
padding: 9px;
border-radius: 10em;
}
/* #one {
position: relative;
}
#one div {
padding: 0;
margin-top: -05px;
cursor: pointer;
}
#one p {
margin-bottom: 5px;
} */
#container {
position: absolute;
top: 51px;
left: -3px;
width: 300px;
max-height: 300px;
/* border: 1px solid black; */
display: flex;
flex-direction: column;
overflow-y: auto;
background-color: #fff;
z-index: 100;
}
#container > div {
line-height: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="header">
<div id="top"></div>
<div id="adline">
<h1>Find your next stay</h1>
<h2>Search low prices on hotels, homes and much more...</h2>
</div>
</div>
<div id="search_container">
<div>
<div id="one">
<i class="ri-hotel-bed-line"></i>
<input
oninput="getHotelLocation()"
type="text"
id="placeS"
placeholder="Where are you going?"
/>
</div>
<div id="container"></div>
</div>
<div>
<div>
<i class="ri-calendar-2-fill"></i>
<input
type="text"
onfocus="this.type='date'"
id="checkIn"
placeholder="Check-in"
/>
</div>
<div>-</div>
<div>
<input
type="text"
onfocus="this.type='date'"
id="checkout"
placeholder="Check-out"
/>
</div>
</div>
<div>
<div>
<i class="ri-user-3-fill"></i>
<div>
<span id="adults">2</span>
adults .
<span id="children">0</span>
children .
<span id="room">1</span>
room
<iconify-icon
id="updown"
icon="ri:code-s-fill"
width="20"
rotate="90deg"
></iconify-icon>
</div>
</div>
</div>
<div>
<button id="search_btn">Search</button>
</div>
</div>
<div id="search_checkbox">
<input type="checkbox" />
<label for="checkbox">I'm travelling for work</label>
</div>
<div id="covid">
<i class="fa fa-info-circle" aria-hidden="true"></i>
<p>
Get the advice you need. Check the latest COVID-19 restrictions before
you travel.
<a
href="https://www.booking.com/covid-19.html?aid=304142&label=gen173nr-1DCAEoggI46AdIM1gEaGyIAQGYAQm4ARfIAQzYAQPoAQGIAgGoAgO4AsHUkpgGwAIB0gIkNmVhMDRmOTItYjVkYi00ZWVkLWI3ZmYtMmQyOWEzMmNhZTVh2AIE4AIB"
>Learn more</a
>
</p>
</div>
<div id="feqpi2">
<div>
<img
src="https://r-xx.bstatic.com/data/mm/index_banner_getaway22_summer_2.jpg"
alt=""
/>
</div>
<div>
<h3>Save 15% or more</h3>
<p>
This summer, make your dream trip a reality. Book and stay for less
before 30 Sep 2022
</p>
<button id="explore_deals">Explore Deals</button>
</div>
</div>
<!-----Swiper first----->
<div id="explore_properties">
<h2>Explore India</h2>
<p>These popular destinations have a lot to offer</p>
<div class="swiper mySwiper1">
<div class="swiper-wrapper"></div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</div>
<!--Swiper first end here-->
<div id="wdfgdf">
<div class="brng">
<div class="opacity"></div>
<img
class="city"
src="https://static.theprint.in/wp-content/uploads/2019/11/Humayuns-tomb-image.jpg?compress=true&quality=80&w=376&dpr=2.6"
alt=""
/>
<div class="doc">
<div class="indian_flag">
<h1>New Delhi</h1>
<img
src="https://t-cf.bstatic.com/static/img/flags/24/in/56cd199c9f53cba5ccd7667c3a1a196f95e60a10.png"
alt=""
/>
</div>
<p>2911 properties</p>
</div>
</div>
<div class="brng">
<div class="opacity"></div>
<img
class="city"
src="https://www.worldtravelguide.net/wp-content/uploads/2017/04/Think-India-Mumbai-486332873-Chidanand-M.-copy.jpg"
alt=""
/>
<div class="doc">
<div class="indian_flag">
<h1>Mumbai</h1>
<img
src="https://t-cf.bstatic.com/static/img/flags/24/in/56cd199c9f53cba5ccd7667c3a1a196f95e60a10.png"
alt=""
/>
</div>
<p>1651 properties</p>
</div>
</div>
</div>
<div id="nwdk">
<div class="jsdbuid">
<div class="opacity2"></div>
<img
class="city2"
src="https://i0.wp.com/www.travelnthrill.com/wp-content/uploads/2019/02/Jaipur-Amber-Fort.jpg?fit=1068%2C712&ssl=1"
alt=""
/>
<div class="doc">
<div class="indian_flag2">
<h1>Jaipur</h1>
<img
src="https://t-cf.bstatic.com/static/img/flags/24/in/56cd199c9f53cba5ccd7667c3a1a196f95e60a10.png"
alt=""
/>
</div>
<p>1558 properties</p>
</div>
</div>
<div class="jsdbuid">
<div class="opacity2"></div>
<img
class="city2"
src="https://res.cloudinary.com/thrillophilia/image/upload/c_fill,f_auto,fl_progressive.strip_profile,g_auto,h_600,q_auto,w_auto/v1/filestore/2qnkgc27zsu3wl49pstgo56dbfpc_1573045420_shutterstock_458186938.jpg"
alt=""
/>
<div class="doc">
<div class="indian_flag2">
<h1>Banglore</h1>
<img
src="https://t-cf.bstatic.com/static/img/flags/24/in/56cd199c9f53cba5ccd7667c3a1a196f95e60a10.png"
alt=""
/>
</div>
<p>2038 properties</p>
</div>
</div>
<div class="jsdbuid">
<div class="opacity2"></div>
<img
class="city2"
src="https://www.chennaitravels.in/wp-content/uploads/2019/04/Chennai-City-Sightseeing-Tour.jpg"
alt=""
/>
<div class="doc">
<div class="indian_flag2">
<h1>Chennai</h1>
<img
src="https://t-cf.bstatic.com/static/img/flags/24/in/56cd199c9f53cba5ccd7667c3a1a196f95e60a10.png"
alt=""
/>
</div>
<p>1406 properties</p>
</div>
</div>
</div>
<!-----Swiper first----->
<div id="explore_by_properties">
<h2>Browse by property type</h2>
<div class="swiper mySwiper2">
<div class="swiper-wrapper"></div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</div>
<!--Swiper first end here-->
<div id="mvxfn">
<div class="gfvno_njl">
<div>
<h2>Feel at home on your next trip</h2>
<p>Get an entire house, flat or unique property for yourselves</p>
<button>Search for homes</button>
</div>
<img
src="https://t-cf.bstatic.com/static/img/bh/awareness/campaign/bh_aw_cpg_main_image/b0f5755d0651acbe9d3f3785a874258150b4393b.png"
alt=""
/>
</div>
<div class="gfvno_njl">
<div>
<h2>Get instant discounts</h2>
<p>
Simply sign into your Booking.com account and look for the blue
Genius logo to save
</p>
<button>Sign in</button>
<button id="diifr">Register</button>
</div>
<img
src="https://t-cf.bstatic.com/static/img/genius-globe-with-badge_desktop/d807514761b3684aedebced9265c5548a063b7a0.png"
alt=""
/>
</div>
</div>
<div id="werfc">
<h2>Subscribe to see Secret Deals</h2>
<p>Prices drop the moment you sign up!</p>
<input type="email" placeholder="Enter email" />
<button>Sign me up!</button>
<div id="rtdf">
<img
src="https://t-cf.bstatic.com/static/img/wcu/discount-percent-light/02598c462f4684795aca4d3c0e10b32b6d7be2c7.png"
alt=""
/>
</div>
</div>
<h2 id="uidcf">Get inspiration for your next trip</h2>
<div id="yrstf">
<div class="ateygcb">
<div class="oppa"></div>
<img
src="https://t-cf.bstatic.com/xdata/images/xphoto/540x405/167587831.webp?k=31e6256fc044ff9b127babfafcde346ded92aa66545f925fa84b749a8226dc30&o="
alt=""
/>
<div class="fuhvb">
<h3>48 hours in Paris, France</h3>
<p>The perfect 2-day itinerary for visiting The City of Light.</p>
</div>
</div>
<div class="ateygcb">
<div class="oppa"></div>
<img
src="https://t-cf.bstatic.com/xdata/images/xphoto/540x405/167616822.webp?k=31bae8840b12db441ce925b86f3f5149fda3f9851de6dfbd48cfff89a6680b74&o="
alt=""
/>
<div class="fuhvb">
<h3>The 9 most beautiful cities for autumn travel</h3>
<p>
From soaking in Seoul’s hot springs to tucking into sticky cinnamon
rolls in Montreal.
</p>
</div>
</div>
<div class="ateygcb">
<div class="oppa"></div>
<img
src="https://t-cf.bstatic.com/xdata/images/xphoto/540x405/167580228.webp?k=081bfa5713fa309507294247377ac4d4b9c23d45bbb3161711c97ba2847b7bfc&o="
alt=""
/>
<div class="fuhvb">
<h3>Top 5 US cities to celebrate Labor Day Weekend</h3>
<p>
Leave summer with no regrets when you head to these cities for Labor
Day Weekend.
</p>
</div>
</div>
</div>
<div id="cdsfc">
<div class="ummsx">
<div class="oppa"></div>
<img
src="https://t-cf.bstatic.com/xdata/images/xphoto/540x405/165922442.webp?k=7620df87dcc9ef0cd2fe66423dbf11fbdc2cd17e090856d8046aa3ec60dd3764&o="
alt=""
/>
<div class="fuhvb">
<h3>Europe’s best but less obvious group holiday spots</h3>
<p>
The best places in Europe for an idyllic late-summer escape with
friends.
</p>
</div>
</div>
<div class="ummsx">
<div class="oppa"></div>
<img
src="https://t-cf.bstatic.com/xdata/images/xphoto/720x405/165609232.webp?k=4367ee64da98f68300d41a1c85ce3b2fe518b4c046cb2021d7bc34a499ace5dd&o="
alt=""
/>
<div class="fuhvb">
<h3>The USA’s 9 most beautiful beaches</h3>
<p>The finest stretches of sand to be found in North America.</p>
</div>
</div>
</div>
<h2 class="bnzf">Home guests love</h2>
<div id="zdcvs">
<div class="tdfxnn">
<img
src="https://t-cf.bstatic.com/xdata/images/hotel/max500/16379302.jpg?k=55494e13bb009658f0b7114e816e647c36c26851bf214b6fbc2f05558f9edf86&o="
alt=""
/>
<h3>Villa Domina</h3>
<p>Split</p>
<p>Starting from ₹ 9,492</p>
<div class="iug">
<p>9.4</p>
<p>Superb</p>
<p>983 reviews</p>
</div>
</div>
<div class="tdfxnn">
<img
src="https://t-cf.bstatic.com/xdata/images/hotel/max500/74529578.jpg?k=a7fcefd47d7271daf44f6ce78a215b9505f9f8e5cac3af093b78b9c489fd8461&o="
alt=""
/>
<h3>Sugar Loft Apartments</h3>
<p>Rio de Janeiro</p>
<p>Starting from ₹ 3,823</p>
<div class="iug">
<p>9.0</p>
<p>Superb</p>
<p>273 reviews</p>
</div>
</div>
<div class="tdfxnn">
<img
src="https://t-cf.bstatic.com/xdata/images/hotel/max500/64768746.jpg?k=b0a62a2eb299aaa31553ffcb9887d54cb5ea112e81a7a942a45aa25f88c84921&o="
alt=""
/>
<h3>Zoku Amsterdam</h3>
<p>Amsterdam</p>
<p>Starting from ₹ 11,884</p>
<div class="iug">
<p>8.9</p>
<p>Fabulous</p>
<p>2,128 reviews</p>
</div>
</div>
<div class="tdfxnn">
<img
src="https://t-cf.bstatic.com/xdata/images/hotel/max500/71184956.jpg?k=4f0dd080f161eb3d2631565c7df9b6e634442addd10dc715b8dd519092a4517f&o="
alt=""
/>
<h3>Chiado Mercy Apartments | ...</h3>
<p>Lisbon</p>
<p>Starting from ₹ 45,548</p>
<div class="iug">
<p>9.5</p>
<p>Exceptional</p>
<p>550 reviews</p>
</div>
</div>
</div>
<h2 class="bnzf">Connect with other travellers</h2>
<div id="wefonh">
<div class="oghklnh">
<img
src="https://t-cf.bstatic.com/static/img/communities/cover-photo/300x300/india/a047bf294ce2d2e145fdcdd3097b9a7f4e6df229.jpg"
alt=""
/>
<h3>India</h3>
<div>Travel Community</div>
<div>155,073 travellers</div>
</div>
<div class="oghklnh">
<img
src="https://t-cf.bstatic.com/static/img/communities/cover-photo/300x300/travel-discussions/35a717b9feba5c8f800e2a8949dfa5014e4e79b4.jpg"
alt=""
/>
<h3>Travel Talk</h3>
<div>General Discussion</div>
<div>559,436 travellers</div>
</div>
<div class="oghklnh">
<img
src="https://t-cf.bstatic.com/static/img/communities/communities-index/photo-300x300/b2d5ae20ed65039fe73edbeea8b34ccfddbd63b4.png"
alt=""
/>
<h3>More Communities</h3>
<div>Veiw all</div>
<div>9,894,940 travellers</div>
</div>
</div>
<div id="subs"></div>
<div id="footer2"></div>
<div id="footer3"></div>
</body>
</html>
<!-- Initialize Swiper -->
<script>
document.getElementById("search_btn").addEventListener("click", () => {
window.location.href = "property.html";
});
const options = {
method: "GET",
headers: {
"X-RapidAPI-Key": "f5ff8f3b73msh66d41967f11035cp14257djsn62fcad3d29ae",
"X-RapidAPI-Host": "booking-com.p.rapidapi.com",
},
};
let getHotelLocation = () => {
let city_name = document.getElementById("placeS").value;
fetch(
`https://booking-com.p.rapidapi.com/v1/hotels/locations?locale=en-gb&name=${city_name}`,
options
)
.then(function (res) {
return res.json();
})
.then(function (res) {
let data = res;
document.getElementById("container").innerHTML = "";
data.forEach((ele) => {
let div = document.createElement("div");
div.onclick = function () {
let obj = {
latitide: ele.latitude,
longitude: ele.longitude,
};
document.getElementById("places").value = ele.label;
document.getElementById("container").innerHTML = "";
localStorage.setItem("co-ordinates", JSON.stringify(obj));
};
div.style.backgroundColor = "white";
let name = document.createElement("h4");
name.style.fontSize = "12px";
name.innerText = ele.name;
let city_details = document.createElement("p");
city_details.style.fontSize = "14px";
city_details.innerText =
ele.city_name + "," + ele.region + "," + ele.country;
div.append(name, city_details);
document.getElementById("container").append(div);
console.log(ele);
});
});
};
</script>
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script src="./scripts/swiper.js"></script>
<script src="./scripts/navbar.js" type="module"></script>
<script src="./scripts/footer.js" type="module"></script>
<script src="./scripts/signin.js" type="module"></script>