-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoman.html
1685 lines (1363 loc) · 55.6 KB
/
woman.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
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
999
1000
<!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="./styles/woman.css">
</head>
<body style="background-color: #ffffff;" id="body">
<div id="container">
<div id="header">
<!-- ham moving function myFunction(this) -->
<div id="ham" onclick=" openNav()">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div id="zaraheader" onclick="headclick()">
<!-- <div>Z</div>
<div>A</div>
<div>R</div>
<div>A</div> -->
<div><a href="zarahome.html"><img class="headerimg" src="https://1000logos.net/wp-content/uploads/2017/05/Zara-log%D0%BE-720x303.png"></a></div>
</div>
<div id="search">
<a href="SEARCh.html" >SEARCH</a>
<div></div>
</div>
<div id="logbox">
<div id="loggin"><a href="login.html">LOG IN</a></div>
<div id="help"><a href="Help.html">HELP</a></div>
<div id="cart"> <a href="zara_cart.html" id="checkcountcart">CART(0)</a></div>
</div>
</div>
<div id="picbox">
<div id="container_woman">
<div id="header_Pavan"></div>
<div id="dresses"></div>
</div>
<!-- <div id="man"><button class="leftbtn" onclick="plusDivs()">❮</button>
<a href="man.html" id="leftA"> MAN</a>
</div>
<div id="mainimg" onclick="takeme()"><img id="changeimg" src="https://static.zara.net/photos///2021/I/T/1/p/0267/420/800/2/w/750/0267420800_1_1_1.jpg?ts=1632730334059">
<div style="font-size: 13px;">INTRODUCING THE FALL/WINTER 2021 COLLECTION</div>
</div>
<div id="kids"><a href="kids.html" id="rightA">KIDS </a><button class="rightbtn" onclick="plusDivs()"><p>❯</p></button></div>
</div> -->
<!-- continer end -->
</div>
<div id="secondndpage">
<label>JOIN OUR NEWSLETTER</label>
<input id="email" placeholder="ENTER YOUR EMAIL ADDRESS HERE" >
<div class="d4">
<a href="https://www.tiktok.com/@zara" class="hcolor acolor text_size">TIKTOK</a>
<a href="https://www.instagram.com/zara/" class="hcolor acolor text_size">INSTAGRAM</a>
<a href="https://www.facebook.com/Zara" class="hcolor acolor text_size">FACEBOOK</a>
<a href="https://twitter.com/ZARA" class="hcolor acolor text_size">TWITTER</a>
<a href="https://es.pinterest.com/zaraofficial" class="hcolor acolor text_size">PINTEREST</a>
<a href="http://www.youtube.com/user/zara" class="hcolor acolor text_size">YOUTUBE</a>
</div>
<div class="d5">
<h5 class="textmargin">NAME AND ADDRESS OF THE MANUFATURE</h5>
<h5 class="textmargin">INDUSTRIA DE DISENO TEXTTIL, S.A. (INDITEX, S.A.)</h5>
<h5 class="textmargin">AVENDIA DE LA DIPUTACION, EDIFICIO INDITEX, 15143, ARTEIXO (A CORUNA), SPAIN</h5>
</div>
</div>
<!-- sidebarstart -->
<div id="mySidebar" class="sidebar">
<button href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</button>
<button onclick="myFunction()" id="sidezara" class="dropdown" >ZARA ATHLETICZ
<!-- dropdownstart -->
<!-- <div class="dropdown"> -->
<!-- <button onclick="myFunction()" class="dropbtn">Dropdown</button> -->
<div id="myDropdown" class="dropdown-content">
<a href="man.html">ABOUT</a>
<a href="man.html">COLLECTION</a>
<a href="man.html">STORIES</a>
<a href="man.html">EXPERIENCE</a>
<a href="man.html">STORES</a>
</div>
<!-- </div> -->
<!-- dropdownend -->
</button>
<button id="sidewoman" class="dropdown2" onclick="myFunction2()" >WOMAN
<div id="myDropdown2" class="dropdown-content2">
<a href="woman.html">COLLECTION</a>
<a href="woman.html"> NIGHT POWER COLLECTION <b style="font-size: 8px;">NEW</b></a>
<a href="woman.html">BLAZERS</a>
<a href="woman.html">DRESSES | JUMPSUITS</a>
<a href="woman.html">TOPS|BODYSUITS</a>
<a href="woman.html">SHIRTS</a>
<a href="woman.html">TROUSERS</a>
<a href="woman.html">T-SHIRTS</a>
<a href="woman.html">JEANS</a>
<a href="woman.html">SKIRTS | SHORTS</a>
<a href="woman.html">CO-ORD SETS</a>
<a href="woman.html">SUITS</a>
<a href="woman.html">KNITWEAR</a>
<a href="woman.html">SWEATSHIRTS</a>
</div>
</button>
<button id="sideman" class="dropdown3" onclick="myFunction3()" >MAN
<div id="myDropdown3" class="dropdown-content3">
<a href="kids.html">NEW</a>
<a href="kids.html"> ZARA ATHALETICZ <b style="font-size: 8px;">NEW</b></a>
<a href="kids.html">COLLECTION</a>
<a href="kids.html">HERITAGE <b style="font-size: 8px;">NEW</b></a>
<a href="kids.html">JACKETS</a>
<a href="kids.html">OVERSHIRTS</a>
<a href="kids.html"> GILETS</a>
<a href="kids.html">BLAZERS</a>
<a href="kids.html">SUITS</a>
<a href="kids.html">T-SHIRTS</a>
<a href="kids.html">HOODIES | SWEATSHIRTS</a>
<a href="kids.html">TRACKSUITS</a>
<a href="kids.html">KNITWEAR</a>
<a href="kids.html">POLO SHIRTS</a>
</div>
</button>
<button id="sidekids" class="dropdown4" onclick="myFunction4()">KIDS
<div id="myDropdown4" class="dropdown-content4">
<a href="Shoes.html">GIRL | 6 - 14 YEARS</a>
<a href="Shoes.html"> BOY | 6 - 14 YEARS</a>
<a href="Shoes.html"> BABY GIRL | 6 MONTHS - 5 YEARS</a>
<a href="Shoes.html">BABY BOY | 6 MONTHS - 5 YEARS</a>
<a href="Shoes.html">ACCESSORIES</a>
<a href="Shoes.html">ZARASERIES</a>
<a href="Shoes.html">BESTSELLERS <b style="font-size: 8px;">NEW</b></a>
</div>
</button>
<button id="sideshoes" class="dropdown5" onclick="myFunction5()">SHOE&BAGS
<div id="myDropdown5" class="dropdown-content5">
<a href="#home">WOMAN</a>
<a href="login.html"> MAN</a>
<a href="#contact">KIDS</a>
</div>
</button>
<button id="sidejoininfo" style="margin-top: 15px;">JOIN INFO</button>
<button id="sideinfo">COVID 19 INFO</button>
<button id="sideinfo" style="margin-top: 15px;">+INFO</button>
</div>
<!-- <div id="main">
<button class="openbtn" onclick="openNav()">☰ Open Sidebar</button>
<h2>Collapsed Sidebar</h2>
<p>Click on the hamburger menu/bar icon to open the sidebar, and push this content to the right.</p>
</div> -->
<!-- sidebarend -->
<script>
function myFunction(x) {
x.classList.toggle("change");
}
function headclick(){
window.location.href="man.html"
}
var changeimg=document.getElementById("changeimg");
var imgbox=document.getElementById("mainimg")
var imgdata=["https://static.zara.net/photos///2021/I/T/1/p/0267/420/800/2/w/750/0267420800_1_1_1.jpg?ts=1632730334059",
"https://static.zara.net/photos///2021/I/T/2/p/0639/644/707/2/w/532/0639644707_15_1_1.jpg?ts=1632389495487",
"https://static.zara.net/photos///2021/I/0/3/p/6357/494/801/202/w/448/6357494801_15_1_1.jpg?ts=1632394213709",
"https://static.zara.net/photos///contents/mkt/spots/aw21-north-athleticz-newsletter/layout-figma-athleticz-newsletter//aw21-north-athleticz-newsletter.layout-figma-athleticz-newsletter.desktop-6f6583d207ff3a38f91a0a067fb9d2ce3278ae03-FILL-1.529_0.jpg?ts=1632756031442&imwidth=1440"]
var i=1;
var leftA=document.getElementById("leftA")
var rightA=document.getElementById("rightA");
var body=document.getElementById("container")
function plusDivs(){
if(i==1){
leftA.textContent="ZARA ATHALETICS";
leftA.href="athelatics.html";
rightA.href="woman.html";
rightA.textContent="WOMAN";
imgbox.style.width="650px";
imgbox.onclick=function(){
window.location.href="man.html"
}
}
else if(i===2){
leftA.textContent="MAN";
leftA.href="man.html";
rightA.textContent="WOMAN";
rightA.href="woman.html";
imgbox.style.width="600px";
imgbox.onclick=function(){
window.location.href="kids.html"
}
}
else if(i==3){
leftA.textContent="WOMAN";
rightA.textContent="KIDS";
leftA.href="woman.html";
rightA.href="kids.html";
imgbox.style.width="100%";
imgbox.style.textOverflow="cover"
body.style.backgroundColor="black";
body.style.color="white"
changeimg.style.marginTop="10px"
changeimg.style.height=""
imgbox.onclick=function(){
window.location.href="Athelatics.html"
}
}
else{
leftA.textContent="MAN";
rightA.textContent="KIDS";
leftA.href="man.html";
rightA.href="kids.html";
imgbox.style.width="570px";
body.style.backgroundColor="white";
body.style.color="black"
changeimg.style.marginTop="20%";
imgbox.onclick=function(){
window.location.href="woman.html"
}
}
if(i>3){
i=0;
}
if(i>=0){
changeimg.src=imgdata[i];
console.log(i)
i++;
}
}
function takeme(){
window.location.href="woman.html";
}
//sidebarstart
function openNav() {
document.getElementById("mySidebar").style.width = "180px";
document.getElementById("body").style.marginLeft = "30px";
document.getElementById("container").style.opacity="0.1"
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.getElementById("body").style.marginLeft= "4px";
document.getElementById("container").style.opacity="1"
}
// sidebarend
// dropdownstart
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('#sidezara')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function myFunction2() {
document.getElementById("myDropdown2").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('#sidewoman')) {
var dropdowns = document.getElementsByClassName("dropdown-content2");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function myFunction3() {
document.getElementById("myDropdown3").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('#sideman')) {
var dropdowns = document.getElementsByClassName("dropdown-content3");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function myFunction4() {
document.getElementById("myDropdown4").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('#sidekids')) {
var dropdowns = document.getElementsByClassName("dropdown-content4");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function myFunction5() {
document.getElementById("myDropdown5").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('#sideshoes')) {
var dropdowns = document.getElementsByClassName("dropdown-content5");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
// dropdown end
// checkcountcart
var formdata= JSON.parse(localStorage.getItem('Zara_cart_dresses'))
var checkcountcart= document.getElementById("checkcountcart")
if(localStorage.getItem('Zara_cart_dresses')!==null){
checkcountcart.textContent="CART("+formdata.length+")"}
// woman page
let dress1 = [
{
img : "https://static.zara.net/photos///2021/I/T/1/p/0267/420/800/2/w/423/0267420800_1_1_1.jpg?ts=1632730334059"
// img : "https://static.zara.net/photos///2021/I/T/1/p/0267/420/800/2/w/613/0267420800_1_1_1.jpg?ts=1632730334059"
}
];
let dress2 = [
{
img : "https://static.zara.net/photos///2021/I/T/1/p/0909/670/613/2/w/423/0909670613_1_1_1.jpg?ts=1632477721462"
}
];
let dress3 = [
{
img : "https://static.zara.net/photos///2021/I/T/1/p/0900/881/800/2/w/423/0900881800_1_1_1.jpg?ts=1632477737123"
}
];
let dress4 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/9098/818/800/2/w/866/9098818800_9_1_1.jpg?ts=1632486659469",
name : "SHINY LONG DRESS LIMITED EDITION" ,
price : "7990",
colour : "Black",
size : "M"
}
];
let dress5 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2674/207/800/2/w/206/2674207800_1_1_1.jpg?ts=1632473548410",
name : "TEXTURED DRESS - LIMITED EDITION" ,
price : "7990",
colour : "Black",
size : "L"
}
];
let dress6 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/9096/701/613/2/w/206/9096701613_1_1_1.jpg?ts=1632473606461",
name : "RUFFLED DRESS LIMITED EDITION" ,
price : "7990",
colour : "Beige-pink",
size : "S"
}
];
let dress7 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2674/207/800/3/w/206/2674207800_2_1_1.jpg?ts=1632473534451",
name : "TEXTURED DRESS - LIMITED EDITION" ,
price : "7990",
colour : "Black",
size : "M"
}
];
let dress8= [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/9098/818/800/23/w/206/9098818800_15_1_1.jpg?ts=1632729775177",
name : "SHINY LONG DRESS LIMITED EDITION" ,
price : "7990",
colour : "Black",
size : "XS"
}
];
let dress9 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2674/207/800/2/w/206/2674207800_15_1_1.jpg?ts=1632468648518",
name : "TEXTURED DRESS - LIMITED EDITION" ,
price : "7990",
colour : "Black",
size : "M"
}
];
let dress10 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/9096/701/613/2/w/206/9096701613_15_1_1.jpg?ts=1632468652403",
name : "RUFFLED DRESS LIMITED EDITION" ,
price : "7990",
colour : "Beige-pink",
size : "L"
}
];
let dress11 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2298/221/800/2/w/368/2298221800_2_1_1.jpg?ts=1633001230266",
name : "MINI DRESS WITH DRAPED DETAIL" ,
price : "2990",
colour : "Black",
size : "M"
}
];
let dress12 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2298/160/630/2/w/563/2298160630_1_1_1.jpg?ts=1633001224804",
name : "MINI DRESS WITH BELT" ,
price : "2990",
colour : "Fuchsia",
size : "S"
}
];
let dress13 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/9012/888/800/2/w/206/9012888800_6_1_1.jpg?ts=1632297060385",
name : "SHIRT DRESS WITH PANELS" ,
price : "2990",
colour : "Khaki",
size : "L"
}
];
let dress14 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/3564/198/420/2/w/206/3564198420_6_1_1.jpg?ts=1632399342534",
name : "SATIN DRESS WITH RHINESTONE CHAIN" ,
price : "2990",
colour : "Bluish",
size : "M"
}
];
let dress15 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2157/222/044/2/w/206/2157222044_6_1_1.jpg?ts=1632392580987",
name : "TEXTURED RUFFLED PINAFORE DRESS" ,
price : "2990",
colour : "Blue/White",
size : "S"
}
];
let dress16 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/2157/227/800/3/w/423/2157227800_2_1_1.jpg?ts=1631264934670",
name : "STRAPPY DRESS WITH RHINESTONE DETAIL" ,
price : "2990",
colour : "Blue/White",
size : "L"
}
];
let dress17 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/0387/156/829/4/w/257/0387156829_1_1_1.jpg?ts=1631264955551",
name : "MINI DRESS WITH DRAPED DETAIL" ,
price : "2990",
colour : "Cobalt",
size : "S"
}
];
let dress18 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/8757/845/829/3/w/257/8757845829_2_1_1.jpg?ts=1631264957958",
name : "SATIN CAMISOLE DRESS" ,
price : "2990",
colour : "Cobalt",
size : "L"
}
];
let dress19 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/0219/816/800/2/w/423/0219816800_2_1_1.jpg?ts=1632901963269",
name : "CUT-OUT PUFF DRESS" ,
price : "2799",
colour : "Black",
size : "M"
}
];
let dress20 = [
{
img : "https://static.zara.net/photos///2021/I/0/1/p/4331/132/050/2/w/423/4331132050_2_1_1.jpg?ts=1632846093555",
name : "LONG CHECKED KNIT DRESS" ,
price : "2990",
colour : "Cobalt",
size : "L"
}
];
if(localStorage.getItem("Zara_cart_dresses") === null) {
localStorage.setItem("Zara_cart_dresses",JSON.stringify([]));
}
let dress = JSON.parse(localStorage.getItem("Zara_cart_dresses"));
let parent = document.getElementById("dresses");
// 1st image
let div1 = document.createElement("div");
let img1 = document.createElement("img");
img1.src = dress1[0].img;
div1.style.width = "90%";
div1.style.margin = "200px";
console.log(img1);
div1.append(img1);
img1.setAttribute("class","dressimg1")
// parent.append(div1);
//2nd image
let div2 = document.createElement("div");
let img2 = document.createElement("img");
img2.src = dress2[0].img;
div2.style.width = "90%";
div2.style.margin = "200px";
img2.setAttribute("class","dressimg1")
div2.append(img2);
// parent.append(div1,div2);
//content
let divc = document.createElement("div");
let divc1 = document.createElement("div");
let divc2 = document.createElement("div");
divc1.textContent = "DRESSES FOR WOMEN";
divc1.setAttribute("class","textformedia")
divc1.style.width = "90%";
divc1.style.margin = " 0px 0px 0px 200px";
style(divc1);
console.log(divc1);
divc2.textContent = "FROM EASY WRAP DRESS STYLES TO BODYCON SLIPS, WOMEN’S DRESSES COME IN ALL NEW SILHOUETTES, PRINTS AND COLOURS THIS SEASON. DISCOVER SOMETHING FOR EVERY OCCASION IN OUR ONLINE COLLECTION; WHETHER YOU’RE AFTER A BASIC SHIRT DRESS FOR WORK, OR A COSY KNITTED DRESS FOR THE WEEKEND. LOOKING FOR A PARTY CLASSIC? TAKE YOUR PICK FROM OUR EDIT OF CHIC LITTLE BLACK DRESSES AND GLAMOROUS MAXI LENGTH GOWNS.";
divc2.style.width = "70%";
divc2.setAttribute("id","textformedia")
divc2.style.margin = " 0px 200px 200px 200px";
style(divc2);
console.log(divc2);
divc.append(divc1,divc2);
console.log(divc);
// 3rd image
let div3 = document.createElement("div");
let img3 = document.createElement("img");
img3.setAttribute("class","dressimg1")
img3.src = dress3[0].img;
div3.style.width = "90%";
div3.style.margin = "200px";
div3.append(img3);
// parent.append(div1,divc,div2,div3);
// 4th image
let div4 = document.createElement("div");
let img4 = document.createElement("img");
img4.src = dress4[0].img;
img4.setAttribute("class","dressimg4")
// function click(e) {
// // e.preventDefault();
// dress.push(dress4[0]);
// }
// img4.addEventListener("click",click());
// data for specific product
let data = [
{
img1:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_1_1_1.jpg?ts=1632485315839",
img2:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_2_1_1.jpg?ts=1632473546580",
img3:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_2_2_1.jpg?ts=1632473557435",
img4:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_2_3_1.jpg?ts=1632473552490",
img5:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_6_1_1.jpg?ts=1631869799256",
img6:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_6_2_1.jpg?ts=1631869789916",
img7:"https://static.zara.net/photos///2021/I/0/1/p/2674/817/800/2/w/563/2674817800_6_3_1.jpg?ts=1631870050142",
},
];
localStorage.setItem("cart", JSON.stringify(data));
// data end
div4.style.width = "90%";
div4.style.margin = "50px 50px 0px 50px";
div4.append(img4);
div4.onclick = function() {
dress.push(dress4[0]);
// var cart= JSON.parse( localStorage.getItem("cart"));
localStorage.setItem("Zara_cart_dresses",JSON.stringify(dress));
window.location.href="specific-prod.html"
let shop = JSON.parse(localStorage.getItem("cart"))
shop[0].img1 = dress4[0].img;
localStorage.setItem("cart",JSON.stringify(shop))
}
// parent.append(div1,divc,div2,div3,div4);
// content2
let divc3 = document.createElement("div");
let divc4 = document.createElement("div");
let divc5 = document.createElement("div");
let divc6 = document.createElement("div");
divc4.textContent = "NEW / SPECIAL EDITION";
divc4.style.width = "90%";
divc4.style.margin = " 0px 0px 0px 50px";
style(divc4);
console.log(divc4);
divc5.textContent = dress4[0].name;
divc5.style.width = "70%";
divc5.style.margin = "0px 0px 0px 50px";
style(divc5);
console.log(divc5);
divc6.textContent = dress4[0].price;
divc6.style.width = "70%";
divc6.style.margin = " 0px 200px 200px 50px";
style(divc6);
console.log(divc6);
divc3.margin = "0px 0px 0px 900px";
divc3.append(divc4,divc5,divc6);
console.log(divc3);
parent.append(div1,divc,div2,div3,div4,divc3);
// ============================================================================================================
// 5th image and content
let div7 = document.createElement("div");
// first part
let div80 = document.createElement("div");
let div8 = document.createElement("div");
let div81 = document.createElement("div");
// first image
let img82 = document.createElement("img");
img82.src = dress5[0].img;
img82.style.width = "90%";
// img82.style.marginLeft = "40%";
// div80.style.width = "90%";
div80.style.margin = "0px 0px 0px 0px";
// div80.append(img82);
// console.log(div80);
// content============================================================================
let divc83 = document.createElement("div");
let divc84 = document.createElement("div");
let divc85 = document.createElement("div");
let divc86 = document.createElement("div");
divc84.textContent = "NEW / SPECIAL EDITION";
divc84.style.width = "90%";
divc84.style.margin = " 0px 0px 0px 0px";
style(divc84);
console.log(divc84);
divc85.textContent = dress5[0].name;
divc85.style.width = "70%";
divc85.style.margin = "0px 0px 0px 0px";
style(divc85);
console.log(divc85);
divc86.textContent = dress5[0].price;
divc86.style.width = "70%";
divc86.style.margin = " 0px 0px 0px 0px";
style(divc86);
console.log(divc86);
divc83.margin = "0px 0px 0px 0px";
divc83.append(divc84,divc85,divc86);
console.log(divc83);
div80.append(img82,divc83);
console.log(div80);
div80.onclick = function() {
dress.push(dress5[0]);
localStorage.setItem("Zara_cart_dresses",JSON.stringify(dress));
//for indivisual cart
window.location.href="specific-prod.html"
let shop = JSON.parse(localStorage.getItem("cart"))
shop[0].img1 = dress5[0].img;
localStorage.setItem("cart",JSON.stringify(shop))
}
// =====================================================================================
// second part
let div90 = document.createElement("div");
let div9 = document.createElement("div");
let div91 = document.createElement("div");
// second image
let img92 = document.createElement("img");
img92.src = dress6[0].img;
img92.style.width = "90%";
// div90.style.width = "90%";
// div90.style.margin = "0px 0px 0px 0px";
// div90.append(img92);
// content============================================================================
let divc93 = document.createElement("div");
let divc94 = document.createElement("div");
let divc95 = document.createElement("div");
let divc96 = document.createElement("div");
divc94.textContent = "NEW / SPECIAL EDITION";
divc94.style.width = "90%";
divc94.style.margin = " 0px 0px 0px 0px";
style(divc94);
console.log(divc94);
divc95.textContent = dress6[0].name;
divc95.style.width = "70%";
divc95.style.margin = "0px 0px 0px 0px";
style(divc95);
console.log(divc95);
divc96.textContent = dress6[0].price;
divc96.style.width = "70%";
divc96.style.margin = " 0px 0px 200px 0px";
style(divc96);
console.log(divc96);
divc93.margin = "0px 0px 0px 0px";
divc93.append(divc94,divc95,divc96);
console.log(divc93);
div90.style.margin = "0px 0px 0px 0px";
div90.append(img92,divc93);
console.log(div90);
div90.onclick = function() {
dress.push(dress6[0]);
localStorage.setItem("Zara_cart_dresses",JSON.stringify(dress));
window.location.href="specific-prod.html"
let shop = JSON.parse(localStorage.getItem("cart"))
shop[0].img1 = dress6[0].img;
localStorage.setItem("cart",JSON.stringify(shop))
}
// =====================================================================================
// third part
let div100 = document.createElement("div");
let div10 = document.createElement("div");
let div101 = document.createElement("div");
// third image
let img102 = document.createElement("img");
img102.src = dress7[0].img;
img102.style.width = "90%";
// img102.style.marginLeft = "-40%";
// div100.style.width = "90%";
// img102.style.margin = "50px 50px 0px 50px";
// div100.append(img102);
// div7.style.display = "flex";
// div7.append(div80,div90,div100);
// content============================================================================
let divc103 = document.createElement("div");
let divc104 = document.createElement("div");
let divc105 = document.createElement("div");
let divc106 = document.createElement("div");
divc104.textContent = "NEW / SPECIAL EDITION";
divc104.style.width = "70%";
divc104.style.margin = " 0px 0px 0px 0px";
style(divc104);
console.log(divc104);
divc105.textContent = dress7[0].name;
divc105.style.width = "70%";
divc105.style.margin = "0px 0px 0px 0px";
style(divc105);
console.log(divc105);
divc106.textContent = dress7[0].price;
divc106.style.width = "70%";
divc106.style.margin = " 0px 0px 200px 0px";
style(divc106);
console.log(divc106);
divc103.margin = "0px 0px 0px 0px";
divc103.append(divc104,divc105,divc106);
console.log(divc103);
div100.append(img102,divc103);
div100.onclick = function() {
dress.push(dress7[0]);
localStorage.setItem("Zara_cart_dresses",JSON.stringify(dress));
window.location.href="specific-prod.html"
let shop = JSON.parse(localStorage.getItem("cart"))
shop[0].img1 = dress7[0].img;
localStorage.setItem("cart",JSON.stringify(shop))
}
// console.log(div100);
// div7.style.display = "flex";
div7.style.display = "grid";
div7.style.gridTemplateColumns = "30% 30% 30%";
div7.style.gridTemplateRows = "45%";
div7.style.gridGap = "2%";
div7.style.marginLeft = "16%";
div7.style.marginTop = "16%";
div7.append(div80,div90,div100);
// =====================================================================================
// parent.append(div1,divc,div2,div3,div4,divc3,div80,div90,div100);
// parent.append(div1,divc,div2,div3,div4,divc3,div7);
function style(key) {
var a = key;
a.style.fontFamily = "Neue-Helvetica, Helvetica, Arial, sans-serif";
a.style.fontSize = "9px";
a.style.color = "black";
a.style.lineHeight = "12px";
a.style.fontWeight = "500";
}
// ============================================================================================================
// 6th image and content
// ============================================================================================================
let divm7 = document.createElement("div");
// first part
let divm80 = document.createElement("div");
let divm8 = document.createElement("div");
let divm81 = document.createElement("div");
// first image
let imgm82 = document.createElement("img");
imgm82.src = dress8[0].img;
imgm82.style.width = "90%";
// imgm82.style.marginLeft = "40%";
// divm80.style.width = "90%";
divm80.style.margin = "0px 0px 0px 0px";
// divm80.append(img82);
// console.log(divm80);
// content============================================================================
let divmc83 = document.createElement("div");
let divmc84 = document.createElement("div");
let divmc85 = document.createElement("div");
let divmc86 = document.createElement("div");
divmc84.textContent = "NEW";
divmc84.style.width = "90%";
divmc84.style.margin = " 0px 0px 0px 0px";
style(divmc84);
console.log(divmc84);
divmc85.textContent = dress8[0].name;
divmc85.style.width = "70%";
divmc85.style.margin = "0px 0px 0px 0px";
style(divmc85);
console.log(divmc85);
divmc86.textContent = dress8[0].price;
divmc86.style.width = "70%";
divmc86.style.margin = " 0px 0px 0px 0px";
style(divmc86);
console.log(divmc86);
divmc83.margin = "0px 0px 0px 0px";
divmc83.append(divmc84,divmc85,divmc86);
console.log(divmc83);
divm80.append(imgm82,divmc83);
divm80.onclick=function(){
dress.push(dress8[0]);
localStorage.setItem("Zara_cart_dresses",JSON.stringify(dress));
window.location.href="specific-prod.html"
let shop = JSON.parse(localStorage.getItem("cart"))
shop[0].img1 = dress8[0].img;
localStorage.setItem("cart",JSON.stringify(shop))
}
console.log(divm80);
// // =====================================================================================
// second part
let divm90 = document.createElement("div");
let divm9 = document.createElement("div");
let divm91 = document.createElement("div");
// second image
let imgm92 = document.createElement("img");
imgm92.src = dress9[0].img;
imgm92.style.width = "90%";
// divm90.style.width = "90%";
// divm90.style.margin = "0px 0px 0px 0px";
// divm90.append(img92);
// content============================================================================
let divmc93 = document.createElement("div");
let divmc94 = document.createElement("div");
let divmc95 = document.createElement("div");
let divmc96 = document.createElement("div");
divmc94.textContent = "NEW";