-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpersonalgroom.html
726 lines (622 loc) · 30.6 KB
/
personalgroom.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://kit.fontawesome.com/24c494a6b6.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>fundaental.in</title>
<link rel="shortcut icon" href="https://fundamental.in/wp-content/uploads/2021/03/cropped-Favicon-32x32.jpg"
type="image/x-icon">
<link rel="stylesheet" href="personalgromm.css">
<!-- Vishwas css -->
<style>
#container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: auto;
/* gap: px; */
margin: 20px 20px 20px 20px;
}
/* Price */
.innerDiv {
display: flex;
justify-content:center;
line-height: 40px;
/* font-weight: bolder; */
/* margin-left: 80px; */
font-size: 20px;
margin-top: -40px;
}
.Div{
border:1px solid red;
width: 90%;
margin: 20px;
/* font-size: 13px; */
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.cd{
border-top: 1px solid red;
background-color: rgb(246, 244, 244);
}
.n:hover{
color:red;
cursor: pointer;
}
.lappy{
height: 200px;
width: 200px;
margin: 20px;
}
.discountlappy{
/* margin-top: -600px; */
width: 20%;
background-color: red;
color: white;
border: 2px solid red;
margin: 1px;
}
.add{
margin-left: 230px;
color: rgb(251, 8, 8);
background-color: white;
border: 1px solid red;
/* width: 40px; */
}
.add:hover{
background-color: red;
color: white;
}
.num > button{
border:1px solid red;
color: red;
background-color: white;
font-size:15px;
width: 30px;
height: 30px;
margin-right: 5px;
}
.num{
margin-left: 550px;
}
#first{
background-color: red;
color: white;
}
.num button:hover{
background-color:red;
color: white;
}
</style>
</head>
<body>
<section>
<div class="row m-0 ">
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-6">
<div class="funda">
<a class="navbar-brand" href="index.html">fundamental</a>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-4 col-sm-3 col-2">
<div class="serchbox">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="I'm searching for..">
<div class="input-group-append">
<button class="btn" type="submit"><i class="fa fa-search" ></i></button>
</div>
</div>
<!-- <input type="text" placeholder="I'm searching for.." name="search">
<span><i class="fa fa-search"></i></span> -->
<!-- <button type="submit"><i class="fa fa-search"></i></button> -->
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-3 col-4">
<div class="firstiocn">
<div><a href="signup.html" class="text-dark"><i class="fa-regular fa-user"></i></a></div>
<div><i class="fa-regular fa-heart count"><span class="count1">0</span> </i> </div>
<div><a href="cart.html" class="text-dark"><i class="fa-solid fa-cart-shopping count"><span class="count1" id="countercart">0</span></i></a></div>
</div>
</div>
</div>
</section>
<section class="secondnav">
<nav class="navbar navbar-expand-lg ">
<div class="container-fluid prover ">
<button class="navbar-toggler text-center" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
aria-label="Toggle navigation">
Menu
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle active " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Television & Audio
</a>
<ul class="dropdown-menu televiosndiv" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="view all-telivision.html">Televison </a></li>
<li><a class="dropdown-item" href="#"> Audio</a></li>
<li><a class="dropdown-item navlighcolor" href="#">DVD Player</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Home Theater</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Party Speaker</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Sound Bars</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Appliances
</a>
<ul class="dropdown-menu applin" aria-labelledby="navbarDropdownMenuLink">
<div class="row m-0">
<div class="col-4 ">
<li><a class="dropdown-item" href="refrigerator.html">Refrigerator</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Direct Cool</a></li>
<li><a class="dropdown-item navlighcolor" href="#"> Frost Free</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Side By Side</a></li>
<li><a class="dropdown-item" href="#"> Washing Machine</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Front Loading</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Semi Automatic</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Top Loading</a></li>
</div>
<div class="col-4">
<li><a class="dropdown-item" href="#">Microwave</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Convection</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Grill</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Solo</a></li>
<li><a class="dropdown-item" href="#">Dish Washer</a></li>
<li><a class="dropdown-item" href="#">Dryer</a></li>
<li><a class="dropdown-item" href="#">Freezer</a></li>
</div>
</div>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Air Conditioner
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="view all-air.html">Split AC – Inverter</a></li>
<li><a class="dropdown-item" href="#">Split AC – Non Inverter</a></li>
<li><a class="dropdown-item" href="#">Window AC – Non Inverter</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Mobile & Tablets
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="mobile.html">Smart Phones</a></li>
<li><a class="dropdown-item" href="#">Featur Phones </a></li>
<li><a class="dropdown-item" href="#">Tablets </a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Wearables
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="wearables.html">Smart Watches</a></li>
<li><a class="dropdown-item" href="#">Smart Bands</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Computing
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="laptop.html">Laptops</a></li>
<li><a class="dropdown-item" href="#">Desktops</a></li>
<li><a class="dropdown-item" href="#">Printers</a></li>
<li><a class="dropdown-item" href="#">Monitors</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbark" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Cameras
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="#">DSLR</a></li>
<li><a class="dropdown-item" href="#">Digital</a></li>
<li><a class="dropdown-item" href="#">Lense</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Gadgets & Accessories
</a>
<ul class="dropdown-menu gadgets" aria-labelledby="navbarDropdownMenuLink">
<div class="row m-0">
<div class="col-3 ">
<li><a class="dropdown-item" href="#">Headphones</a></li>
<li><a class="dropdown-item" href="#">Bluetooth Speakers</a></li>
<li><a class="dropdown-item" href="#">Gaming</a></li>
<li><a class="dropdown-item" href="#">MP3 Player</a></li>
<li><a class="dropdown-item" href="#">Voice Recorder</a></li>
<li><a class="dropdown-item" href="#">STB</a></li>
<li><a class="dropdown-item" href="#">Fire TV / Chromcast</a></li>
<li><a class="dropdown-item" href="#">Landline Telephones</a></li>
</div>
<div class="col-3">
<li><a class="dropdown-item" href="#">Mobile Accessories</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Connectors</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Covers</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Mobile Chargers</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Power Banks</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Screen Guards</a></li>
</div>
<div class="col-3">
<li><a class="dropdown-item" href="gadget.html"> IT Accessories</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Antivirus</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Cleaners</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Cooling Pads</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Keyboard</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Mouse</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Routers</a></li>
</div>
<div class="col-3">
<li><a class="dropdown-item" href="#">Memory</a></li>
<li><a class="dropdown-item navlighcolor" href="#">HDD</a></li>
<li><a class="dropdown-item navlighcolor" href="#">Memory Cards</a></li>
<li><a class="dropdown-item" href="#">Cables</a></li>
</div>
</div>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Small Apliiances
</a>
<ul class="dropdown-menu smallapll" aria-labelledby="navbarDropdownMenuLink">
<div class="row m-0">
<div class="col-lg-4 ">
<li><a class="dropdown-item" href="#">Air Cooler</a></li>
<li><a class="dropdown-item" href="#">Air Fryer</a></li>
<li><a class="dropdown-item" href="#">Air Purifier</a></li>
<li><a class="dropdown-item" href="#">Blender</a></li>
<li><a class="dropdown-item" href="#">Chimney</a></li>
<li><a class="dropdown-item" href="#">Chopper</a></li>
<li><a class="dropdown-item" href="#">Coffee Maker</a></li>
<li><a class="dropdown-item" href="#">Cook Top</a></li>
<li><a class="dropdown-item" href="#">Dry Iron</a></li>
</div>
<div class="col-lg-4">
<li><a class="dropdown-item" href="smallAppliances.html">Electric Kettle</a></li>
<li><a class="dropdown-item" href="#">Fan</a></li>
<li><a class="dropdown-item" href="#">Floor Care</a></li>
<li><a class="dropdown-item" href="#">Food Processor</a></li>
<li><a class="dropdown-item" href="#">Garment Steamer</a></li>
<li><a class="dropdown-item" href="#">Hand Mixer</a></li>
<li><a class="dropdown-item" href="#">Induction Cooker</a></li>
<li><a class="dropdown-item" href="#">Juicer</a></li>
<li><a class="dropdown-item" href="#">Juicer Mixer Grinder</a></li>
</div>
<div class="col-lg-4">
<li><a class="dropdown-item" href="#">Mixer Grinder</a></li>
<li><a class="dropdown-item" href="#">OTG</a></li>
<li><a class="dropdown-item" href="#">Rice Cooker</a></li>
<li><a class="dropdown-item" href="#">Sandwich Maker</a></li>
<li><a class="dropdown-item" href="#">Steam Iron</a></li>
<li><a class="dropdown-item" href="#">Toaster</a></li>
<li><a class="dropdown-item" href="#">Water Cooler</a></li>
<li><a class="dropdown-item" href="#">Water Heater</a></li>
<li><a class="dropdown-item" href="#">Water Purifier</a></li>
</div>
</div>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Personal Grooming
</a>
<ul class="dropdown-menu groom" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="#">Cliper</a></li>
<li><a class="dropdown-item" href="#">Cruel</a></li>
<li><a class="dropdown-item" href="#">Dryer & Straightener</a></li>
<li><a class="dropdown-item" href="#">Epilator</a></li>
<li><a class="dropdown-item" href="#">Multi Grooming</a></li>
<li><a class="dropdown-item" href="#">Body Grooming</a></li>
<li><a class="dropdown-item" href="#">Shaver</a></li>
<li><a class="dropdown-item" href="personalgroom.html">Trimmer</a></li>
<li><a class="dropdown-item" href="#">Styler</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</section>
<br>
<!-- write start code here -->
<div id="topbar_shivam">
<div id="top1">
<span><i class="fa-solid fa-sliders"></i></span>FILTER
</div>
<div id="top2">
<span>SHOW</span><span>12</span><span>24</span><span>36</span>
</div>
<div id="top3">
<p>Showing 1-12 of 90 item(s)</p>
</div>
<div id="top4">
</div>
<div id="top5">
DEFAULT SORTING<span><i class="fa-solid fa-angle-down"></i></span>
</div>
</div>
<div id="container"></div>
<div class="num">
<button id="first">1</button>
<button>2</button>
<button>3</button>
<button>4</button>
<button><i class="fa-solid fa-arrow-right"></i></button>
</div>
<br><br> <br>
<!-- write start ode here -->
<!-- ankit code here -->
<section class="container-fluid footfund1">
<div class="row m-0 ">
<div class="col-lg-6 col-md-6 col-sm-12 footfund ">
<h1>fundamental</h1>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 footfund3">
<ul>
<li></li>
<li>Follows Us on: </li>
<li><span><i class="fa-solid fa-camera-retro"></i></li>
<li><i class="fa-brands fa-facebook-square"></i></li>
<li><i class="fa-brands fa-youtube"></i></li>
</ul>
</div>
</div>
<div class="container">
<div class="row m-0">
<div class="col-lg-12 col-md-6 footfund4">
<ul>
<li> <a href="about.html"> About Us </a></li>
<li><a href="policy.html"> Exchange Policy </a> </li>
<li><a href="terms.html">Terms & Conditions</a></li>
<li><a href="shipp.html">Shipping & Return</a></li>
<li><a href="privacy.html">Privacy Policy</a></li>
<li><a href="contactus.html">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</section>
<section class="container-fluid">
<div class="row " style="background-color: #323232;">
<div class="col-lg-6 col-md-12 col-sm-12 footfund5">
<p>Copyright © <span>Fundamental Electronics Pvt. Ltd.</span></p>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 footfund6">
<p>Powered by <span>Webaddictz</span></p>
</div>
</div>
</section>
<!-- ankit code ends -->
<div class="btot">
<a id="bttop" title="Go to top"><i class="fas fa-angle-up"></i></a>
</div>
<div class="what">
<a class="socialiconfoot"
href="https://api.whatsapp.com/send?phone=9190000000&text=Hi there! I have a question? "
target="_blank"><img data-cy="chat-widget-icon"
src="https://stkiwiwebdev.z23.web.core.windows.net/assets/svg/whatsapp-icon.svg"
style="width: 100%; height: 100%;"></a>
</div>
<script src="PersonalGrooming.js"></script>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
</body>
</html>
<script>
var data1 = [
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/01/BHC017_00-IMS-en_IN-300x300.jpg",
name: "Philips 1200W Hair Dryer BHC017/00",
price: 1431,
strikedOffPrice: 1595,
discount:"-10%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/01/MG7715_15-IMS-en_IN-300x300.jpg",
name:"Philips 13-In-1 Multi Grooming MG7715/00",
price: 3854,
strikedOffPrice: 4295,
discount:"-10%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/01/HP8232_00-IMS-en_IN-300x300.jpg",
name: "Philips 2200W Hair Dryer HP8232/00",
price: 2784,
strikedOffPrice: 3295,
discount:"-16%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/MG3721_77-IMS-en_IN-300x300.jpg",
name: "Philips 7-In-1, Face, Hair And Body Multi Grooming MG3721/77",
price: 1611,
strikedOffPrice: 1795,
discount:"-10%",
qty:1
// 2nd line
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/BT1210_15-IMS-en_IN-300x300.jpg",
name: "Philips Beard Trimmer BT1210/15",
price: 780,
strikedOffPrice: 895,
discount:"-13%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/01/BT1215_15-IMS-en_IN-300x300.jpg",
name:"Philips Beard Trimmer BT1215/15",
price: 1050,
strikedOffPrice: 1195,
discount:"-12%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/07/BT1235_15-RTP-global-001-300x300.png",
name: "Philips Beard Trimmer BT1235/15",
price: 1072,
strikedOffPrice: 1195,
discount:"-10%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/BT3102_15-A1P-global-001-300x300.jpg",
name: "Philips Beard Trimmer BT3102/15",
price: 1342,
strikedOffPrice: 1495,
discount:"-10%",
qty:1
},
// 3rd Line
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/BT3105_15-IMS-en_IN-300x300.jpg",
name: "Philips Beard Trimmer BT3105/15",
price: 1656,
strikedOffPrice: 1845,
discount:"-10%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/01/BT3215_15-A1P-global-001-300x300.jpg",
name: "Philips Beard Trimmer BT3215/15",
price: 2059,
strikedOffPrice: 2295,
discount:"-10%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/BT7501_15-IMS-en_IN-300x300.jpg",
name:"Philips Beard Trimmer BT7501",
price: 3050,
strikedOffPrice: 3495,
discount:"-13%",
qty:1
},
{
imgUrl:
"https://fundamental.in/wp-content/uploads/2021/03/51xnyIqjmvL._SL1000_-300x300.jpg",
name:"Philips CBikini Trimmer BRT383/15",
price: 2059,
strikedOffPrice: 2295,
discount:"-10%",
qty:1
},
];
var cartData = JSON.parse(localStorage.getItem("cart")) || [];
var len = cartData.length;
console.log(len);
document.querySelector("#countercart").innerText = len;
data1.map(function(elem) {
// 4 times
var div = document.createElement("div");
div.setAttribute("class", "Div");
var img = document.createElement("img");
img.setAttribute("class", "lappy")
img.src = elem.imgUrl;
// Discount
var btn1=document.createElement("button")
btn1.innerText=elem.discount;
// btn1.style.backgroundColor="red";
// btn1.style.color="white";
// btn1.style.marginTop="-90px";
// btn1.style.border="4px solid red";
btn1.setAttribute("class", "discountlappy")
// Add to cart
var btn2=document.createElement("button")
btn2.style.backgroundColor="white";
btn2.style.color="red";
// btn2.innerText ="ADD TO CART";
btn2.innerHTML='<i class="fa-solid fa-bag-shopping fa-2xl"></i>';
btn2.style.height="40px";
btn2.style.width="40px"
// btn2.style.fontSize="10px";
// btn2.style.border="10px";
// btn2.style.marginRight="53px";
// btn2.style.margonTop="-10px"
btn2.setAttribute("class", "add");
//
// btn2.setAttribute("class", "fas fa-cart plus")
//
btn2.addEventListener("click", function () {
addToCart(elem);
console.log("btn2 clicked")
//
// btn2.setAttribute("class","fas fa-check-circle");
// btn2.style.color="white"
// btn2.style.backgroundColor="red"
//
});
// item Name
var name = document.createElement("p");
name.setAttribute("class", "n");
name.innerText = elem.name;
name.style.fontSize="14px";
name.style.textAlign="center";
name.style.fontWeight="bold"
name.style.fontFamily="sans-serif"
name.style.margin="40px"
var contentDiv=document.createElement("div");
contentDiv.setAttribute("class", "cd");
var priceDiv = document.createElement("div");
priceDiv.setAttribute("class", "innerDiv");
var price = document.createElement("p");
price.innerText = "₹ " + elem.price;
price.style.color="#E42329"
price.style.fontSize="16px";
price.style.fontWeight="bold";
price.style.fontFamily="sans-serif"
var strikedOffPrice = document.createElement("p");
strikedOffPrice.innerText = "₹ "+ elem.strikedOffPrice;
strikedOffPrice.style.textDecoration = "line-through";
strikedOffPrice.style.color = "#909090";
strikedOffPrice.style.fontSize="16px";
strikedOffPrice.style.marginRight="20px";
priceDiv.append( strikedOffPrice,price);
contentDiv.append(name,priceDiv )
div.append(btn1,img, btn2, contentDiv );
document.querySelector("#container").append(div);
});
function addToCart(ele) {
console.log(ele);
cartData.push(ele);
localStorage.setItem("cart", JSON.stringify(cartData));
// alert("item added to cart");
window.location.href = "cart.html"
}
</script>