-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproductPage2.js
998 lines (931 loc) · 40.7 KB
/
productPage2.js
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
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
let product_data = [
{
"createdAt": "2022-12-13T02:17:28.849Z",
"name": "Vagator-23ab",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/233771435.webp?k=a8ec518efef37a3068b1a9be05d1703d20191500507aeb2dfd9d2d45b69c322c&o=&s=1",
"distance": 1300,
"details": "Located in Chicalim, TATA Rio De Goa - Resort style apt,6 KM from Airport provides accommodations with free WiFi, air conditioning, a restaurant and access to a garden with a year-round outdoor pool.",
"rating": 9.2,
"review": "Very Good",
"price": 4300,
"tax": 643,
"id": "1"
},
{
"createdAt": "2022-12-13T15:51:19.338Z",
"name": "Stone Wood Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/274385474.webp?k=7b60598a701bccb9f0bcadf7557cc8242ca4efcdb7465c2208731232a1bf4338&o=&s=1",
"distance": 900,
"details": "Located just 2.5 mi from the Morjim Beach and Vagator, Siolim Holiday Apartments is a self-catering accommodations located in Siolim. Free WiFi access is available.",
"rating": 7.2,
"review": "Wonderful",
"price": 5700,
"tax": 443,
"id": "2"
},
{
"createdAt": "2022-12-13T12:34:15.166Z",
"name": "Jungel by Vagator",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/314589455.webp?k=dde07014d9650e4279d59213cc305061cb642a503103e7bd8d4e083e76870921&o=&s=1",
"distance": 1590,
"details": "Located in Sinquerim, a 8-minute walk from Sinquerium Beach, Marbella Guest House provides accommodations with a restaurant, free private parking, a bar and a shared lounge.",
"rating": 7.1,
"review": "Wonderful",
"price": 1300,
"tax": 673,
"id": "3"
},
{
"createdAt": "2022-12-13T14:57:13.782Z",
"name": "Heathcote Helvatic house",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/397787647.webp?k=03c7d4890165e4610e7435d8a4b73026217a02b80c25270eefb4133025e3b458&o=&s=1",
"distance": 1570,
"details": "Located in Canacona in the Goa region, with Palolem Beach and Colomb Beach nearby, The Nest Palolem has accommodations with free WiFi and free private parking.",
"rating": 7.6,
"review": "Very Good",
"price": 6400,
"tax": 543,
"id": "4"
},
{
"createdAt": "2022-12-13T10:12:28.804Z",
"name": "White flower Rosenbaum Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/367117853.webp?k=af8203c41378c20c16c1d4a99e8a6e294dc78fb68318409602587ad367786b31&o=&s=1",
"distance": 4744,
"details": "Located in Madgaon, a 14-minute walk from Margao Train Station, The Treat Hotel has express check-in and check-out and free WiFi throughout the property.",
"rating": 9.3,
"review": "Excellent",
"price": 6700,
"tax": 624,
"id": "5"
},
{
"createdAt": "2022-12-13T04:07:05.245Z",
"name": "W Villa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/327904626.webp?k=3b84b8d8e884241458bb9741362d372e27c98506aee8577b874c76fb5f22b0a7&o=&s=1",
"distance": 530,
"details": "Located in Mandrem, within a few steps of Mandrem Beach and a 4-minute walk of Arambol beach, FabExpress Vincy Place has accommodations with a bar as well as free private parking for guests who drive....",
"rating": 9.3,
"review": "Good",
"price": 34300,
"tax": 3143,
"id": "6"
},
{
"createdAt": "2022-12-13T13:07:03.382Z",
"name": "Claire Stehr",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/173957946.webp?k=d955568d00c63e3304e846da4e76484747fae8752c3356adc0fff412d381bc85&o=&s=1",
"distance": 686,
"details": "Located in Dabolim, Infiniti Bay Private Pool Villa provides accommodations with a private pool, garden and private parking.",
"rating": 8.4,
"review": "Good",
"price": 4737,
"tax": 243,
"id": "7"
},
{
"createdAt": "2022-12-13T09:48:58.081Z",
"name": "Emperor Walter",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/334376061.webp?k=b83fe67377c0d1a8363efe595d7601562fff9de15b1fdb4ba9db2eb9c0f73dee&o=&s=1",
"distance": 1760,
"details": "Located in Arambol, 2297 feet from the beach, Aaria Hills offers rooms that come with a patio and a garden view. All units in the guest house are equipped with a flat-screen TV with cable channels.",
"rating": 7.0,
"review": "Very Good",
"price": 17006,
"tax": 3543,
"id": "8"
},
{
"createdAt": "2022-12-13T05:40:04.159Z",
"name": "Rad Wood House",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/289546521.webp?k=1e7eaab0200c75c158d36490d9177942d7445f9d315c42c13f4218edd92dfbcb&o=&s=1",
"distance": 864,
"details": "Located on Varca beach, Caravela Beach Resort Goa offers beachfront accommodations with private balconies.",
"rating": 7.4,
"review": "Good",
"price": 23400,
"tax": 4233,
"id": "9"
},
{
"createdAt": "2022-12-13T01:20:22.023Z",
"name": "Tommie Ryan",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/131942958.webp?k=d84e6d3e2ba2356da13a2f604eb9289dce13d049086da0339c413cd95a0025bd&o=&s=1",
"distance": 550,
"details": "Located in Assagao, 4 miles from Chapora Fort, Botanique Goa provides accommodations with an outdoor swimming pool, free private parking, a bar and a shared lounge.",
"rating": 8.4,
"review": "Good",
"price": 16830,
"tax": 3383,
"id": "10"
},
{
"createdAt": "2022-12-13T11:36:10.509Z",
"name": "Erika Gorczany",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/182903585.webp?k=4fa5cc27f820714ec101035554b29e2b2433587b2c721ac1c6a294fd52658020&o=&s=1",
"distance": 4850,
"details": "Located on Santrem Beach, this beachfront property offers an outdoor swimming pool, spa and wellness center and a massage parlor. Stonewater Eco Resort operates a 24-hour front desk to assist guests.",
"rating": 6.9,
"review": "Good",
"price": 4646,
"tax": 193,
"id": "11"
},
{
"createdAt": "2022-12-12T22:00:28.507Z",
"name": "Chad Brekke",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/384898062.webp?k=19046680c74be9ea6183930c2ab8053310d181cb849b4cab15f6b3efedcf2724&o=&s=1",
"distance": 577,
"details": "Located 4.8 miles from Chapora Fort, Mojigao offers a restaurant, a bar and air-conditioned accommodations with a balcony and free WiFi.",
"rating": 9.5,
"review": "Wonderful",
"price": 7900,
"tax": 643,
"id": "12"
},
{
"createdAt": "2022-12-13T14:15:30.359Z",
"name": "Chester Lehner",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/118913321.webp?k=d14f6b33533185805785e73a7478d5172951b81951776b816f329dfb3358ad3f&o=&s=1",
"distance": 2940,
"details": "Located in Vasco Da Gama, Leon Hide Out Guest House has air-conditioned rooms with free WiFi.",
"rating": 8.8,
"review": "Very Good",
"price": 1366,
"tax": 743,
"id": "13"
},
{
"createdAt": "2022-12-12T19:14:51.494Z",
"name": "Christopher Mohr IV Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/338751942.webp?k=911a375f139372470620e0735e098a1ac9816ab6ce65ba214c3e38a7f69b90f1&o=&s=1",
"distance": 3165,
"details": "Offering an outdoor swimming pool and a fitness center, Planet Hollywood Beach Resort Goa is located on the Uttorda Beach.",
"rating": 8.5,
"review": "Good",
"price": 4412,
"tax": 243,
"id": "14"
},
{
"createdAt": "2022-12-13T03:40:46.511Z",
"name": "Stephen Robel Beach",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/207321005.webp?k=09cb7c83d952446916d6e0f48f108ccd19e55f19df76c455bf12370bb5704263&o=&s=1",
"distance": 697,
"details": "Spread over 5 acres of land, Beleza By The Beach is located in Goa, along the sandy beaches of Colva Beach. With tastefully designed rooms and villas, it offers an outdoor pool and free WiFi.",
"rating": 8.9,
"review": "Excellent",
"price": 10704,
"tax": 1643,
"id": "15"
},
{
"createdAt": "2022-12-13T14:47:56.423Z",
"name": "Reginald Stehr Villa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/330735317.webp?k=1c1f763dbb425b1f377e4ff417f9bf4593c0154997f2e61039a1752237224e0c&o=&s=1",
"distance": 6501,
"details": "Located on a hilltop adjacent to Fort Tiracol overlooking the Keri beach. The property features a restaurant and bar, guests can have fun at the swimming pool.",
"rating": 8.6,
"review": "Good",
"price": 9802,
"tax": 943,
"id": "16"
},
{
"createdAt": "2022-12-13T04:40:54.557Z",
"name": "Yolanda Gleason Hall",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/255963515.webp?k=dc25be34cd3d66ffedc37adff254f4e634eccdd3fd15a36ce8c5c1092b4d6a4d&o=&s=1",
"distance": 3261,
"details": "JM Vista Suites features free WiFi and views of mountain. All rooms boast a flat-screen TV with satellite channels and a private bathroom. Staff on site can arrange airport transfers.",
"rating": 8.8,
"review": "Very Good",
"price": 8888,
"tax": 843,
"id": "17"
},
{
"createdAt": "2022-12-13T09:40:17.639Z",
"name": "Rudy Brekke",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/4902227.webp?k=0de2ea9aff30c55fac61523c1092a457dc3a683ad1b0224148064167011e9451&o=&s=1",
"distance": 974,
"details": "Located in Anjuna, a 12-minute walk from Anjuna Beach, Whoopers Boutique Hotel, Anjuna has accommodations with a restaurant, free private parking, an outdoor swimming pool and a bar.",
"rating": 9.9,
"review": "Excellent",
"price": 13709,
"tax": 1743,
"id": "18"
},
{
"createdAt": "2022-12-12T20:26:08.544Z",
"name": "Andre Schaden",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/218318124.webp?k=988e3037f036ad5635824735b6f5d543365aeb773a4770aec51e5b5294511761&o=&s=1",
"distance": 481,
"details": "Located in Benaulim, a 7-minute walk from Sernabatim Beach, Blue Corner Beach Huts & Restaurant has accommodations with a restaurant, free private parking, a bar and a shared lounge.",
"rating": 8.8,
"review": "Excellent",
"price": 6900,
"tax": 553,
"id": "19"
},
{
"createdAt": "2022-12-13T00:14:03.628Z",
"name": "Kozey DDS Hill",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/211642119.webp?k=1f3c56fc1824757ed1d60657914999cc9d3116dfa6cabbb16829d32e70ecc56d&o=&s=1",
"distance": 4394,
"details": "The Heritage Village Resort & Spa Goa is nestled along the pristine white sands of Arossim Beach.The property features a traditional Indian spa.",
"rating": 6.7,
"review": "Good",
"price": 6522,
"tax": 743,
"id": "20"
},
{
"createdAt": "2022-12-13T14:09:48.350Z",
"name": "Keith Grady",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/177622244.webp?k=a95390dcafcb270fce3c2f5a9c6420149f9b0f5d1f8392b916b7f587e51f7480&o=&s=1",
"distance": 516,
"details": "Boasting a garden and a bar, Woke Morjim is an adult only property located in Morjim. Certain rooms at the property include a balcony with a sea view. It has a swimming pool. Free WiFi is available.",
"rating": 8.4,
"review": "Good",
"price": 7133,
"tax": 623,
"id": "21"
},
{
"createdAt": "2022-12-13T08:10:30.129Z",
"name": "Jean Rempel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/282816064.webp?k=59f1dccf59bbfdc93d5b16785311d7e87248fd99160e18e6eecb297380f43d90&o=&s=1",
"distance": 170,
"details": "Located in Curtorim, 5.3 miles from Margao Train Station, Nirvana Hill Resort provides accommodations with free bikes, free private parking, an outdoor swimming pool and a garden.",
"rating": 9.4,
"review": "Excellent",
"price": 7009,
"tax": 343,
"id": "22"
},
{
"createdAt": "2022-12-13T09:43:18.022Z",
"name": "Luz Boyer Crest",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/122568023.webp?k=5935356a91c43a00e6f9dff8d0caf2e0dfd2ef303ee0f20e2b90e024e399e50b&o=&s=1",
"distance": 826,
"details": "Located in Arpora, 1.5 miles from Baga Beach, Woke Arpora has accommodations with a shared lounge, free private parking and a garden.",
"rating": 8.8,
"review": "Wonderful",
"price": 9021,
"tax": 443,
"id": "23"
},
{
"createdAt": "2022-12-13T16:15:12.506Z",
"name": "Elisa Pfeffer Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/410104629.webp?k=692d6e30cd20ed3c703dccc70b7c3bcd8acee8c56588a32a8030fc127b661e56&o=&s=1",
"distance": 2752,
"details": "Offering 3 outdoor pools and a poolside bar, Novotel Goa Candolim Hotel is conveniently located on Candolim Road famous for bars and restaurants, just 1640 feet from the gorgeous Candolim Beach and 4...",
"rating": 8.7,
"review": "Good",
"price": 11000,
"tax": 1143,
"id": "24"
},
{
"createdAt": "2022-12-13T16:58:02.352Z",
"name": "Valerie Schaden Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/403608684.webp?k=2b5eb48d961a0644ef44988a3e96a01eb3fa65d4e9435fe97f420c1cde18844d&o=&s=1",
"distance": 993,
"details": "Located in Agonda, a few steps from Agonda Beach, Agonda Serenity Resort has accommodations with a restaurant, free private parking, a bar and a garden.",
"rating": 8.8,
"review": "Excellent",
"price": 9140,
"tax": 893,
"id": "25"
},
{
"createdAt": "2022-12-13T03:23:53.617Z",
"name": "Misty Casper House",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/290729447.webp?k=ae9ee99a0f1f14902833a1422fba79e031f7c5e255a93bbb8a1ee396ab03bd6f&o=&s=1",
"distance": 1368,
"details": "Located 1.5 miles from Baga Beach, Ronnie's Studio Apartment has accommodations with a garden, a terrace and a 24-hour front desk for your convenience.",
"rating": 8.1,
"review": "Very Good",
"price": 8987,
"tax": 843,
"id": "26"
},
{
"createdAt": "2022-12-13T02:20:03.405Z",
"name": "Home of Freda Schmitt",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/339377483.webp?k=d9f4bd15ae2abff660049e9623d4ef763cf890947b955e1416d30ae3df552dda&o=&s=1",
"distance": 550,
"details": "Placed in the heart of Goa’s Port City just 2.5 mi away from Dabolim Airport, La-Paz Gardens Beacon Hotel - Vasco da Gama Goa provides well appointed rooms with free WiFi access.",
"rating": 7.8,
"review": "Good",
"price": 5327,
"tax": 243,
"id": "27"
},
{
"createdAt": "2022-12-13T02:31:55.295Z",
"name": "Martha Okuneva villa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/342067772.webp?k=2035a955014c615affda88a89e7a602d099e23e03cef524a4b3d4aca226d7270&o=&s=1",
"distance": 3404,
"details": "Located in Oxel, Fig House Anjuna-Chapora Road, Siolim 1BHK Suite has accommodations with free WiFi, air conditioning, a restaurant and access to a garden with a year-round outdoor pool.",
"rating": 8.6,
"review": "Wonderful",
"price": 6519,
"tax": 613,
"id": "28"
},
{
"createdAt": "2022-12-13T09:05:16.077Z",
"name": "Leslie Hoeger of Goa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/324982066.webp?k=51d982eda2d032856c74f485880079849a8e4f693f47390bae2b48211efd8a7c&o=&s=1",
"distance": 2114,
"details": "Located in Benaulim, a 4-minute walk from Benaulim Beach, Fairfield by Marriott Goa Benaulim has accommodations with a restaurant, free private parking, an outdoor swimming pool and a fitness center.",
"rating": 8.9,
"review": "Excellent",
"price": 11474,
"tax": 1343,
"id": "29"
},
{
"createdAt": "2022-12-13T09:51:56.507Z",
"name": "Allan Reichert center",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/271635642.webp?k=2830f07dcce94009da7a9796d5840b9954f3283672e92b03ffc1f052eb810e23&o=&s=1",
"distance": 500,
"details": "Located in Panaji, right on the tranquil Vanguinim Beach Dona Paula in North Goa, Taj Resort & Convention Center Goa features luxurious rooms offering suitable choices to guests.",
"rating": 9.9,
"review": "Wonderful",
"price": 13246,
"tax": 1543,
"id": "30"
},
{
"createdAt": "2022-12-13T06:12:40.498Z",
"name": "Angie Collins Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/141976387.webp?k=c8dfb2a130f795814a2a6c6d0dbea6105946f5718e71ffae26e410a0e5746c62&o=&s=1",
"distance": 901,
"details": "Located in Mandrem, Oceans 7 Ashwem features 3 accommodations with private balconies. The property is located 164 feet from Ashwem Beach, 1969 feet from Mandrem Beach and 1.3 mi from Morjim Beach.",
"rating": 8.1,
"review": "Good",
"price": 5574,
"tax": 193,
"id": "31"
},
{
"createdAt": "2022-12-13T10:57:15.683Z",
"name": "Charles Jerde Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/293547054.webp?k=149cd95aedee9e155e65e2eb156aee0d8482581129714b5fbfec210f83d3e391&o=&s=1",
"distance": 5580,
"details": "Located in Siolim, 5.1 miles from Chapora Fort, The Foothills - A Boutique Hotel has accommodations with a restaurant, free private parking, an outdoor swimming pool and a bar.",
"rating": 9.2,
"review": "Excellent",
"price": 9003,
"tax": 2043,
"id": "32"
},
{
"createdAt": "2022-12-13T04:14:09.358Z",
"name": "Kate Keebler Goa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/153821396.webp?k=069d5a290ce27ffa6a3071788606aa91e3f3d410e70cd556d0131082eccdc4e9&o=&s=1",
"distance": 4570,
"details": "Crystal Goa Emerald Edition is located in Canacona, 3.7 mi from Agonda beach, and features a garden.",
"rating": 8.8,
"review": "Very Good",
"price": 7593,
"tax": 645,
"id": "33"
},
{
"createdAt": "2022-12-13T11:40:34.462Z",
"name": "Patti Wehner Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/39265488.webp?k=987b81d753e0bc2929a697e6a3aa29c7ba68fa089740bd1bbcd1051b5a002bce&o=&s=1",
"distance": 1091,
"details": "Set amid landscaped gardens, Dona Sylvia Beach Resort is a 5-minute walk from Cavelossim Beach. It features an outdoor pool, dining options and nonsmoking rooms with a private balcony.",
"rating": 9.4,
"review": "Very Good",
"price": 8762,
"tax": 943,
"id": "34"
},
{
"createdAt": "2022-12-13T01:33:58.095Z",
"name": "Scott Schaden Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/329612752.webp?k=f40ae16ec017235ee775ec2caf3fe8cc471b994bcc457fe6e6d74327b1534343&o=&s=1",
"distance": 541,
"details": "Coconut Creek Resort is a boutique resort offering modern rooms with a satellite TV. Located 656 feet from Bogmalo Beach, it features a lagoon shaped outdoor pool and a restaurant.",
"rating": 8.9,
"review": "Excellent",
"price": 6579,
"tax": 343,
"id": "35"
},
{
"createdAt": "2022-12-13T07:47:30.438Z",
"name": "Henrietta Schmidt Homes",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/388410672.webp?k=fee0d2e374237d1f3da058c44940a8fa50fccbfee0f62048c79febd148aa9820&o=&s=1",
"distance": 6824,
"details": "Located in Calangute, 1.1 miles from Calangute Beach, The Cliff Edge calangute has accommodations with a restaurant, free private parking, a bar and a shared lounge.",
"rating": 7.3,
"review": "Good",
"price": 2165,
"tax": 203,
"id": "36"
},
{
"createdAt": "2022-12-13T16:57:07.076Z",
"name": "Adrienne Goodwin Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/123981818.webp?k=0f7d48e5deb2129840730f92c4321d2eb57118a4b821013dcd8240d018b55d11&o=&s=1",
"distance": 9477,
"details": "Located in Cola, just a few steps from Cola Beach, Dwarka Eco Beach Resort has beachfront accommodations with a restaurant, a bar, a private beach area and free WiFi.",
"rating": 8.7,
"review": "Excellent",
"price": 8433,
"tax": 743,
"id": "37"
},
{
"createdAt": "2022-12-13T14:01:24.135Z",
"name": "Wilfred Herman Hotel",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/295389989.webp?k=be069c1fafd954672f5a6cc3af8f2708b163f0f624fc5f793ae4dcea20958967&o=&s=1",
"distance": 7681,
"details": "Located in Vagator, 1.4 mi from Chapora Fort, ROOTSVILLA VAGATOR - Longstays, Coworking Backpacker's Hostel provides accommodations with a bar, free private parking, a shared lounge and a garden.",
"rating": 8.9,
"review": "Excellent",
"price": 9187,
"tax": 943,
"id": "38"
},
{
"createdAt": "2022-12-13T02:12:29.009Z",
"name": "Whitney Hand Huts",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/186701100.webp?k=4642ae474fa84d7856d32bb557a733fd7d77481de056423fe0946951a76648d4&o=&s=1",
"distance": 594,
"details": "Located in Agonda, a few steps from Agonda Beach, Om Sai Beach Huts has accommodations with a restaurant, free private parking, a bar and a garden.",
"rating": 10,
"review": "Wonderful",
"price": 18483,
"tax": 593,
"id": "39"
},
{
"createdAt": "2022-12-12T23:41:45.923Z",
"name": "Marlene Hansen Spa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/251943193.webp?k=e81255e3afbf7f8f97ca44deea300515328c26cc1fc8ab9d4a0358d2ea42c6fc&o=&s=1",
"distance": 2188,
"details": "Nestled amid lush paddy plantations and hills, the Bali inspired 5 star Novotel Goa Resort & Spa offers an outdoor swimming pool with a sunken bar.",
"rating": 9.3,
"review": "Good",
"price": 5267,
"tax": 343,
"id": "40"
},
{
"createdAt": "2022-12-12T21:26:20.939Z",
"name": "Johanna Kautzer House",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/227533904.webp?k=02e11fb9903e12af46d6b1910a79598c21897528d2c5fe3c69ce1bf58e532a94&o=&s=1",
"distance": 7099,
"details": "Located in Parra, 4.9 miles from Chapora Fort and 8.5 miles from Thivim Railway Station, Bella Pensao has accommodations with free WiFi, air conditioning, a shared lounge and a garden.",
"rating": 7.8,
"review": "Good",
"price": 3869,
"tax": 233,
"id": "41"
},
{
"createdAt": "2022-12-13T16:53:15.701Z",
"name": "O2 Home Dana Medhurst",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/337731364.webp?k=0f2ea822a9bf5222f779b10bfdd2439c2feeb0261c12f702ae8efb39a95310d7&o=&s=1",
"distance": 1432,
"details": "Offering a children's playground and views of the garden, Oxygen Palolem is located in the north side of Palolem Beach. Guests can enjoy the on-site bar.",
"rating": 9.4,
"review": "Very Good",
"price": 5688,
"tax": 403,
"id": "42"
},
{
"createdAt": "2022-12-13T09:27:25.184Z",
"name": "Jessie Leuschke Resort",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/327848166.webp?k=8bf2abfd1323c03a9045480e0a97dc03c32ca82cbd652b253e0f828a2ba3873e&o=&s=1",
"distance": 523,
"details": "Located in Arpora, 1.2 miles from Baga Beach, Alvorada Resort has accommodations with a restaurant, free private parking and a bar.",
"rating": 8.4,
"review": "Good",
"price": 7004,
"tax": 643,
"id": "43"
},
{
"createdAt": "2022-12-13T04:26:18.645Z",
"name": "Vernon Kassulke House",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/404112944.webp?k=0dc38f9375ab0e1da1ad10e695e79090435f67b5e7db0e1aa2e7954c3a9705d9&o=&s=1",
"distance": 8149,
"details": "Located in Canacona, within a 2-minute walk of Agonda Beach and 22 miles of Margao Train Station, Nomada Beach Resort has accommodations with a garden and free WiFi throughout the property as well as...",
"rating": 7.8,
"review": "Very Good",
"price": 4411,
"tax": 643,
"id": "44"
},
{
"createdAt": "2022-12-12T18:28:59.461Z",
"name": "Dora Johnston Villa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/128589146.webp?k=3c41cd00642d2ad770f8d9dfc21a4c03d4e2447992b3fc96f0702f323904024e&o=&s=1",
"distance": 7106,
"details": "Featuring mountain views, B&F Kensington Square provides accommodations with an outdoor swimming pool, a fitness center and a garden, around 4.8 miles from Chapora Fort.",
"rating": 8.7,
"review": "Wonderful",
"price": 6111,
"tax": 543,
"id": "45"
},
{
"createdAt": "2022-12-13T17:25:02.637Z",
"name": "Eloise Howe II Palaso",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/404879675.webp?k=65b84172e0b71f3e328c0bca1b7bafab1209bf9d80d4b1fe4b6e5ee8a9abdda4&o=&s=1",
"distance": 970,
"details": "Featuring an outdoor swimming pool and a spa and wellness center, Storii By ITC Hotels, Shanti Morada Goa operates a 24-hour front desk. Free Wi-Fi is available in all areas.",
"rating": 9.8,
"review": "Wonderful",
"price": 12727,
"tax": 1430,
"id": "46"
},
{
"createdAt": "2022-12-12T23:00:59.126Z",
"name": "ITC Grand Goa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/399904131.webp?k=71f6ef76fe81f561b03fcb64e34291f24984ce385f274ba3fd18d7e245af5463&o=&s=1",
"distance": 672,
"details": "ITC Grand Goa Resort & Spa is set within 45 acres of landscaped gardens with glimmering waterways and lagoons along the pristine Arossim Beach.",
"rating": 9.4,
"review": "Excellent",
"price": 13869,
"tax": 1643,
"id": "47"
},
{
"createdAt": "2022-12-12T21:15:41.189Z",
"name": "Marianne Hermann House",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/223021150.webp?k=d9e832c6dd80f8158f2859a04508896e714acbd25f6661ac58824de2db38f145&o=&s=1",
"distance": 1885,
"details": "C Roque offers accommodations in Colva, 2789 feet from Colva Beach. Guests can enjoy the on-site restaurant and spa and wellness center. Certain units have a seating area for your convenience.",
"rating": 9.0,
"review": "Very Good",
"price": 7281,
"tax": 643,
"id": "48"
},
{
"createdAt": "2022-12-13T03:14:24.596Z",
"name": "Goa Sonja Jacobson IV",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/234539339.webp?k=6ff520119c5127ca368809131235c7913dc076fa625b10ae47c68655d27f6246&o=&s=1",
"distance": 2498,
"details": "Located in Morjim, a 14-minute walk from Morjim Beach, Treebo Trend Morjim Banyan Resort Morjim provides accommodations with a restaurant, free private parking and a bar.",
"rating": 7.6,
"review": "Good",
"price": 7341,
"tax": 603,
"id": "49"
},
{
"createdAt": "2022-12-13T06:07:14.196Z",
"name": "Becky Pagac Goa",
"avatar": "https://cf.bstatic.com/xdata/images/hotel/square200/410902923.webp?k=cc525cad1c553d68fa02238f63a5978e46a615632ae78ce7adb9f18dbd416069&o=&s=1",
"distance": 470,
"details": "Located in Mandrem, a 16-minute walk from Mandrem Beach, La Vera Boutique Hotel has accommodations with a restaurant, free private parking, an outdoor swimming pool and a terrace.",
"rating": 10,
"review": "Wonderful",
"price": 12375,
"tax": 2043,
"id": "50"
}
]
window.addEventListener("load", () => {
render(product_data)
});
//-------Product Display function----------//
function render(data){
let add = document.querySelector(".product")
// add.innerHTML = "";
let new_arr = data.map((item)=>{
return `
<div class="product-box">
<div class="image">
<img src=${item.avatar} alt="">
</div>
<div class="mid">
<h3>${item.name}</h3>
<p><span class="material-symbols-outlined">
my_location
</span>${item.distance} M from Center</p>
<p>${item.details}</p>
</div>
<div class="right">
<div class="review">
<h3>${item.review}</h3>
<div><h4>${item.rating}</h4></div>
</div>
<p>1 night, 2 adults</p>
<h2>Rs.${item.price}</h2>
<p>+Rs.${item.tax} taxes and charges</p>
<button>See availablility</button>
</div>
</div>
`
})
//console.log(new_arr)
add.innerHTML = new_arr.join(" ")
} ;
//-------Sort function------------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
product_data.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
product_data.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
product_data.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
product_data.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
product_data.sort((a,b)=>a.distance-b.distance);
}
render(product_data)
}
//------------Product Filter function----------//
let boxs = document.querySelectorAll(".box")
for(let box of boxs){
box.addEventListener("click",(e)=>{
//console.log(e)
let review_value = e.target.value;
let good = e.path[1].children[5].checked;
let vGood = e.path[1].children[8].checked;
let excellent = e.path[1].children[11].checked;
let wonder = e.path[1].children[14].checked;
let a_7 = e.path[1].children[19].checked;
let a_8 = e.path[1].children[22].checked;
let a_9 = e.path[1].children[25].checked;
let p_4000 = e.path[1].children[30].checked;
let p_8000 = e.path[1].children[33].checked;
let p_10000 = e.path[1].children[36].checked;
let p_a_10 = e.path[1].children[39].checked;
//console.log(e.path[1].children[5].checked)
if(review_value=="Good" && good==true){
Good = product_data.filter((item)=>{
return item.review=="Good"
})
//console.log(Good)
render(Good)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
Good.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
Good.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
Good.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
Good.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
Good.sort((a,b)=>a.distance-b.distance);
}
render(Good)
}
}else if(review_value=="Very Good" && vGood==true){
veryGood = product_data.filter((item)=>{
return item.review=="Very Good"
})
render(veryGood)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
veryGood.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
veryGood.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
veryGood.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
veryGood.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
veryGood.sort((a,b)=>a.distance-b.distance);
}
render(veryGood)
}
}else if(review_value=="Excellent" && excellent==true){
Excellent = product_data.filter((item)=>{
return item.review=="Excellent"
})
render(Excellent)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
Excellent.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
Excellent.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
Excellent.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
Excellent.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
Excellent.sort((a,b)=>a.distance-b.distance);
}
render(Excellent)
}
}else if(review_value=="Wonderful" && wonder==true){
Wonderful = product_data.filter((item)=>{
return item.review=="Wonderful"
})
render(Wonderful)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
Wonderful.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
Wonderful.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
Wonderful.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
Wonderful.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
Wonderful.sort((a,b)=>a.distance-b.distance);
}
render(Wonderful)
}
}else if(review_value==7 && a_7==true){
above_7 = product_data.filter((item)=>{
return item.rating>7
})
render(above_7)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
above_7.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
above_7.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
above_7.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
above_7.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
above_7.sort((a,b)=>a.distance-b.distance);
}
render(above_7)
}
}else if(review_value==8 && a_8==true){
above_8 = product_data.filter((item)=>{
return item.rating>8
})
render(above_8)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
above_8.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
above_8.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
above_8.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
above_8.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
above_8.sort((a,b)=>a.distance-b.distance);
}
render(above_8)
}
}else if(review_value==9 && a_9==true){
above_9 = product_data.filter((item)=>{
return item.rating>9
})
render(above_9)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
above_9.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
above_9.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
above_9.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
above_9.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
above_9.sort((a,b)=>a.distance-b.distance);
}
render(above_9)
}
}else if(review_value==4000 && p_4000==true){
below_4000 = product_data.filter((item)=>{
return item.price<4000
})
render(below_4000)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
below_4000.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
below_4000.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
below_4000.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
below_4000.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
below_4000.sort((a,b)=>a.distance-b.distance);
}
render(below_4000)
}
}else if(review_value==8000 && p_8000==true){
below_8000 = product_data.filter((item)=>{
return item.price>4000 && item.price<8000
})
render(below_8000)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
below_8000.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
below_8000.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
below_8000.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
below_8000.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
below_8000.sort((a,b)=>a.distance-b.distance);
}
render(below_8000)
}
}else if(review_value==8001 && p_10000==true){
above_8000 = product_data.filter((item)=>{
return item.price>8000 && item.price<10000
})
render(above_8000)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
above_8000.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
above_8000.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
above_8000.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
above_8000.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
above_8000.sort((a,b)=>a.distance-b.distance);
}
render(above_8000)
}
}else if(review_value==10000 && p_a_10==true){
above_10 = product_data.filter((item)=>{
return item.price>10000
})
render(above_10)
//----filter sort function------//
document.querySelector(".sort-box").addEventListener("change",sort)
function sort(){
let print = document.querySelector(".sort-box").value;
//console.log(print)
if(print=="P_LTH"){
above_10.sort((a,b)=>a.price-b.price);
}else if(print=="P_HTL"){
above_10.sort((a,b)=>b.price-a.price);
}else if(print=="R_LTH"){
above_10.sort((a,b)=>a.rating-b.rating);
}else if(print=="R_HTL"){
above_10.sort((a,b)=>b.rating-a.rating);
}else if(print=="D_LTH"){
above_10.sort((a,b)=>a.distance-b.distance);
}
render(above_10)
}
}
})
}