-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnavProds.html
694 lines (622 loc) · 26 KB
/
navProds.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
<!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>
<link
href="https://www.dafontfree.net/embed/Z290aGFtLWJvb2smZGF0YS8yNS9nLzEyNzUxOC9Hb3RoYW1Cb29rLnR0Zg"
rel="stylesheet"
type="text/css"
/>
<link rel="stylesheet" href="products.css" />
<!-- navbar icons link -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<!-- favicon link -->
<link rel="manifest" href="/site.webmanifest" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link rel="stylesheet" href="blog.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link
href="https://www.dafontfree.net/embed/Z290aGFtLWJvb2smZGF0YS8yNS9nLzEyNzUxOC9Hb3RoYW1Cb29rLnR0Zg"
rel="stylesheet"
type="text/css"
/>
<style></style>
</head>
<body>
<!-- top line start -->
<a href=""
><div id="top">
Diwali Dhamaka: Upto 60% Off + Extra 20% Off on orders of Rs. 3500 &
above. Use Coupon: DIWALISALE | * T & C Apply. Shop Now
</div></a
>
<!-- top line end -->
<!-------------------------------- navigation bar start --------------------------------------------------------->
<ul id="navbar">
<img
id="myntraimg"
src="https://pantaloons.imgix.net/img/app/brands/pantaloons/v2/PT_D_logo.png"
/>
<!-- women section start -->
<a href="womens.html"
><li>
WOMEN
<!-- hover contents -->
<div id="innerdiv">
<ul class="innerul">
<li class="head">NEW ARRIVALS</li>
<li class="tail">tees & tops</li>
<li class="tail">jeans</li>
<li class="tail">Shorts & Capris</li>
</ul>
<ul>
<li class="head">WESTERN WEAR</li>
<li class="tail">Tees & Tops</li>
<li class="tail">Shirts & Blouses</li>
<li class="tail">Dresses & Jumpsuits</li>
<li class="tail">Suits & Blazers</li>
<li class="tail">Sweaters & Sweatshirts</li>
<li class="tail">Shrugs</li>
<li class="tail">Jackets</li>
<li class="tail">Trousers</li>
<li class="tail">Jeans</li>
<li class="tail">Shorts</li>
<li class="tail">Culottes & Capris</li>
<li class="tail">Skirts</li>
</ul>
<ul>
<li class="head">ETHNIC WEAR</li>
<li class="tail">Kurtas</li>
<li class="tail">Kurtis & Tunics</li>
<li class="tail">Tops & Cholis</li>
<li class="tail">Kurta Sets</li>
<li class="tail">Dresses</li>
<li class="tail">Dupattas</li>
<li class="tail">Leggings</li>
<li class="tail">Skirts & Lehengas</li>
<li class="tail">Pants & Palazzos</li>
<li class="head">SARIS</li>
<li class="head">PLUS SIZE</li>
</ul>
<ul>
<li class="head">HANDBAGS</li>
<li class="head">FOOTWEAR</li>
<li class="tail">Ballerina</li>
<li class="tail">Flip Flops</li>
<li class="tail">Sandals</li>
<li class="tail">Heels</li>
<li class="tail">Sneakers</li>
<li class="tail">Casual Shoes</li>
<li class="tail">Loafers</li>
<li class="head">ATHLEISURE</li>
<li class="head">INNER WEAR</li>
<li class="head">SLEEPWEAR</li>
<li class="head">MASKS</li>
</ul>
</div>
</li></a
>
<!-- women section end ---------------->
<!-- men section start -->
<li>
MEN
<div id="innerdiv"></div>
</li>
<!-- men section end ----------------------->
<!-- kids section start -->
<li>
KID
<div id="innerdiv"></div>
</li>
<!-- women section end ----------------------->
<!-- home section start -->
<li>
HOME
<div id="innerdiv"></div>
</li>
<!-- home section end --------------------->
<!-- accessories section start -->
<li>
ACCESSORIES
<div id="innerdiv"></div>
</li>
<!-- accessories section end ---------------->
<!-- brans section start -->
<li class="move">BRANDS</li>
<!-- brans section end ---------------------->
<!-- sale section start -->
<li class="sale">SALE</li>
<!-- sale section end ----------------------->
<!-- search button with icon -->
<div>
<a href=""
><p class="sp">
<span>GREENCARD</span><span class="move">TRACK ORDER</span
><span class="move">STORE LOCATOR </span
><span class="move">CONTACT US</span>
</p></a
>
<input
class="search"
type="text"
placeholder="Search.."
name="search"
/>
<button class="searchicon" type="submit">
<i class="fa fa-search"></i>
</button>
<button id="login" class="btn_design">
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
<!-- <p class="lo">Login</p> -->
</button>
<select id="navprofile" onchange="profile()">
<option value=""></option>
<option value="account">My Account</option>
<option value="order">My Order</option>
<option value="wishlist">My wishlist</option>
<option value="return">Return</option>
</select>
<a href="favPage.html"><button class="btn_design"><i class="fa fa-heart-o" aria-hidden="true"></i>
</button></a>
<a href="cart.html" ><button style="color: #0daa8b;" class="btn_design"><i class="fa fa-shopping-bag" aria-hidden="true"></i></button></a>
</button>
</div>
</ul>
<hr />
<div id="mainContainer">
<div id="leftContainer">
<div id="leftBtnCont">
<button id="leftButton">
<span id="icons" class="material-icons-outlined">category</span
><span>PRODUCT TYPE</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined">percent</span
><span>DISCOUNT</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined">straighten</span
><span>SIZES</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined"
>currency_rupee</span
><span>PRICE</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined">palette</span
><span>COLOR</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined">checkroom</span
><span>OCCASION</span>
</button>
<button id="leftButton">
<span id="icons" class="material-icons-outlined">view_comfy</span
><span>PATTERN</span>
</button>
</div>
</div>
<div id="rightContainer">
<div id="desc">
<h1 style="font-weight: 100">
Latest Fashion Outfits<span class="quantityMain"
>32 Products</span
>
</h1>
<p class="para">
Shop from our finest collection of shirts, t-shirts, dresses, active wear, trousers, jeans.
</p>
<div id="sort">
<span style="margin-top: 12px">Sort:</span>
<span>
<select name="" id="filter" onchange="sorting()">
<option value="lowest">--</option>
<option value="asc">Ascending</option>
<option value="des">Descending</option>
<option value="lowest">Price: lowest first</option>
<option value="highest">Price: highest first</option>
</select>
</span>
</div>
<hr />
</div>
<div id="rimages">
<!-- <div class="img">Hi</div>
<div class="img">HI</div>
<div class="img">HI</div>
<div class="img">HI</div>
<div class="img">HI</div> -->
</div>
</div>
</div>
<!------------------------------------------ Karthick's work ----------------------------------------- -->
<!-- <div id="Kcontainer">
<h1 class="Khead">BLOGS</h1>
</div>
<div id="con">
<div id="Kbox">
<div class="Kbox">
<h1 class="Kh1" >Officially <br> Fashionable</h1>
<p class="Kp">Working from home can be a tempting excuse to lounge in your PJs all day. However, our new normal has taught us to seamlessly combine comfort and fashion. Ace your fashion & ease the look is the mantra to live by.</p>
</div>
<div class="Kbox1">
<img class="Kimg"src="https://pantaloons.imgix.net/img/app/brands/pantaloons/blog_image.jpg?w=450&auto=format" />
</div>
</div>
</div> -->
<!--------email box-->
<div class="Kemail" style="margin-top: 400px;">
<div class="Kebox">
<div>
<p class="Ksp">
<span id="Kspan">GETS</span>
<span id="Kspan" class="Kbold">LATEST OFFERS</span>
<span id="Kspan" > AND</span>
<span id="Kspan" class="Kbold">DEALS</span>
<span id="Kspan" >RIGHT IN YOUR</span>
<span id="Kspan" class="Kbold">INBOX.</span>
</p>
</div>
<div>
<input class="Ketype" tybe="email" placeholder="Enter your email address"/>
<button class="Karrow">
<i class="fa fa-long-arrow-right" aria-hidden="true"></i>
</button>
</div>
</div>
<div style="border: 1px solid rgb(241,241,241);height: 700%;width: 100%;background-color: rgb(241,241,241);">
<div class="Ksicon" >
<div class="Kimgbox" tybe="button">
<a href="easyreturns.html"><i id="Kicon" class="fa fa-refresh" aria-hidden="true"></i>
<div class="Kicontext">EASY RETURNS</div></a>
</div>
<div class="Kimgbox">
<a href="customersupport.html">
<i id="Kicon" class="fa fa-phone" aria-hidden="true"></i>
<div class="Kicontext">CUSTOMER SUPPPORT</div>
</a>
</div>
<div class="Kimgbox">
<a href="freeshiping.html">
<i id="Kicon" class="fa fa-truck" aria-hidden="true"></i>
<div class="Kicontext">FREE SHIPPING</div>
</a>
</div>
<div class="Kimgbox">
<a href="deliveravai.html">
<i id="Kicon" class="fa fa-money" aria-hidden="true"></i>
<div class="Kicontext">CASH ON DELVIRY AVAILABLE</div>
</a>
</div>
<div class="Kimgbox">
<a href="security.html">
<i id="Kicon" class="fa fa-lock" aria-hidden="true"></i>
<div class="Kicontext">SECURE PAYMENT</div>
</a>
</div>
<div class="Kimgbox">
<a href="alteration.html">
<i id="Kicon" class="fa fa-exchange" aria-hidden="true"></i>
<div class="Kicontext">FREE ALTERATION</div>
</a>
</div>
<div class="Kimgbox" id="Kimgbox">
<a href="refund.html">
<div class="Kicontext" id="Krefund">REFUND & REFUND POLICY</div>
</a>
</div>
<div class="Kimgbox" id="Kadi">
<a href="adithya.html">
<img src="https://pantaloons.imgix.net/img/app/others/birlalogo.jpg?w=97&auto=format" />
</a>
</div>
</div>
<div style="background-color: rgb(241,241,241);">
<hr id="Khr">
<table style="margin-top:50px;margin-left: 20px;background-color: rgb(241,241,241);" >
<tr>
<th class="Ktable1" >MY ACCOUNT</th>
<th class="Ktable1">ABOUT US</th>
<th class="Ktable1"> POLICIES</th>
<th class="Ktable1">CONTACT US</th>
<th class="Ktable1">MEN</th>
<th class="Ktable1">WOMEN</th>
<th class="Ktable1">KIDS</th>
</tr>
<tr >
<td class="Ktable">
<a class="Ktd" href="order.html">My Order</a>
</td>
<td class="Ktable">
<a class="Ktd" href="barand.html">OFFICIAL BRAND STORE</a>
</td>
<td class="table">
<a class="Ktd" href="exchange.html">RETURNS & EXCHANGE POLICY</a>
</td>
<td class="Ktable">
<a class="Ktd" href="store_locator.html">STORE LOCATOR</a>
</td>
<td class="Ktable">
<a class="Ktd" href="shirt.html">SHIRTS</a>
</td>
<td class="table">
<a class="Ktd" href="w_tops.html">TEES & TOPS</a>
</td>
<td class="Ktable">
<a class="Ktd" href="k_tops.html">TEES & TOPS</a>
</td>
</tr>
<tr>
<td class="Ktable">
<a class="Ktd" href="myaddress.html">MY ADDRESSES</a>
</td>
<td class="Ktable">
<a class="Ktd" href="paymentoption.html">PAYMENT OPTIONS</a>
</td>
<td class="Ktable">
<a class="Ktd" href="termsuse.html">TERMS & CONDITIONS OF USE</a>
</td>
<td class="Ktable">
<a class="Ktd" href="jackets.html">JACKETS</a>
</td>
<td class="Ktable">
<a class="Ktd" href="blouse.html">SHIRTS AND BLOUSES</a>
</td>
<td class="Ktable">
<a class="Ktd" href="bermudas.html">SHIRTS AND BERMUDAS</a>
</td>
</tr>
<tr>
<td class="Ktable">
<a class="Ktd" href="mypersonal.html">MY PERSONALINFO</a>
</td>
<td class="Ktable">
<a class="Ktd" href="about.html">ABOUT US</a>
</td>
<td class="Ktable">
<a class="Ktd" href="promtonal.html">PROMOTIONAL T & C</a>
</td>
<td class="Ktable"></td>
<td class="Ktable">
<a class="Ktd" href="achievewear.html">ACHIEVE WEAR</a>
</td>
<td class="Ktable">
<a class="Ktd" href="kurdas.html">KURDAS KURDIS</a>
</td>
<td class="Ktable"></td>
</tr>
<tr>
<td class="Ktable">
<a class="Ktd" href="changepass.html">CHANGE PASSWORD</a>
</td>
<td class="Ktable">
<a class="Ktd" href="investor.html">INVESTOR RELATION</a>
</td>
<td class="Ktable">
<a class="Ktd" href="privacypolicy.html">PRIVACY POLICY</a>
</td>
<td class="Ktable"></td>
<td class="Ktable"></td>
<td class="Ktable">
<a class="Ktd" href="jeans.html">JEANS & JEGGINS</a>
</td>
<td class="Ktable"></td>
</tr>
</table>
<hr id="Khr" style="margin-bottom: 100px;margin-top: 50px;">
</div>
<div>
<div id="Klastbox" >
<h3 id="Klasthead">PANTALOONS- STYLE YOUR CHANGE</h3>
<p id="Klastp">Catering to the discerning and trendy consumer, Pantaloons is a power house of fashion and innovation. With a range of clothing from diverse sub brands that combine elegance and freshness, the unparalleled options are fashion forward and on trend. The collections cover a gamut of ready-to-wear western wear andethnic wear for men, women and kids, in addition to a stunning range ofaccessories for womenand men. Pantaloons houses a repertoire of lifestyle brands that cater to all consumers across a range of multiple occasions. The family concept store has evolved into a fashion destination with a focus of delivering the
<a class="Klasta" href="latsetfashion.html">latest fashion</a> </p>
<h3 id="Klasthead">PANTALOONS- A REPERTOIRE OF BRANDS </h3>
<p id="Klastp">Keeping the consumer’s fashion sensibilities and fashion in mind, Pantaloons has more than 200 brands on offer. Their reputed in-house brands come with their own noteworthy fan following and offers a wide range of brands for men, women and kids with categories including western wear, ethnic wear, formal wear, party wear, active wear and accessories making it a one stop destination for the entire family.</p>
<h3 id="Klasthead">PANTALOONS- FASHIONABLE WOMEN'S WEAR </h3>
<p id="Klastp">The<a class="Klasta" href="partloons.html" style="margin-left: 4px;margin-right: 4px;">Pantaloons men's wear</a>collection caters to all occasions from work wear to festive wear. The exclusive ethnic wear brands include a mix-and-match range by Rangmanch, fusion wear from Akkriti and occasion wear from Trishaa. For the gym-bunnies, Ajile offers a range of stylish active wear, while Honey offers trendy casual wear. Perfect for elegant evening wear, Annabelle offers a range of dresses, skirts, tops and pants.</p>
<h3 id="Klasthead">PANTALOONS- CUTE KIDS' WEAR </h3>
<p id="Klastp">Not forgetting your little ones, Pantaloons also has an adorable collection that caters to toddlers and tweens alike. Starting from 1 month old toddlers to 12 year olds, the portfolio of brands includes infant wear from Chirpie Pie, ethnic wear from Akkriti, and casual wear from Chalk and Poppers. </p>
<div >
<span id="Kspan">
<p id="Klastp">COPYRIGHT ADITYA BIRLA FASHION & RETAIL LIMITED. ALL RIGHTS RESERVED.
<a class="Klasta1" href="privacypolicy.html">PRIVACY POLICY</a>
<a class="Klasta1" href="lastterm.html">TERMS & CONDITIONS</a>
<i id="Kfb" class="fa fa-facebook" aria-hidden="true"></i>
<i id="Ktw" class="fa fa-twitter" aria-hidden="true"></i>
<i id="Kyou" class="fa fa-youtube-play" aria-hidden="true"></i>
<i id="Klin" class="fa fa-linkedin-square" aria-hidden="true"></i>
</p>
</span>
</div>
</div>
</div>
</div>
<!-- <button id="cartBtn">Go to Cart</button> -->
</body>
</html>
<script>
var data = [
{
MRP: 799,
type: "DREAMZ",
dsc: "Printed Pink Nightwear",
discount: 1000,
discountPercentage: 20,
image_url:
"https://pantaloons.imgix.net/img/app/product/4/460891-3190057.jpg?w=313.38000000000005&auto=format",
},
{
MRP: 300,
type: "AJILE",
dsc: "Solid Red Top",
discount: 499,
discountPercentage: 40,
image_url:
"https://pantaloons.imgix.net/img/app/product/4/461730-3202111.jpg?w=313.38000000000005&auto=format",
},
{
MRP: 330,
type: "AJILE",
dsc: "Printed Active Pink Top",
discount: 599,
discountPercentage: 45,
image_url:
"https://pantaloons.imgix.net/img/app/product/3/357852-1790903.jpg?w=313.38000000000005&auto=format",
},
{
MRP: 240,
type: "PEOPLE",
dsc: "Grey Printed T-Shirt",
discount: 399,
discountPercentage: 40,
image_url:
"https://pantaloons.imgix.net/img/app/product/5/564876-4925899.jpg?w=313.38000000000005&auto=format",
},
{
MRP: 200,
type: "PEOPLE",
dsc: "Yellow Solid Top",
discount: 399,
discountPercentage: 50,
image_url:
"https://pantaloons.imgix.net/img/app/product/5/520198-3916635.jpg?w=313.38000000000005&auto=format",
},
{
MRP: 399,
type: "AKKRITI",
dsc: "Indigo Printed Top",
discount: 699,
discountPercentage: 43,
image_url:
"https://pantaloons.imgix.net/img/app/product/5/552793-4523676.jpg?w=313.38000000000005&auto=format",
},
];
// var imgDiv = document.createElement("div");
// imgDiv.setAttribute("id", "img");
showProducts(data)
function sorting(){
var price= document.querySelector("#filter").value;
if(price=="lowest")
{
var com = data.sort(function(a,b){
return a.MRP-b.MRP
})
}
if(price=="highest")
{
var com=data.sort(function(a,b){
return b.MRP-a.MRP
})
}
if(price=="asc")
{
var com=data.sort(function(a,b){
return a.type>b.type?1:b.type>a.type?-1:0
})
}
if(price=="des")
{
var com=data.sort(function(a,b){
return a.type>b.type?-1:b.type>a.type?1:0
})
}
showProducts(com)
}
var cartarr=JSON.parse(localStorage.getItem("datas")) || []
var favarr=JSON.parse(localStorage.getItem("favdata")) || []
// console.log(cartarr);
function showProducts(productArray) {
document.querySelector("#rimages").innerHTML=''
productArray.map(function (item) {
var imgs = document.createElement("img");
imgs.setAttribute("src", item.image_url);
imgs.setAttribute("id", "imageSizing");
var type = document.createElement("p");
type.textContent = item.type;
type.setAttribute("class", "paraStyle");
var description = document.createElement("p");
description.textContent = item.dsc;
description.setAttribute("class", "paraStyle1");
var x = document.createElement("div");
x.setAttribute("id", "x");
var price = document.createElement("span");
price.textContent = "₹" + item.MRP;
price.setAttribute("class", "pricing");
var disc = document.createElement("span");
disc.textContent = "₹" + item.discount;
disc.setAttribute("id", "discStyle");
var discPer = document.createElement("span");
discPer.textContent = item.discountPercentage + "% OFF";
discPer.setAttribute("id", "discPerStyle");
x.append(price, disc, discPer);
var btn = document.createElement("button");
btn.textContent = "Add To Cart";
var imgDiv = document.createElement("div");
imgDiv.setAttribute("id", "img");
var btnsDiv = document.createElement("div");
btnsDiv.setAttribute("id", "btnsDiv")
var cart = document.createElement("button");
cart.addEventListener("click", function(){
addToCart(item)
})
cart.setAttribute("id", "AddToCart")
cart.textContent = "Add To Cart";
var btnfav=document.createElement("button")
btnfav.textContent="Add to Fav";
btnfav.setAttribute("id", "favBtn")
btnfav.addEventListener("click",function(){
fav(item)
})
btnsDiv.append(cart,btnfav);
imgDiv.append(imgs, type, description, x, btnsDiv);
document.getElementById("rimages").append(imgDiv);
// imgDiv.append(x);
});
// function cartRedirecting(){
// window.location.href = "CartPage.html"
// }
}
function addToCart(item)
{
if(cartarr.includes(item))
{
alert("already add to chart")
}
else{
alert("Added")
}
cartarr.push(item)
localStorage.setItem("datas",JSON.stringify(cartarr))
}
// document.querySelector("#cartBtn").addEventListener("click",function(){
// window.location.href="cart.html"
// })
// var favItems = document.getElementById("favId").addEventListener("click", fav)
function fav(item)
{
if(favarr.includes(item))
{
alert("already added to wishlist")
}
else{
alert("Added to wishlist")
}
favarr.push(item)
localStorage.setItem("favdata",JSON.stringify(favarr))
}
</script>