This page was made as a personal project in connection with an educational exercise.
This is NOT the official site of the company or brand identified on the page. The creator of this page is NOT affiliated with the company or brand in any way. DO NOT enter any personal information (such as logins, passwords or credit card numbers) on this site.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
body_inner4.html
673 lines (603 loc) · 22.8 KB
/
body_inner4.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
<!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>Document</title>
<style>
*{
margin: 0px;
}
#contaner{
width:100%;
/* margin-top: 10%; */
/* border:3px solid red; */
display: flex;
justify-content: space-evenly;
align-items: flex-start;
}
#contaner>div{
width:45%;
/* height: 500px; */
margin-top: 2%;
/* border:1px solid green; */
}
img{
width: 100%;
border-radius: 10px;
}
.class>div{
width:100%;
/* height: 400px; */
/* border:1px solid blue; */
display: flex;
margin: auto;
/* border-radius: 10px; */
margin-top: 5%;
}
#small{
width:100%;
height: 70px;
/* border: 2px solid black; */
/* display: flex; */
justify-content: space-around;
margin: auto;
margin-top: 2%;
}
#small>div{
display: flex;
width:50px;
height: 50px;
/* border: 1px solid red; */
margin: auto;
cursor: pointer;
}
#small+div{
width:80%;
/* border:1px solid red; */
/* height: 200px; */
display: grid;
gap: 8px;
margin-top: 10%;
background-color: #dd72a3;
border-radius: 10px;
padding: 20px 40px;
}
#small+div>p:nth-child(1){
color: white;
font-style: italic;
}
#small+div>p:nth-child(2){
color: white;
}
#small+div>p:nth-child(3){
color: white;
}
#small+div>p:nth-child(4){
color: white;
}
#small+div>p:nth-child(5){
color: white;
}
#small+div>p:nth-child(6){
color: white;
}
#small+div>p:nth-child(7){
color: white;
}
</style>
<style>
#second>div{
width:80%;
padding: 10px;
}
#second h3{
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 18px;
font-weight: 500;
}
#Rs{
display:flex;
margin-top: 10px;
}
#Rs>h3:nth-child(1){
text-decoration: line-through;
}
#Rs>h3:nth-child(2){
margin-left: 10px;
color: red;
}
p{
font-size: smaller;
}
#ml{
width:80%;
height: 40px;
margin-top: 10px;
margin-bottom: 10px;
border-radius: 1px;
cursor: pointer;
}
#ml+button{
width:80%;
height: 30px;
color: white;
background-color:#50504b;
border:0px;
cursor: pointer;
display: inline-block;
}
button+p{
font-size: 30px;
margin-left: 40%;
}
button+p+p{
/* text-align: center; */
margin-top: 20px;
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
font-weight: 500;
margin-left: 5%;
}
button+p+P+h1{
margin-top: 20px;
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 25px;
font-weight: 500;
margin-left: 5%;
}
#sun{
margin-top: 20px;
display: flex;
/* border: 2px solid gray; */
justify-content: space-evenly;
/* justify-content: center; */
align-items: center;
/* height: 20px; */
}
#sun>div{
width:10%;
/* height: 20px; */
/* border: 1px solid green; */
}
#sun>div>p{
margin-top: 10px;
text-align: center;
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
font-weight: 400;
}
#sun>div>img{
width:100%;
}
</style>
<style>
#contaner1>h1{
text-align: center;
margin-top: 40px;
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 25px;
font-weight: 400;
}
#contaner1>h1+img{
width:100%;
margin-bottom: 20px;
margin-top: 20px;
}
</style>
<style>
body{
position: relative;
}
#navbar {
width: 100%;
height: 25vh;
border: 1px solid grey;
position: sticky;
top: 0px;
background-color: white;
}
#upperNav {
width: 100%;
height: 20%;
background-color: #50504b;
}
#bottomNav {
width: 94%;
height: 80%;
margin: auto;
display: flex;
}
#bottomNav > div {
height: 100%;
width: 33.33%;
}
#leftNav {
display: flex;
align-items: center;
}
#centerNav > div {
width: 92%;
height: 100%;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
}
#centerNav > div > img {
width: 65%;
height: 70%;
}
#rightNav {
display: flex;
justify-content: flex-end;
align-items: center;
}
#rightNav > div {
width: 94%;
height: 30%;
display: flex;
justify-content: space-between;
align-items: center;
}
#rightNav > div > a {
text-align: center;
}
#rightNav > div > input {
height: 100%;
width: 300%;
border-radius: 7px;
border: 0.1px solid grey;
font-size: 120%;
color: grey;
margin-right: 10px;
}
svg {
width: 40%;
height: 80%;
cursor: pointer;
}
#navbar select{
width: 20px;
}
</style>
<style>
#facebook>svg{
width: 20px;
height: 20px;
}
#instagram>svg{
width: 20px;
height: 20px;
}
#youtube>svg{
width: 20px;
height: 20px;
}
#footer{
display: grid;
grid-template-columns: repeat(3,1fr);
grid-template-rows: 1;
gap: 0px;
padding-top: 50px;
padding-right: 50px;
padding-left: 50px;
}
#footer>div{
display: flex;
flex-direction: column;
line-height: 2;
}
#followUs{
width: 60%;
display: flex;
align-items: center;
justify-content: space-around;
font-family: 'Roboto', sans-serif;
font-size: 18px;
font-weight: bold;
cursor: pointer;
}
#footer>div>p{
font-family: 'Montserrat', sans-serif;
font-weight: bold;
font-size: 19px;
}
#footer>div>a{
text-decoration: none;
font-family: 'Roboto', sans-serif;
cursor: pointer;
margin-top: 5px;
color: rgb(59, 50, 50);
font-size: 16px;
letter-spacing: 2px;
}
#footer>div button{
background-color: black;
color: white;
padding: 10px 15px;
}
#footer>div input{
background-color: transparent;
border-color: transparent;
border-bottom: 2px solid black;
margin-right: 10px;
height: 100%;
}
#footer #year{
font-family: 'Roboto', sans-serif;
font-size: 16px;
font-weight: lighter;
}
</style>
</head>
<body>
<div id="navbar">
<div id="upperNav">
</div>
<div id="bottomNav">
<div id="leftNav">
<div>
<select onchange="yes()" name="filter" id="filter" >
<option value="Whats New"> WHAT'S NEW?</option>
<option value="hair care">HAIR CARE</option>
<option value="body care">BODY CARE</option>
<option value="app">DOWNLOAD THE APP</option>
<option value="knowUsBatter">KNOW US BATTER</option>
<option value="profile">PROFILE</option>
<option value="login">LOGIN</option>
</select>
</div>
</div>
<div id="centerNav">
<div>
<a href="index.html"> <img id="logo" src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/unnamed_250x_200x_2x_260x_24408e11-6e3a-4a0c-8327-74d0455f7696_260x.jpg?v=1646547348" alt="logo"></a>
</div>
</div>
<div id="rightNav">
<div>
<input type="text" placeholder="🔍 Search">
<a href="">
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/Group_346.svg?v=1655211633" alt="">
</a>
<a href="cart.html">
<svg viewBox="-35 0 512 512.00102" xmlns="http://www.w3.org/2000/svg"><path d="m443.054688 495.171875-38.914063-370.574219c-.816406-7.757812-7.355469-13.648437-15.15625-13.648437h-73.140625v-16.675781c0-51.980469-42.292969-94.273438-94.273438-94.273438-51.984374 0-94.277343 42.292969-94.277343 94.273438v16.675781h-73.140625c-7.800782 0-14.339844 5.890625-15.15625 13.648437l-38.9140628 370.574219c-.4492192 4.292969.9453128 8.578125 3.8320308 11.789063 2.890626 3.207031 7.007813 5.039062 11.324219 5.039062h412.65625c4.320313 0 8.4375-1.832031 11.324219-5.039062 2.894531-3.210938 4.285156-7.496094 3.835938-11.789063zm-285.285157-400.898437c0-35.175782 28.621094-63.796876 63.800781-63.796876 35.175782 0 63.796876 28.621094 63.796876 63.796876v16.675781h-127.597657zm-125.609375 387.25 35.714844-340.097657h59.417969v33.582031c0 8.414063 6.824219 15.238282 15.238281 15.238282s15.238281-6.824219 15.238281-15.238282v-33.582031h127.597657v33.582031c0 8.414063 6.824218 15.238282 15.238281 15.238282 8.414062 0 15.238281-6.824219 15.238281-15.238282v-33.582031h59.417969l35.714843 340.097657zm0 0"></path></svg>
</a>
<div>
<svg onclick="what_to_show()" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M256,0c-74.439,0-135,60.561-135,135s60.561,135,135,135s135-60.561,135-135S330.439,0,256,0z M256,240
c-57.897,0-105-47.103-105-105c0-57.897,47.103-105,105-105c57.897,0,105,47.103,105,105C361,192.897,313.897,240,256,240z"></path>
<path d="M297.833,301h-83.667C144.964,301,76.669,332.951,31,401.458V512h450V401.458C435.397,333.05,367.121,301,297.833,301z
M451.001,482H451H61v-71.363C96.031,360.683,152.952,331,214.167,331h83.667c61.215,0,118.135,29.683,153.167,79.637V482z"></path>
</svg></div>
</div>
</div>
</div>
</div>
<div id="contaner">
<div class="class">
<div>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1-11_1_1_360x.jpg?v=1655310547" alt="img">
</div>
<div id="small">
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1-14_720x.jpg?v=1646477249" alt="img"></div>
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1-5_4_360x.jpg?v=1655310547" alt="img"></div>
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1-4_4_360x.jpg?v=1655310547" alt="img"></div>
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1-3_4_360x.jpg?v=1655310547" alt="img"></div>
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/lemon-lotion_360x.jpg?v=1655310547" alt="img"></div>
<div><img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/products/Artboard1_19_360x.jpg?v=1655310547" alt="img"></div>
</div>
<div>
<p>PERKS TO LOVE</p>
<p>BUY 2 GET 2 MINIS FREE</p>
<p>New Launch: Cica Calming Niacinamide Sunscreen SPF50 PA+++</p>
<p>New Launch: 20% Vitamin C Face Serum</p>
<p>Upto 20% off Sitewide</p>
<p>Additional 3% Off on Prepaid Orders</p>
<p>Earn 10% Cashback on all orders.</p>
</div>
</div>
<div id="second">
<div>
<h3>Vitamin C Glow Body Lotion with Lemon</h3>
<div id="Rs">
<h3>
Rs: 595.00
</h3>
<h3>
Rs: 387.00
</h3>
</div>
<p>
Inclusive of All Taxes
</p>
<select id="ml">
<option value="">200 ml</option>
</select>
<button class="addToCart">Add To Card</button>
<p>♡</p>
<p>Citrusy & lightweight body serum lotion with 3 types of vitamin C that hydrates & tones for soft, bright & glowing skin.</p>
<h1>Feel the Love</h1>
<div id="sun">
<div>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/Hydrates_Skin.png?v=1636459852" alt="img">
<p>Hydrates</p>
<p>Skin</p>
</div>
<div>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/Adds_Natural_Glow.png?v=1636460322" alt="img">
<p>Adds Natural</p>
<p>Glow</p>
</div>
<div>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/Calms_Soothes.png?v=1636458476" alt="img">
<p>Calm & Soothes</p>
<p>Skin</p>
</div>
</div>
</div>
</div>
</div>
<div id="contaner1">
<h1>Made With Love</h1>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/5-Lemon-Scrub.png?v=1636540848" alt="img">
<h1>Slather not Slurp</h1>
<img src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/lemon_scrub.jpg?v=1636541733" alt="img">
</div>
<!-- <div id="mainproject">
<hr />
<div id="footer">
<div>
<p>GET TO KNOW US</p>
<a href="aboutus.html">ABOUT US</a>
<a href="contactus.html">CONTACT US</a>
<a href="">EARTHCARE</a>
<a href="">AFFILIATE PROGRAM</a>
<a href="terms&condition.html">TERMS & CONDITION</a>
<a href="">REFUND & CANCELLATION</a>
<a href="">PRVACY POLICY</a>
<a href="">ORDER & SHIPPING</a>
<a href="">PAYMENT TERMS</a>
<a href="">TERMS AND SERVICE</a>
<a href="">REFUND POLICY</a>
</div>
<div>
<p>ALSO AVAILABLE ON</p>
<a
href="https://www.nykaa.com/brands/dot-key/c/7675?root=search,brand_menu,brand_list,Dot%20&%20Key&sourcepage=home&rtqu=Dot%20%26%20Key"
>NYKAA</a
>
<a
href="https://www.amazon.in/stores/node/19401367031?_encoding=UTF8&field-lbr_brands_browse-bin=Dot%20%26%20Key&ref_=bl_dp_s_web_19401367031"
>AMAZON</a
>
<a
href="https://www.flipkart.com/search?q=dot%20and%20key&otracker=search&otracker1=search&marketplace=FLIPKART&as-show=on&as=off"
>FLIPCART</a
>
<a href="https://www.myntra.com/dot-and-key?src=bc">MYNTRA</a>
</div>
<div>
<p>STAY UPDATED</p>
<div>
<input type="email" placeholder="example@example.com" /><button>
SUBMIT
</button>
</div>
<div id="followUs">
<p>FOLLOW US</p>
<a id="facebook" href="https://business.facebook.com/dotandkey"
><svg
aria-hidden="true"
focusable="false"
role="presentation"
class="icon icon-facebook"
viewBox="0 0 32 32"
>
<path
fill="#444"
d="M18.56 31.36V17.28h4.48l.64-5.12h-5.12v-3.2c0-1.28.64-2.56 2.56-2.56h2.56V1.28H19.2c-3.84 0-7.04 2.56-7.04 7.04v3.84H7.68v5.12h4.48v14.08h6.4z"
></path></svg
></a>
<a
id="instagram"
href="https://www.instagram.com/dotandkey.skincare/"
>
<svg
aria-hidden="true"
focusable="false"
role="presentation"
class="icon icon-instagram"
viewBox="0 0 32 32"
>
<path
fill="#444"
d="M16 3.094c4.206 0 4.7.019 6.363.094 1.538.069 2.369.325 2.925.544.738.287 1.262.625 1.813 1.175s.894 1.075 1.175 1.813c.212.556.475 1.387.544 2.925.075 1.662.094 2.156.094 6.363s-.019 4.7-.094 6.363c-.069 1.538-.325 2.369-.544 2.925-.288.738-.625 1.262-1.175 1.813s-1.075.894-1.813 1.175c-.556.212-1.387.475-2.925.544-1.663.075-2.156.094-6.363.094s-4.7-.019-6.363-.094c-1.537-.069-2.369-.325-2.925-.544-.737-.288-1.263-.625-1.813-1.175s-.894-1.075-1.175-1.813c-.212-.556-.475-1.387-.544-2.925-.075-1.663-.094-2.156-.094-6.363s.019-4.7.094-6.363c.069-1.537.325-2.369.544-2.925.287-.737.625-1.263 1.175-1.813s1.075-.894 1.813-1.175c.556-.212 1.388-.475 2.925-.544 1.662-.081 2.156-.094 6.363-.094zm0-2.838c-4.275 0-4.813.019-6.494.094-1.675.075-2.819.344-3.819.731-1.037.4-1.913.944-2.788 1.819S1.486 4.656 1.08 5.688c-.387 1-.656 2.144-.731 3.825-.075 1.675-.094 2.213-.094 6.488s.019 4.813.094 6.494c.075 1.675.344 2.819.731 3.825.4 1.038.944 1.913 1.819 2.788s1.756 1.413 2.788 1.819c1 .387 2.144.656 3.825.731s2.213.094 6.494.094 4.813-.019 6.494-.094c1.675-.075 2.819-.344 3.825-.731 1.038-.4 1.913-.944 2.788-1.819s1.413-1.756 1.819-2.788c.387-1 .656-2.144.731-3.825s.094-2.212.094-6.494-.019-4.813-.094-6.494c-.075-1.675-.344-2.819-.731-3.825-.4-1.038-.944-1.913-1.819-2.788s-1.756-1.413-2.788-1.819c-1-.387-2.144-.656-3.825-.731C20.812.275 20.275.256 16 .256z"
></path>
<path
fill="#444"
d="M16 7.912a8.088 8.088 0 0 0 0 16.175c4.463 0 8.087-3.625 8.087-8.088s-3.625-8.088-8.088-8.088zm0 13.338a5.25 5.25 0 1 1 0-10.5 5.25 5.25 0 1 1 0 10.5zM26.294 7.594a1.887 1.887 0 1 1-3.774.002 1.887 1.887 0 0 1 3.774-.003z"
></path></svg
></a>
<a id="youtube" href="https://www.dotandkey.com/pages/christmas"
><svg
aria-hidden="true"
focusable="false"
role="presentation"
class="icon icon-youtube"
viewBox="0 0 21 20"
>
<path
fill="#444"
d="M-.196 15.803q0 1.23.812 2.092t1.977.861h14.946q1.165 0 1.977-.861t.812-2.092V3.909q0-1.23-.82-2.116T17.539.907H2.593q-1.148 0-1.969.886t-.82 2.116v11.894zm7.465-2.149V6.058q0-.115.066-.18.049-.016.082-.016l.082.016 7.153 3.806q.066.066.066.164 0 .066-.066.131l-7.153 3.806q-.033.033-.066.033-.066 0-.098-.033-.066-.066-.066-.131z"
></path></svg
></a>
</div>
<p id="year">© 2022 Dot & Key</p>
</div>
</div>
</div> -->
</body>
</html>
<script>
function what_to_show() {
let len = JSON.parse(localStorage.getItem("login-data")) || [];
if (len.length > 0) {
window.location.href = "details.html";
} else {
window.location.href = "login.html";
}
}
function yes(){
let x=document.querySelector("#filter").value;
if(x=="Whats New"){
window.location.href = "newArrivel.html";
}else if(x=="hair care"){
window.location.href = "HairCare.html";
}else if(x=="body care"){
window.location.href = "BodyCare.html";
}else if(x=="app"){
window.location.href ="https://onelink.to/4bzhqy";
}else if(x=="knowUsBatter"){
window.location.href ="aboutus.html";
}else if(x=="profile"){
window.location.href ="details.html";
}else if(x=="login"){
window.location.href ="login.html";
}
}
</script>
<script>
// Adding Products to the cartData key of loacl storage
let addToCartBtn=document.querySelectorAll(".addToCart");
let items=[];
for(let i=0; i<addToCartBtn.length; i++) {
addToCartBtn[i].addEventListener("click",function(event){
let item = {
id: "body_4_inner"+(i+1),
image:event.target.parentElement.parentElement.parentElement.children[0].children[0].children[0].src,
name: event.target.parentElement.children[0].innerText,
price: event.target.parentElement.children[1].children[1].innerText.replace(/[A-Za-z:]/g, ""),
quantity:1
}
if(JSON.parse(localStorage.getItem("cartData"))===null) {
items.push(item);
localStorage.setItem("cartData", JSON.stringify(items));
window.location.reload();
} else {
let localItems=JSON.parse(localStorage.getItem("cartData"));
localItems.map(data=> {
if(item.id===data.id) {
item.quantity=data.quantity+1;
} else {
items.push(data);
}
});
items.push(item);
localStorage.setItem("cartData", JSON.stringify(items));
window.location.reload();
}
});
}
</script>