-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSALES3.html
685 lines (645 loc) · 27.4 KB
/
SALES3.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
<!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 rel="stylesheet" href="SALES3.css">
<script src="https://kit.fontawesome.com/f6dcf461c1.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="topp">
<div id="categoryy">
<a href="index.html">WOMEN</a>
<a href="Myteresa.html">MEN</a>
<a href="LANDING3.html">KIDS</a>
<a href="LANDING.html">LIFE</a>
</div>
<div id="sign">
<div id="account"><a href="myAccount.html">Signup for Newsletter</a> </div>
<div id="account"><a href="myAccount.html">My Account</a></div>
<div> <a href="AddToCart.html"> My Wishlist ♡</a></div>
<div>India | English</div>
</div>
</div>
<!-- Navbar -->
<div id="body">
<div><img id="logo" src="https://www.mytheresa.com/skin/frontend/mytheresa/default/images/logo.png?v=20220614T092128" alt="Error"></div>
<div id="miniNav">
<div>
<a href="NEW ARRIVAL3.html"><p>NEW ARRIVALS</p></a>
<a href=""><p>DESIGNERS</p></a>
<a href="GIRLS3.html"><p>GIRLS</p></a>
<a href="BOYS3.html"><p>BOYS</p></a>
<a href="BABY3.html"><p>BABY</p></a>
<a href="SHOES3.html"><p>SHOES</p></a>
<a href="VACATION3.html"><p>VACATION SHOP</p></a>
<a href="SALES3.html"><p>SALE</p></a>
</div>
<div id="searchBar">
<form>
<input type="text" placeholder="Search for....">
<button><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAjVBMVEX///8AAADKysrHx8fNzc2IiIj4+Pjq6ur7+/vt7e3X19eAgIDn5+fc3NzExMTj4+MbGxuoqKh4eHiRkZFKSkpZWVm1tbUrKysiIiLz8/NwcHBeXl6cnJyurq48PDwMDAxLS0soKCh8fHygoKC7u7s4ODhlZWUeHh4xMTE6OjoLCwsVFRVTU1NCQkKVlZV44B4NAAAH3ElEQVR4nO2dbXvqLAyAfWt1depcfa0653TTzen//3nP9jghlba2mgQO5f54rjNCJIUEAqlUHA6Hw+FwOBwOxz9LM2h0N4v+er7uLzbdRtDU3SFEOqNwuKqqrIbhKNDduXtpbryXBN0gL97oXx1Ov+Edrmh35tBu+Lq7W5hu9JRTvRNPUVd3l4vQaRfS7ky7o7vj+WiNXm/S75fByHxrnc7HN+v3y+Q41a1CJn54l3onPHPH0T9m9Pvp/TCM2l44D712NDy8Z01ER0N1HKV0ejt7WwS9S+Ob9oJRe5b2JwstGmQTJC9+UV/RDTLt9Z8T/+5gmrfT8hJ6OT42cv1xcEyandot4j4Xoj5ROrgLi4xCEO6UFp7qZP0tjDqAH/WiI9CqfSiteCS9LU5Pca7bvZsaelR+qZfbGkJmo/zyt39ALWU93SD29EYu++Q93NXc9HIcdVtqaxbvz+x+s+pdfI8zrXPq9D3Wmad8q8M1GttYq+8aPdUelUHFTfVL23wTfMF+7HAG8K/p2PL4pcnBCWI/dIT7ubSiWOtaVOzEuoDvKo9i7WsI/2MKrih+485Kq4q9PZD+QjPbTaGztH8kkZGKD6OBIZkYuDROeMNiGAy2CeXATbsDoRwFONHRulVwZYxIJcXosykYV7FPLEvQYDLRE1BFTKcigykQ+cwgD27k8Mw2IJz4ZhEI9tBnHPLARzjmCWx84KQyfIognvjiOvhrAhefPs74lsL4zsO6jB/GQso6UssCgPOCEa0kX0pidTGgE0U7n4KZ+74dp6I0peA3SjkgZCI2FgUQLlIGUnIpZFmYYgw5ZAN3jT9DBNgpnfM2EDLmZDLSmQvpAyoRNSFiSyUikwn5IMoh1JP7Ik9IXmkEyN1DHodbRbrgNLuLMrDXdXRZFz0gCfcfqW0kB/I7oZjLpWuoLwNNeuAEk3lLBGkr/MZzI06ldvhty6VCZ66LDG3wFwzpc+s8sZSxDf4OkWiafnctC7lFjN2y/Mb1JivJRRl7vhOLIW/gqyJOa7CXRJFiFyI3XBSR+4E8pUvj0J2pLINw3M9FRC5j1GZvQUQYuIu+CLD1zqS/iNkUNdSfih9O/50BMatPME+epfEjNnorJFOCOKsgcAcL83nuDOYZhrB93Xl0v3gUnRHBNfcuaRJi5xRxQ6olTJ855SMRGYrjtfkg2jThIoQ8g8Y7WBCxIdlGZSHEN1NDa1LEnRzH9tcRUQBeLC58NhOmUjCZ4vltIr5nS2jJpI9vUsIrNeOOh5gW8BLqRDa37tDphAjlPtGaXJ6bNOKCh/SSn9CaNGrBhwkvaE0apiGBU3NukC1FKJvmkkzDPW/+RRoPe6dhYcpjpfbPNIZoSLBa2L/im+q1vaA1ab/nbX/0ZGoEvEZrUuxiMN5ayYBgF8P+nSj7dxPt3xGWVxCM2tV/RWzUzJMZzNNasQLpP+QGHhbm6mzSCamcFDC9ZHnKrd9voznltj9TwaRsE5GAiZttYk7GkOwJcoKd2PzhvLGWBFXWVwky9+pUxlEQaaTos7po2dYMWkOyoOVyj3/gLu+t2ZrJXhG3ESb4bedGJPJSpJ/Jy3GW3igx7FYQSSgeaR9EOYQ0W2KB9kGUQ0i0KJtzw5Jqz09efdoTSchGPjpMdtVZ3uHUcdP5SD6Esdvq/NuKLLfVwcMmOl8coHs9TeurEeBRFdIg/E3K4c1akP4GcXADXm/hPaWRK1WV+MFWTS/wgNeKyT8P+cHreUWJcpo5AV/W5VoyoEyGdBDwmtmOJ9xvgfeYWTIJwIt0rxzy4CzDswyD+ZTlYB8+tMl0Bg1fhiR9lup/4BOmTC9DViprIJTzdU+87JKrwOcoaV0MOIKsN3YGTIKBl4h49yAP/gqI/iATEysisMRLn8nDI8Nr1/5nNQ7vAXQHPqq/p9gZCvbVS5hVjMnG9zUWin5VzDyvPFxUDkBuPUpSkFvFzhLKRrXUILVoGa+h9uLFRO4ooRMnsT6WHhUvqrDscKTX1epW+gz1spLO8P6QsTlLVkyXiuTVkPQbakJFq9t1fMhZIZJ5FJWqZF+3ViXLX6CVWcWEynLD4oZUGyqthDXln85wZxDW1AKGy7DI1nQnVOsLrurxYFuvin7SBHEIG7lWyCBMqn95KriaPorchloJEgtwbz8W2a5OZ/Ghjt4Pu/OfGaRiaqXV6sFbBNPLPSR/GixSC3dvwca2OYb6Wy1XjXck79/RW9sLj6HXfou+3zP+5zJeLdckFSvTrIrAeQkv42mTDPVnHOfL1P7kIqnasVkq/nyPg9QOXWOQcrBklKH+0vGyalKnsW2nT7vpKuoZxR9jrSWXak7nuZu5Y2+aoZ46lVDFOJmVd3273jhDPdHreq9ZK0i1uh88b/L56Yaq+MNDZ+RFgwQ9D5E36hSItIw0VEnLf2xsFv31er5e9xebxqNf/KDMcBUxMNdQ0SiBiiUw1BKoWAJDNc+BQ8cZqg2UQMUSGGoJVCyBobpFwwbMObYhowTfYqkN1RoVS2CoJVCxBIZaAhVLYKjOgbOBUhuqNSqWwFBLoGIJDLUEKqYaqp5S8BSkqGhIwQMUEg11bEa9AyQSVFyZ8DIwIoqhLi0y0RMXozixTsELFceWmegJYKgTKxUEKtr3DZ75M9SVtQr+qWjnN3jmx1D3Vi30KjUblwmHw+FwOBwOh8NhFP8BxfhYVXrDP/oAAAAASUVORK5CYII=" alt="Error"></button>
</form>
</div>
</div>
<div class="blink" ><span>New styles added to our Kids sale</span></div>
<div>
<!-- End of Navbar -->
</div>
<!-- Sort navbar -->
<div id="top">
<div><label><a href="LANDING3.html">kids</a></label><label>/Sale >></label></div>
<div>
<select id="sort">
<option value="Sort by">Sort by</option>
<option value="asc">Price low-to-high</option>
<option value="desc">Price high-to-low</option>
</select>
</div>
</div>
<!-- End of Sort navbar -->
<div id="bottom">
<div id="sidebar">
<p>SALES</p>
<div id="occassion">
<p>Type of wear</p>
<form id="oca">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" name="Swimwear" id="Swimwear" value="clothing">
<label for="Swimwear">Clothing</label><br>
<input type="checkbox" name="BA" id="BA" value="shoes">
<label for="Beach Accessories">Shoes</label><br>
<input type="checkbox" value="sandals">
<label for="Beach Toys">Sandals</label><br>
<input type="checkbox" name="bag" id="bag" value="slides">
<label for="Summer Dresses & Playsuits">Slides</label><br>
<input type="checkbox" name="bag" id="bag" value="bag">
<label for="Summer Dresses & Playsuits">Bag</label><br>
<input type="checkbox" name="bag" id="bag" value="sneakers">
<label for="Summer Dresses & Playsuits">Sneakers</label><br>
<input type="checkbox" name="bag" id="bag" value="socks">
<label for="Summer Dresses & Playsuits">Socks</label><br>
<input type="checkbox" name="bag" id="bag" value="Accessories">
<label for="Summer Dresses & Playsuits">Accessories</label><br>
</form>
</div>
<div id="cat">
<p>Category</p>
<form id="category">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" name="Accessories" id="Accessories" value="boy">
<label for="Accessories">Boy</label><br>
<input type="checkbox" name="Clothing" id="Clothing" value="girl">
<label for="Clothing">Girl</label><br>
<input type="checkbox" name="Shoes" id="Shoes" value="unisex">
<label for="Shoes">Unisex</label><br>
<input type="checkbox" name="bag" id="bag" value="baby">
<label for="bag">Baby</label><br>
</form>
</div>
<div id="brand">
<!-- <p>NEW ARRIVALS</p> -->
<p>Designer</p>
<form id="designer">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" value="CHLOÉ KIDS">
<label for="MARYSIA BUMBY">CHLOÉ KIDS</label><br>
<input type="checkbox" name="BONPOINT" id="BONPOINT" value="GIVENCHY KIDS">
<label for="BONPOINTE">GIVENCHY KIDS</label><br>
<input type="checkbox" name="LIEWOOD" id="MARC JACOBS KIDS" value="MARC JACOBS KIDS">
<label for="LIEWOOD">MARC JACOBS KIDS</label><br>
<input type="checkbox" name="EMPORIO ARMANI KIDS" id="EMPORIO ARMANI KIDS" value="EMPORIO ARMANI KIDS">
<label for="POUPETTE ST BARTH KIDS">EMPORIO ARMANI KIDS</label><br>
<input type="checkbox" name="ZIMMERMANN KIDS" id="ZIMMERMANN KIDS" value="VERSACE KIDS">
<label for="ZIMMERMANN KIDS">VERSACE KIDS</label><br>
<input type="checkbox" name="BURBERRY KIDS" id="OFF-WHITE KIDS" value="OFF-WHITE KIDS">
<label for="BURBERRY KIDS">OFF-WHITE KIDS</label><br>
<input type="checkbox" name="STELLA MCCARTNEY KIDS" id="STELLA MCCARTNEY KIDS" value="MOSCHINO KIDS">
<label for="STELLA MCCARTNEY KIDS">MOSCHINO KIDS</label><br>
<input type="checkbox" name="THE ANIMALS OBSERVATORY" id="THE ANIMALS OBSERVATORY" value="THE ANIMALS OBSERVATORY">
<label for="THE ANIMALS OBSERVATORY">THE ANIMALS OBSERVATORY</label><br>
<input type="checkbox" name="PALM ANGELS KIDS" id="PALM ANGELS KIDS" value="PALM ANGELS KIDS">
<label for="PALM ANGELS KIDS">PALM ANGELS KIDS</label><br>
<input type="checkbox" name="DOLCE&GABBANA KIDS" id="DOLCE&GABBANA KIDS" value="MOLO">
<label for="DOLCE&GABBANA KIDS">MOLO</label><br>
<input type="checkbox" name="MINI RODINI" id="MINI RODINI" value="MINI RODINI">
<label for="MINI RODINI">MINI RODINI</label><br>
</form>
</div>
<div id="color-section">
<p>Colors</p>
<form id="colour">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" name="Beige" id="Beige" value="beige">
<label for="Beige">Beige</label><br>
<input type="checkbox" name="Blue" id="Blue" value="blue">
<label for="Blue">Blue</label><br>
<input type="checkbox" name="Brown" id="Brown" value="brown">
<label for="Brown">Brown</label><br>
<input type="checkbox" name="green" id="Green" value="green">
<label for="Green">Green</label><br>
<input type="checkbox" name="Pink" id="Pink" value="pink">
<label for="Pink">Pink</label><br>
<input type="checkbox" name="Grey" id="Grey" value="grey">
<label for="Grey">Grey</label><br>
<input type="checkbox" name="Orange" id="Orange" value="orange">
<label for="Orange">Orange</label><br>
<input type="checkbox" name="Purple" id="Purple" value="purple">
<label for="Purple">Purple</label><br>
<input type="checkbox" name="Black" id="Black" value="black">
<label for="Black">Black</label><br>
<input type="checkbox" name="White" id="White" value="white">
<label for="White">White</label><br>
<input type="checkbox" name="Multicoloured" id="Multicoloured" value="multicoloured">
<label for="Multicoloured">Multicoloured</label><br>
</form>
</div>
</div>
<div id="display">
</div>
</div>
<footer id="FooterDetails">
<div>
<p>SERVICE & SECURITY</p>
<p>✓ Fast delivery</p>
<p>Delivery within 2 business days</p>
<p>✓ Free returns within 30 days</p>
<p>Convenient return service</p>
<p>✓ Secure payment and data protection</p>
<p>SSL encryption for secure transactions and personal data</p>
</div>
<div>
<p>MYTHERESA</p>
<p>About us</p>
<p> Trust & services</p>
<p>Sustainability</p>
<p> Press</p>
<p> Careers</p>
<p> Investor Relations</p>
<p> Affiliates</p>
</div>
<div>
<p>CUSTOMER CARE</p>
<p>Contact us</p>
<p>Shipping information</p>
<p>Secure payment</p>
<p>Exchanges</p>
<p>Returns</p>
<p>After sale service</p>
<p>Gift card</p>
</div>
<div>
<p>GET TREND UPDATES, STYLE TIPS AND MORE</p>
<input type="email" placeholder="your email address here"><label for="Signup">SIGNUP</label>
<p>Wishlist ♡</p>
<p>Receive personal notifications</p>
<p>Follow us on</p>
<div id="FatherLogo">
<div><img id="LoGo"
src="https://www.abacuspg.co.uk/wp-content/uploads/2016/06/linkedin-logo_318-50643.jpg"
alt="x-icon"></div>
<div><img id="LoGo" src="https://www.billingschamber.com/media/facebook.png" alt="x-icon"></div>
<div><img id="LoGo" src="https://clipart.info/images/ccovers/1534043160twitter-logo-png-black.png"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/Pinterest_font_awesome.svg/512px-Pinterest_font_awesome.svg.png?20170908192524"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://i.etsystatic.com/26102212/r/il/a42611/3201074382/il_1140xN.3201074382_hy4l.jpg"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://www.nicepng.com/png/full/14-147850_youtube-play-button-youtube-play-button-black.png"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://static.vecteezy.com/system/resources/previews/001/195/120/non_2x/camera-film-polaroid-png.png"
alt="x-icon"></div>
<!-- <div><img id="LoGo" src="" alt="x-icon"></div>
<div><img id="LoGo" src="" alt="x-icon"></div> -->
</div>
</div>
</footer>
<footer id="LastFooter">
<div id="img">
<p>payment methods:</p><label>
<img src="https://www.wisdom-drops.com/wp-content/uploads/2017/02/paypal-logo-300x117.png" alt="paypal">
</label>
</div>
<div>
copyright © 2006-2022 mytheresa.com
</div>
<div>
<a href="https://www.mytheresa.com/int_en/service/terms-conditions/">terms of use</a>
<a href="https://www.mytheresa.com/int_en/service/privacy-policy/">privacy-policy</a>
<a href="https://www.mytheresa.com/int_en/service/imprint/">imprint</a>
</div>
<div id="imgg1">
<p>delivered by:</p><label id="im">
<img id="imgg2" src="https://assets.dpdhl-brands.com/guides/dhl/guides/design-basics/logo-and-claim/logo/versions-01.png" alt="dhl">
</label>
</div>
</footer>
</body>
</html>
<script>
let sale_data=[{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/a7/P00650317.jpg",
brand: "CHLOÉ KIDS",
name:"Printed cotton dress",
price:115,
cat:"clothing",
color:"pink",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/97/P00650544.jpg",
brand: "CHLOÉ KIDS",
name:"Logo embroidered espadrilles",
price:145,
cat:"shoes",
color:"beige",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/67/P00650062.jpg",
brand: "CHLOÉ KIDS",
name:"Embroidered floral blouse",
price:155,
cat:"clothing",
color:"multicoloured",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/fb/P00652137.jpg",
brand: "GIVENCHY KIDS",
name:"Logo cotton-blend shorts",
price:135,
cat:"clothing",
color:"orange",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/87/P00650549.jpg",
brand: "CHLOÉ KIDS",
name:"Leather sandals",
price:209,
cat:"sandals",
color:"brown",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/48/P00650876.jpg",
brand: "MARC JACOBS KIDS",
name:"Printed cotton shorts",
price:55,
cat:"clothing",
color:"multicoloured",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/8a/P00545750.jpg",
brand: "MINI RODINI",
name:"Baby set of 2 onesies",
price:89,
cat:"clothing",
color:"multicoloured",
type:"baby",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/fc/P00657926.jpg",
brand: "EMPORIO ARMANI KIDS",
name:"Baby printed cotton onesie, hat, bib and socks set",
price:199,
cat:"clothing",
color:"grey",
type:"baby",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/73/P00643441_d2.jpg",
brand: "VERSACE KIDS",
name:"Medusa faux fur slides",
price:235,
cat:"slides",
color:"pink",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/7a/P00655226.jpg",
brand: "OFF-WHITE KIDS",
name:"Logo tote",
price:195,
cat:"bag",
color:"red",
type:"unisex",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/f4/P00655161.jpg",
brand: "MOSCHINO KIDS",
name:"Baby set of 2 printed cotton bodysuits",
price:99,
cat:"clothing",
color:"multicolured",
type:"baby",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/1a/P00641576.jpg",
brand: "PALM ANGELS KIDS",
name:"Leather sneakers",
price:175,
cat:"sneakers",
color:"white",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/74/P00655188.jpg",
brand: "OFF-WHITE KIDS",
name:"Printed cotton T-shirt dress",
price:285,
cat:"clothing",
color:"black",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/c9/P00630783.jpg",
brand: "MINI RODINI",
name:"x Universal Pictures International® Set of 3 E.T cotton-blend socks",
price:35,
cat:"socks",
color:"multicoloured",
type:"unisex",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/be/P00650813.jpg",
brand: "MARC JACOBS KIDS",
name:"Printed tiered cotton dress",
price:69,
cat:"clothing",
color:"blue",
type:"girl",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/60/P00664517.jpg",
brand: "MINI RODINI",
name:"Printed cotton sweatshirt",
price:49,
cat:"clothing",
color:"beige",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/37/P00648229.jpg",
brand: "MOLO",
name:"Mika printed cotton sweatshirt",
price:39,
cat:"clothing",
color:"purple",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/ea/P00655118.jpg",
brand: "MOSCHINO KIDS",
name:"x Minions© Baby printed cotton-blend bodysuit",
price:105,
cat:"clothing",
color:"blue",
type:"baby",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/9d/P00659383_d2.jpg",
brand: "THE ANIMALS OBSERVATORY",
name:"Hamster cotton baseball hat",
price:39,
cat:"Accessories",
color:"purple",
type:"unisex",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/0e/P00647265.jpg",
brand: "MOLO",
name:"Magni tie-dye cotton sweater",
price:49,
cat:"clothing",
color:"green",
type:"boy",
qty:1
},{
img:"https://img.mytheresa.com/560/560/33/jpeg/catalog/product/c7/P00650323.jpg",
brand: "MOLO",
name:"SELF-PORTRAIT KIDS",
price:185,
cat:"clothing",
color:"green",
type:"girl",
qty:1
}]
let saleData=JSON.parse(localStorage.getItem("kids-NewArr"))||[]
document.querySelector("#sort").addEventListener("change",function(){
sortMe(sale_data)
})
function sortMe(sale_data)
{
let req = document.querySelector("#sort").value;
if(req=="asc")
{
let asc=sale_data.sort(function(a,b){
if(a.price>b.price) return 1
if(a.price<b.price) return -1
return 0
})
displayProducts(asc)
}
else if(req=="desc")
{
let desc=sale_data.sort(function(a,b){
if(a.price>b.price) return -1
if(a.price<b.price) return 1
return 0
})
displayProducts(desc)
}
}
displayProducts(sale_data)
function displayProducts(sale_data)
{
document.querySelector("#display").innerHTML=""
sale_data.forEach(function(el){
let child_div=document.createElement("div")
let holder=document.createElement("div")
holder.setAttribute("class","holder")
let wish = document.createElement("button")
let heart = document.createElement("i")
heart.setAttribute("class","fas fa-heart")
wish.append(heart)
wish.style.color="grey"
wish.setAttribute("class","btn1")
wish.addEventListener("click",function(){
if(toggle(el,wish)==true)
{
alert("Item already extists in wishlist")
}
else
{
if(wish.style.color=="grey")
{
wish.style.color="red"
}
else
{
wish.style.color="grey"
}
saleData.push(el)
alert("added")
localStorage.setItem("kids-NewArr",JSON.stringify(saleData))
}
})
holder.append(wish)
let img = document.createElement("img")
img.setAttribute("src",el.img)
let brand = document.createElement("p")
brand.innerText=el.brand;
let name=document.createElement("p")
name.innerText=el.name;
let price=document.createElement("p")
price.innerText="€"+" "+el.price;
child_div.append(holder,img,brand,name,price)
document.querySelector("#display").append(child_div)
});
}
function toggle(el,wish)
{
let filtered= saleData.filter(function(elem){
return el.name==elem.name
})
if(filtered.length>0)
{
return true
}
else
{
return false
}
}
let sorting = document.querySelectorAll("#colour>input")
console.log(sorting)
for(let i=0;i<sorting.length;i++)
{
let c = sorting[i].value
sorting[i].addEventListener("click",function(){
colourSort(c)
})
}
function colourSort(c)
{
if(c==="All")
{
displayProducts(sale_data)
}
else
{
let filtered=sale_data.filter(function(el){
return el.color==c
})
if(filtered.length==0)
{
alert("No products found")
}
else
{
displayProducts(filtered)
}
}
}
let sortingBrand = document.querySelectorAll("#designer>input")
for(let i=0;i<sortingBrand.length;i++)
{
let b = sortingBrand[i].value
sortingBrand[i].addEventListener("click",function(){
brandSort(b)
})
}
function brandSort(b)
{
if(b==="All")
{
displayProducts(sale_data)
}
else
{
let brandFilter=sale_data.filter(function(el){
return el.brand==b
})
if(brandFilter.length==0)
{
alert("No products found")
}
else
{
displayProducts(brandFilter)
}
}
}
let sortingCat = document.querySelectorAll("#category>input")
for(let i=0;i<sortingCat.length;i++)
{
let s = sortingCat[i].value
sortingCat[i].addEventListener("click",function(){
typeSort(s)
})
}
function typeSort(s)
{
if(s==="All")
{
displayProducts(sale_data)
}
else
{
let catFilter=sale_data.filter(function(el){
return el.type==s
})
if(catFilter.length==0)
{
alert("No products found")
}
else
{
displayProducts(catFilter)
}
}
}
let sortingOca = document.querySelectorAll("#oca>input")
console.log(sortingOca)
for(let i=0;i<sortingOca.length;i++)
{
let o = sortingOca[i].value
sortingOca[i].addEventListener("click",function(){
catSort(o)
})
}
function catSort(o)
{
if(o==="All")
{
displayProducts(sale_data)
}
else
{
let ocaFilter=sale_data.filter(function(el){
return el.cat==o
})
if(ocaFilter.length==0)
{
alert("No products found")
}
else
{
displayProducts(ocaFilter)
}
}
}
</script>