-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmy_car.html
902 lines (777 loc) · 32.4 KB
/
my_car.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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
<!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">
<link rel="stylesheet" href="./styles/navbarStyles.css">
<link rel="stylesheet" href="./styles/index.css">
<link rel="stylesheet" href="./styles/my_car.css">
<script src="https://kit.fontawesome.com/8ada446efc.js" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/8ada446efc.js" crossorigin="anonymous"></script>
<title>My Car</title>
</head>
<body>
<div id="navbar"></div>
<div id="container">
<div id="first">
<h3 id="h3">SEARCH RESULTS</h3>
<h3>OPTIONS</h3>
<h3>DETAILS</h3>
<h3>CONFIRMATION</h3>
</div>
<div id="second">
<div id="left1">
<div id="l_top">
<h3>Search details</h3>
<hr>
<div id="pick">
<p> <i class="fa-solid fa-location-dot"></i>     Pick-Up</p>
<h4>Nagasaki - Airport</h4>
<h4>18 May 2022      
10:30 am</h4>
</div>
<div id="drop">
<p> <i class="fa-solid fa-location-dot"></i>     Drop-off</p>
<h4>Nagasaki - Airport</h4>
<h4>19 May 2022      
10:30 am</h4>
</div>
<div id="currency">
<p>Currency: <h4>INR</h4></p>
</div>
<button id ="edit">Edit</button>
</div>
<div id="filter">
<div id="f">
<h3>Filter</h3>
<button id="clear">Clear</button>
</div>
<hr>
<div id="policy">
<h4 class="h"><i class="fa-regular fa-gas-pump"></i> Fuel Policy</h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label>Fully Charged</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Full to Full</label>
</div>
<hr>
<h4 class="h"><i class="fa-solid fa-tree-decorated"></i> Eco Friendly</h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label>Fully Charged</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Full to Full</label>
</div>
<hr>
<h4 class="h"><i class="fa-solid fa-gear"></i> Car Specifications</h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label>Air Conditioning</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>GPS</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Petrol</label>
</div>
<hr>
<h4 class="h"> Supplier</h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label><img class="ima" src="https://ct-supplierimage.imgix.net/car/alamo.pdf?output=auto&w=62&q=80&dpr=1" alt=""> Alamo</label> <br>
<input class="input" type="checkbox" name="" id="">
<label> <img class="ima" src="https://ct-supplierimage.imgix.net/car/europcar.pdf?output=auto&w=62&q=80&dpr=1" alt=""> Europecar</label> <br>
<input class="input" type="checkbox" name="" id="">
<label><img class="ima" src="https://ct-supplierimage.imgix.net/car/niconico.pdf?output=auto&w=62&q=80&dpr=1" alt=""> Niconico</label> <br>
<input class="input" type="checkbox" name="" id="">
<label><img class="ima" src="https://ct-supplierimage.imgix.net/car/nissanrentacar.pdf?output=auto&w=62&q=80&dpr=1" alt=""> Nissan</label> <br>
<input class="input" type="checkbox" name="" id="">
<label> <img class="ima" src="https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1" alt=""> Times</label> <br>
</div>
<hr>
<h4 class="h"> Deals and Features</h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label>Free Additional Driver</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Free GPS</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Guaranteed Car Model</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Pre Registration Available</label> <br>
<input class="input" type="checkbox" name="" id="">
<label> Sanitized Car</label> <br>
</div>
<hr>
<div id="passenger">
<h4>Passengers</h4>
<div id="p">
<p> <i class="fa-solid fa-user"></i> 1-4</p>
<p> <i class="fa-solid fa-user"></i> 5</p>
<p> <i class="fa-solid fa-user"></i> 6+</p>
</div>
</div>
<hr>
<h4 class="h"> <i class="fa-solid fa-circle-star"></i> Excess <i class="fa-solid fa-circle-info"></i></h4>
<div class="check1">
<input class="input" type="checkbox" name="" id="">
<label>Rs 501 - Rs 1000/-</label> <br>
<input class="input" type="checkbox" name="" id="">
<label>Rs 2000+</label>
</div>
</div>
</div>
</div>
<div id="right">
<p id="book"> <i class="fa-thin fa-circle-check"></i>     Book today and be confident with our flexible cancellation policy.</p>
<div id="car1"></div>
<div id="show">
<div id="l">
<p>Showing <i class="i"> 8 </i>out of <i class="i"> 22</i>
cars available in <br>
<i class="i"> Nagasaki-Airport </i> </p>
</div>
<div id="r">
<p>Sort By:</p>
<button id="rec">Recommended <i class="fa-thin fa-circle-info"></i></button>
<button id="ltoh">Low to High</button>
<button id="rate">Rating</button>
</div>
</div>
<hr>
<div id="eco">
<p>Filters applied:</p>
<button id="e">Economy</button>
</div>
<div id="container1">
<div id="on"></div>
<div id="tw"></div>
<div id="thr"></div>
<div id="for"></div>
</div>
</div>
</div>
<div id="third">
<button id="expedia">Add Your Property to Expedia</button>
<h5 class="trip">Trip Planning ^</h5>
<div id="top">
<div id="left-top"> <h4>International Destinations</h4></div>
<div id="right-top">
<p>Check out Expedia's featured travel destinations, which gives you a full selection of hotels to suit any budget in the most popular destinations in India and the world at large. Find the hotel that is right for you using our star ratings, guest reviews, location maps & great discount rates.</p>
<div id="link">
<a href="#">Singapore Hotels</a>
<a href="#"> Hong Kong Hotels</a>
<a href="#"> Kuala Lumpur Hotels</a>
<a href="#"> Bangkok Hotels</a>
<a href="#"> Pattaya Hotels</a>
<a href="#">Paris Hotels</a>
<a href="#"> Bali Hotels</a>
<a href="#">Maldives Hotels</a>
<a href="#"> Dubai Hotels</a>
<a href="#"> New York Hotels</a>
<a href="#">London Hotels</a>
<a href="#"> Mauritius Hotels</a>
<a href="#"> Melbourne Hotels</a>
<a href="#"> Sydney Hotels</a>
<a href="#">Las Vegas Hotels</a>
<a href="#"> Krabi Hotels</a>
</div>
</div>
</div>
<div id="top1">
<div id="left-top1"> <h4>Domestic Destinations</h4></div>
<div id="right-top1">
<p>
Travelling within India? Check out our most popular domestic travel destinations with great selection of hotel partners, hotel reviews and our best travel deals!</p>
<div id="link1">
<a href="#">Singapore Hotels</a>
<a href="#"> Hong Kong Hotels</a>
<a href="#"> Kuala Lumpur Hotels</a>
<a href="#"> Bangkok Hotels</a>
<a href="#"> Pattaya Hotels</a>
<a href="#">Paris Hotels</a>
<a href="#"> Bali Hotels</a>
<a href="#">Maldives Hotels</a>
<a href="#"> Dubai Hotels</a>
<a href="#"> New York Hotels</a>
<a href="#">London Hotels</a>
<a href="#"> Mauritius Hotels</a>
<a href="#"> Melbourne Hotels</a>
<a href="#"> Sydney Hotels</a>
<a href="#">Las Vegas Hotels</a>
<a href="#"> Krabi Hotels</a>
</div>
</div>
</div>
<div id="top2">
<p>All prices and offers are subject to change with availability. Hotel prices are per night based on twin share, and excludes taxes and fees. Flight prices are per person and includes taxes and fees unless otherwise stated. Flight + hotel prices are per person, based on twin share, and include taxes and fees unless otherwise stated. Offers may be discontinued without notice.
</p>
<p>⁺ Sample prices are “from” prices and based on rates for travel within the next 45 days. Sample prices are subject to conditions above and limited availability. Prices vary by date, length of stay, hotel selected, hotel room category, departure city, and availability. Additional restrictions including minimum stay, blackout dates, available room types and advance purchase may apply.</p>
<p>*Savings based on all package bookings with Flight + Hotel on Expedia.co.in from January 2018 to December 2018, as compared to the price of the same components booked separately. Savings will vary based on origin/destination, length of trip, stay dates and selected travel supplier(s). Savings not available on all packages.</p>
</div>
<h5 class="trip">Explore More ^</h5>
<div id="top3">
<div id="left-top3"> <h4>More Travel Options</h4></div>
<div id="right-top3">
<div id="link3">
<a href="#">Singapore Hotels</a>
<a href="#"> Hong Kong Hotels</a>
<a href="#"> Kuala Lumpur Hotels</a>
<a href="#"> Bangkok Hotels</a>
<a href="#"> Pattaya Hotels</a>
<a href="#">Paris Hotels</a>
<a href="#"> Bali Hotels</a>
<a href="#">Maldives Hotels</a>
<a href="#"> Dubai Hotels</a>
<a href="#"> New York Hotels</a>
<a href="#">London Hotels</a>
<a href="#"> Mauritius Hotels</a>
<a href="#"> Melbourne Hotels</a>
<a href="#"> Sydney Hotels</a>
<a href="#">Las Vegas Hotels</a>
<a href="#"> Krabi Hotels</a>
</div>
</div>
</div>
<div id="top4">
<div id="left-top4"><h4>Expedia</h4></div>
<div id="right-top4">
<a class="a1" href="#"> About Us</a>
<a class="a1" href="#"> Privacy Policy</a>
<a class="a1" href="#"> Terms of Use</a>
<a class="a1" href="#"> Support</a>
</div>
</div>
<!-- -->
<div id="top5">
<div id="left-top5"><h4>Partner Services </h4></div>
<div id="right-top5">
<a class="a1" href="#"> Expedia Partner Central</a>
<a class="a1" href="#"> Add a property</a>
<a class="a1" href="#"> Expedia Partner Solutions API</a>
<a class="a1" href="#"> Add an Activity</a>
<a class="a1" href="#"> Travel Agencies</a>
<a class="a1" href="#">Become an Affiliate</a>
</div>
</div>
<div id="top6">
<div id="left-top6"><h4> Global Sites </h4></div>
<div id="right-top6">
<a class="a2" href="#"> <img class="img2" src="https://cdn.britannica.com/97/1597-004-05816F4E/Flag-India.jpg" alt=""> </a>
<a class="a2" href="#"><img src="https://images.unsplash.com/photo-1628510118714-d2124aea4b8a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8&w=1000&q=80" alt="" class="img2"> </a>
<a class="a2" href="#"> <img src="https://cdn.wionews.com/sites/default/files/2020/07/22/150961-untitled-design-30.jpg" alt="" class="img2"> </a>
<a class="a2" href="#"> <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTS3gOBFa0gBo1bcM4b0fDnDCmT5sSvNKVwLA&usqp=CAU" alt="" class="img2"> </a>
<a class="a2" href="#"> <img src="https://static01.nyt.com/images/2021/09/22/opinion/sunday/22FlagsStills-02/22FlagsStills-02-videoSixteenByNineJumbo1600-v2.jpg" alt="" class="img2"> </a>
<a class="a2" href="#"> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Flag_of_New_Zealand.svg/2560px-Flag_of_New_Zealand.svg.png" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://image.shutterstock.com/image-vector/vector-image-national-flag-canada-260nw-1934343512.jpg" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSM13kk91wXvnCldigGd-mWMAeGnsTXf8fstQ&usqp=CAU" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/Flag_of_Europe.svg/255px-Flag_of_Europe.svg.png" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://www.edarabia.com/wp-content/uploads/2019/10/china-flag.jpg" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://cdn.mos.cms.futurecdn.net/3YLmjAGM2wM5AEiMCwwyi3.jpg" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://m.media-amazon.com/images/I/61yxAPIR4TL._SX522_.jpg" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="http://www.anbg.gov.au/images/flags/misc/semaphore.gif" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://www.bergerpaints.com/imaginecolours/wp-content/uploads/2018/01/Flag-of-Nepal.png" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSexXWCtLCz0oNahjLPD3lCojual1ClqTrSpw&usqp=CAU" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Flag_of_Albania_%281914%E2%80%931920%29.svg/656px-Flag_of_Albania_%281914%E2%80%931920%29.svg.png" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://www.uritours.com/wp-content/uploads/2020/02/north-korea-flag.jpg" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://young.scot/media/8214/flag-two.png" alt="" class="img2"> </a>
<a href="#" class="a2"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Flag_of_China_%281889%E2%80%931912%29.svg/238px-Flag_of_China_%281889%E2%80%931912%29.svg.png" alt="" class="img2"> </a>
</div>
</div>
<div id="top7">
<div id="left-top7"><h4> Expedia Partner </h4></div>
<div id="right-top7">
<a class="a1" href="#"> Expedia Partner Central</a>
<a class="a1" href="#"> Add a property</a>
<a class="a1" href="#"> Expedia Partner Solutions API</a>
<a class="a1" href="#"> Add an Activity</a>
<a class="a1" href="#"> Travel Agencies</a>
<a class="a1" href="#">Become an Affiliate</a>
</div>
</div>
<div id="logo"><img src="https://images.trvl-media.com/media/content/expind/images/sg/secure.png" alt=""></div>
<div id="ltd">
<p class="para"><a class="inc" href=""> © 2022 Expedia, Inc, an Expedia Group Company. /</a> Expedia Asia Holdings Mauritius / BEX Travel Asia Pte Ltd. All rights reserved.</p>
</div>
<div id="img4">
<img src="https://a.travel-assets.com/globalcontrols-service/content/f285fb631b0a976202ef57611c7050e9ef5ca51a/images/EG_Wordmark_blue_RGB.svg" alt="">
</div>
</div>
</div>
</body>
</html>
<script type="module">
import navbar from "./components/navbar.js";
let nav = document.getElementById("navbar");
nav.innerHTML = navbar();
let car_info = [
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Economy",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
},
{
type: "Mini",
rating: "4 2" ,
image: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
rent: "From ₨ 4,500.12",
}
];
car_info.forEach((el) => {
let box1 = document.createElement("div");
box1.setAttribute("id", "box1")
let Type = document.createElement("h3");
Type.innerText = el.type;
let Rating = document.createElement("p");
Rating.innerText = el.rating;
let div1 = document.createElement("div");
div1.setAttribute("class", "div")
let Image = document.createElement("img");
Image.src = el.image;
let Img_div = document.createElement("div");
Img_div.setAttribute("class", "i_div");
let Rent = document.createElement("p");
Rent.innerText = el.rent;
div1.append(Type, Rating);
Img_div.append(Image);
box1.append(div1, Img_div, Rent);
document.getElementById("car1");
car1.append(box1);
});
let Car_data = [
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
// another box
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
{
type: "Mini",
company: "Mazda Demioor similar",
image1: "https://ctimg-fleet.cartrawler.com/honda/fit/primary.png?w=135&auto=compress",
facility : "5 | 2 | 3",
quality1: "Automatic Transmission",
quality2 : "Air Conditioning",
show : "Show More",
},
];
Car_data.forEach((el) =>{
let box2 = document.createElement("div");
box2.setAttribute("id", "box2")
let Type = document.createElement("h3");
Type.innerText = el.type;
let Company = document.createElement("p");
Company.innerText = el.company;
let Image1 = document.createElement("img");
Image1.src = el.image1;
let Facility = document.createElement("h2");
Facility.innerText = el.facility;
let Quality1 = document.createElement("p");
Quality1.innerText = el.quality1;
let Quality2 = document.createElement("p");
Quality2.innerText = el.quality2;
let Show = document.createElement("h3");
Show.setAttribute("class", "show1")
Show.innerText = el.show;
box2.append(Type, Company, Image1, Facility, Quality1, Quality2, Show);
let on = document.getElementById("on");
on.append(box2)
let container1 = document.getElementById("container1");
container1.append(on)
});
let car_data2 = [
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
{
location : "pick Up Location :",
bus: "Free Shuttle Bus",
fuel: "Fuel Policy:",
full: "Full to Full",
mileage: "Mileage:",
unlimit : "Unlimited",
image3 : "https://ct-supplierimage.imgix.net/car/times.pdf?output=auto&w=62&q=80&dpr=1"
},
];
car_data2.forEach((el) =>{
let box3 = document.createElement("div");
box3.setAttribute("id", "box3");
let Location = document.createElement("p");
let Bus = document.createElement("h4");
let Fuel = document.createElement("p");
let Full = document.createElement("h4");
let Mileage = document.createElement("p");
let Unlimit = document.createElement("h4");
Fuel.setAttribute("class", "f");
Mileage.setAttribute("class", "f");
Location.innerText = el.location;
Bus.innerText = el.bus;
Fuel.innerText = el.fuel;
Full.innerText = el.full;
Mileage.innerText = el.mileage;
Unlimit.innerText = el.unlimit;
let Image3 = document.createElement("img");
Image3.setAttribute("class", "i3");
Image3.src = el.image3;
box3.append(Location, Bus, Fuel, Full, Mileage, Unlimit, Image3);
let two = document.getElementById("tw");
two.append(box3);
let container1 = document.getElementById("container1");
container1.append(two);
});
let car_data3 = [
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
{
free : "Included for Free",
collision : "Collision Damage Waiver",
protection : "Theft Protection",
third : "Third Party Protection",
cancel : "Cancellation",
amet : "Amendments",
info : "Important Information",
},
];
car_data3.forEach((el)=>{
let box5 = document.createElement("div");
box5.setAttribute("id", "box5");
let Free = document.createElement("h4");
let Collision = document.createElement("p");
let Protection = document.createElement("p");
let Third = document.createElement("p");
let Cancel = document.createElement("p");
let Amet = document.createElement("p");
let Info = document.createElement("button");
Info.setAttribute("class", "btn");
Collision.setAttribute("class", "collision")
Free.innerText = el.free;
Collision.innerText = el.collision;
Protection.innerText = el.protection;
Third.innerText = el.third;
Cancel.innerText = el.cancel;
Info.innerText = el.info;
box5.append(Free, Collision, Protection, Third, Cancel, Amet, Info);
let thr = document.getElementById("thr");
thr.append(box5);
let container1 = document.getElementById("container1");
container1.append(thr);
});
let car_data4 = [
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
{
rs : "₨ 2,527.26",
sel : "Select",
email : "Email Quote",
},
];
car_data4.forEach((el) =>{
let box6 = document.createElement("div");
box6.setAttribute("id", "box6");
let Rs = document.createElement("h1");
Rs.innerText = el.rs;
let Sel = document.createElement("button");
Sel.setAttribute("class", "bt1");
Sel.addEventListener("click", function(){
Select(el);
})
Sel.innerText = el.sel;
let Email = document.createElement("button");
Email.setAttribute("class", "bt2");
Email.innerText = el.email;
box6.append(Rs, Sel, Email);
let fo = document.getElementById("for");
fo.append(box6);
let container1 = document.getElementById("container1");
container1.append(fo);
});
function Select(el){
window.location.href = "car_book.html"
}
select(el)
</script>