-
Notifications
You must be signed in to change notification settings - Fork 5
/
index -.js
670 lines (624 loc) · 26.2 KB
/
index -.js
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
<!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">
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+material-icons+outlined"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"
rel="stylesheet"
/>
<link rel="stylesheet" href="homestyle.css">
<title>adidas Official Website India | Sportswear</title>
<link rel = "icon" href = "https://www.adidas.co.in/glass/react/16d1049/assets/img/icon-adidas-logo.svg"
type = "image/x-icon">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link href="https://kit-pro.fontawesome.com/releases/v5.15.4/css/pro.min.css" rel="stylesheet">
</head>
<body>
<!-- <a href=""></a><div id="topHeader">
<div>EXTRA 15% OFF</div>
<div>10% CASHBACK ON HDFC DEBIT/CREDIT CARD</div>
<div>FREE RETURNS</div>
</div>
<div id="header">
<div>
<img class="adidasLogo" src="https://www.adidas.co.in/glass/react/16d1049/assets/img/icon-adidas-logo.svg">
</div>
<div id="rightSideBox">
<a href="signup.html"><button>sign up</button></a>
<a href="adidas_checkOutPage.html"><button>log in</button></a>
</div>
</div> -->
<header id="header">
<nav id="navbar">
<div id="navDiv1">
<a class="a1" href="#"><p>EXTRA 15% OFF*</p></a
><a class="a1" href="#"><p>10% CASHBACK ON HDFC CREDIT/DEBIT CARDS</p></a
><a class="a1" href="#"><p>FREE RETURNS</p></a>
</div>
<div id="navDiv2">
<a href="index.html"><img src="Adidas_Logo.svg.png" alt="" /></a>
<div class="a2" id="fav">
<a href="MensVideo.html" id="men"><p>MEN</p></a>
<a href="WOmenPage.html" id="women"><p>WOMEN</p></a>
<a href="kidPage.html" id="kid"><p>KIDS</p></a>
<a href="product1Page.html" id="sports"><p>SPORTS</p></a>
<a href="product1Page.html" id="brands"><p>BRANDS</p></a>
<a href="product1Page.html" id="colle"><p>COLLECTIONS</p></a>
<a href="product1Page.html" id="outlet"><p>OUTLET</p></a>
</div>
<div id="bag">
<div id="bag1">
<a href=""><p>help</p></a>
<a href=""><p>return</p></a>
<a href=""><p>order tracking</p></a>
<a href=""><p>sign up</p></a>
<a href=""><p>log in</p></a>
</div>
<div id="bag2">
<input type="text" />
<a href="#"><span class="material-icons-outlined">search</span></a>
<a href="wishlist.html"
><span class="material-icons-outlined"> favorite </span></a
>
<!-- <a href=""
><span id="fav" class="material-icons-outlined">
favorite_border
</span></a
> -->
<a href="AddtocartPage.html"
><span class="material-icons-outlined"> shopping_bag </span></a
>
</div>
</div>
</div>
</nav>
</header>
<div id="secNav">
<div id="navdiva">
<div class="navhighlight">Featured</div>
<div class="nava"><a href="product1Page.html">New Arrival</a></div>
<div class="nava"><a href="product1Page.html">Best Seller</a></div>
<div class="nava"><a href="product1Page.html">Original</a></div>
<div class="nava"><a href="product1Page.html">Manchester Utd</a></div>
<div class="nava"><a href="product1Page.html">Ulta Boost</a></div>
<div class="nava"><a href="product1Page.html">4DFWD</a></div>
<div class="nava"><a href="product1Page.html">Stan Smith</a></div>
<div class="nava"><a href="product1Page.html">Outlet</a></div>
<!-- <div class="nava">FootBall</div> -->
<!-- <div class="nava">FootBall</div> -->
<!-- <div class="nava">FootBall</div> -->
</div>
<div id="navdivb">
<div>
<div class="navhighlight">Footwear</div>
<div class="navb"><a href="product1Page.html">Running</a></div>
<div class="navb"><a href="product1Page.html">Sneakers</a></div>
<div class="navb"><a href="product1Page.html">Originals</a></div>
<div class="navb"><a href="product1Page.html">Slides and Sandals</a></div>
<div class="navb"><a href="product1Page.html">FootBall</a></div>
<div class="navb"><a href="product1Page.html">Gym & Training</a></div>
<div class="navb"><a href="product1Page.html">Basket Ball</a></div>
<div class="navb"><a href="product1Page.html">Tennis</a></div>
<div class="navb"><a href="product1Page.html">Skates</a></div>
<div class="navb"><a href="product1Page.html">Swim</a></div>
<div class="navb"><a href="product1Page.html">Cricket</a></div>
<!-- <div class="navb"><a href="#"></a></div> -->
</div>
<div>
<div class="navhighlight">Clothing</div>
<div class="navb2"><a href="product1Page.html">T-shirts</a></div>
<div class="navb2"><a href="product1Page.html">Joggers & Track Pants</a></div>
<div class="navb2"><a href="product1Page.html">Hoodies</a></div>
<div class="navb2"><a href="product1Page.html">Jackets</a></div>
<div class="navb2"><a href="product1Page.html">Football Jersy</a></div>
<div class="navb2"><a href="product1Page.html">Originals</a></div>
<div class="navb2"><a href="product1Page.html">Tracksuit</a></div>
<div class="navb2"><a href="product1Page.html">Shorts</a></div>
<div class="navb2"><a href="product1Page.html">Swimmers</a></div>
<!-- <div class="navb2"><a href="#"></a></div> -->
<!-- <div class="navb2"><a href="#"></a></div> -->
</div>
<div>
<div class="navhighlight">Accessories</div>
<div class="navb3"><a href="product1Page.html">Face Cover</a></div>
<div class="navb3"><a href="product1Page.html">Socks</a></div>
<div class="navb3"><a href="product1Page.html">All Bags</a></div>
<div class="navb3"><a href="product1Page.html">BackPacks</a></div>
<div class="navb3"><a href="product1Page.html">Gym & Training</a></div>
<div class="navb3"><a href="product1Page.html">Head Wear</a></div>
<div class="navb3"><a href="product1Page.html">Gloves</a></div>
<!-- <div class="navb3"><a href="#"></a></div>
<div class="navb3"><a href="#"></a></div>
<div class="navb3"><a href="#"></a></div>
<div class="navb3"><a href="#"></a></div> -->
</div>
<div>
<div class="navhighlight">Sports</div>
<div class="navb4"><a href="product1Page.html">Running</a></div>
<div class="navb4"><a href="product1Page.html">Gym & Training</a></div>
<div class="navb4"><a href="product1Page.html">Football</a></div>
<div class="navb4"><a href="product1Page.html">Tennis</a></div>
<div class="navb4"><a href="product1Page.html">Basket Ball</a></div>
<div class="navb4"><a href="product1Page.html">Hiking & outdoor</a></div>
<div class="navb4"><a href="product1Page.html">Swim</a></div>
<div class="navb4"><a href="product1Page.html">Skate Boarding</a></div>
<!-- <div class="navb4"><a href="#"></a></div>
<div class="navb4"><a href="#"></a></div>
<div class="navb4"><a href="#"></a></div> -->
</div>
</div>
<div id="navdivc">
<div class="navhighlight"><a href="product1Page.html">All Featured</a></div>
</div>
<div id="navdivd">
<div class="navhighlight"><a href="product1Page.html">All Footwear</a></div>
<div class="navhighlight"><a href="product1Page.html">All Clothing</a></div>
<div class="navhighlight"><a href="product1Page.html">All Accessories</a></div>
<div class="navhighlight"><a href="product1Page.html">All Products</a></div>
</div>
</div>
<div id="adidasnav"></div>
<div id="tileOne"> <!-- <p id="deeptxt">FLAT 40 % OFF</p> -->
<!-- <p id="smltxt">Extra 15% off on orders above INR 3999</p> -->
<div id="textA">
<h1>FLAT 40% OFF</h1>
<p>Extra 15% off on orders above INR 3999.</p>
<a href="product1Page.html">
<div class="btns">
<button>SHOP NOW    <i class="fa fa-long-arrow-right"></i></button>
</div>
</a>
</div>
<div id="deepi">
<div id="tileTwo">
<div class="tileTwoHeading">POPULAR RIGHT NOW</div>
<div id="tileTwoDetails">
<a href="MensVideo.html"><div>FACE COVERS</div></a>
<a href="WOmenPage.html"><div>ADIDAS ORIGINALS</div></a>
<a href="kidPage.html"><div>ULTRABOOST</div></a>
<a href="product1Page.html"><div>FOOTBALL BOOTS</div></a>
<a href="product1Page.html"><div>ADICOLOR</div></a>
</div>
</div>
<div id="deep">
<a href="product1Page.html">
<P class="deeptxt"> EVOLUTION - IT'S IN OUR NATURE</P>
<p class="sml">Explore the bold new collection from adidas x<br> Marimekko</p>
<div class="sbtns">
<button>SHOP NOW  <i class="fa fa-long-arrow-right"></i></button>
</div>
</a>
</div>
<div id="interest"><br><br>
<div id="box">
<div id="t"><h3>STILL INTERESTED ?</h3></div>
<div class="imgdiv" >
<div class="a">
<div class="img1"> <div class="heart">
<i class="far fa-heart"></i>
</div> </div>
<div class="aa">4ATHLTS ID Duffel Bag Medium<div class="let">Performance</div> </div>
</div>
<div class="a">
<div class="img2"><div class="heart"> <i class="far fa-heart"></i>
</div></div>
<div class= "aa">YEEZY 500<div class="let">Originals</div></div>
</div>
<div class="a">
<div class="img3"><div class="heart"> <i class="far fa-heart"></i> </div> </div>
<div class="aa">Fast Primeblue Tee<div class="let">Performance</div></div>
</div>
<div class="a">
<div class="img4"><div class="heart"> <i class="far fa-heart"></i> </div> </div>
<div class="aa">Marimekko Unikko Allover-Print <div class="let">Performance</div></div>
</div>
<div class="a">
<div class="img5"><div class="heart"> <i class="far fa-heart"></i> </div> </div>
<div class="aa">Adicolour Shattered Trefoil Tights <div class="let">Originals</div></div>
</div>
</div>
</div>
</div>
<div id="tileThree">
<div class="tileThreeHeading">WHO ARE YOU SHOPPING FOR?</div>
<div class="tileThreeImages">
<div onclick="Men()" class="tileMen">
<h3>MEN</h3></div>
<div onclick="Women()" class="tileWomen">
<h3>WOMEN</h3></div>
<div onclick="Kids()" class="tileKids">
<h3>KIDS</h3></div>
</div>
</div>
<div class="hotcontain">
<div id="headht">WHAT'S HOT</div>
<div id="imght">
<a href="product1Page.html">
<div id="imght1">
<div class="i1"></div>
<div id="ht1">SUPEREARTH</div>
<div id="htdetail">It is inspired by Sean Wotherspoons
love for Vintage Sportswear and the vegan lifestyle </div>
<a href="product1Page.html" class="htshp">SHOP NOW</a>
</div></a>
<a href="product1Page.html">
<div id="imght2">
<div class="i2"></div>
<div id="ht1">RICH IN ATTITUDE</div>
<div id="htdetail">adidas Originals x Jeremy Scott Present The Forum Money Low. </div>
<a href="product1Page.html" class="htshp">SHOP NOW</a>
</div></a>
<a href="product1Page.html">
<div id="imght3">
<div class="i3"></div>
<div id="ht1">HUMANRACE SICHONA</div>
<div id="htdetail" > Informed by pharell's Vision Inspired by the Dakota way of life.
Created with the best of adidas innovation.</div>
<a href="product1Page.html" class="htshp">SHOP NOW</a>
</div></a>
<a href="product1Page.html">
<div id="imght4">
<div class="i4"></div>
<div id ="ht1">CONTEMPORARY ADICOLOR </div>
<div id="htdetail">A Contemporary take on classic adidas </div>
<a href="product1Page.html" class="htshp">SHOP NOW</a>
</div></a>
<a href="product1Page.html">
<div id="imght5">
<div class="i5"></div>
<div id="ht1">NEW ADIDAS MARIMEKKO</div>
<div id="htdetail">Embrace your own evolution in the
newest collection from adidas x Marimekko </div>
<a href="product1Page.html" class="htshp">SHOP COLLECTION</a>
</div></a>
</div>
</div>
<!-- ---------------------------------------------------------- -->
<div class="bstcon">
<div id="headht">BEST OF ADIDAS</div>
<div class="bestimg">
<a href="product1Page.html"> <div class="bstimg1">
<div id="bsti1"><div class="bstprice">₹3999.00</div></div>
<div class="bst">Marimekko Unikko Allover-Print <br> Backpack </div>
<div class="bstdetail">Performance</div>
</div></a>
<a href="product1Page.html"><div class="bstimg2">
<div id="bsti2"><div class="bstprice">₹2999.00</div> </div>
<div class="bst">Adicolor Shattered Trefoil Tights </div>
<div class="bstdetail">Originals</div>
</div></a>
<a href="product1Page.html"><div class="bstimg2">
<div id="bsti3"><div class="bstprice">₹3599.00</div></div>
<div class="bst">Marimekko Unikko Allover-Print <br> Duffel Small </div>
<div class="bstdetail">Performance</div>
</div></a>
<a href="product1Page.html"><div class="bstimg2">
<div id="bsti4"><div class="bstprice">₹2299.00</div></div>
<div class="bst">Own the Run Tee </div>
<div class="bstdetail">Performance</div>
</div></a>
<a href="product1Page.html">
<div class="bstimg2">
<div id="bsti5"><div class="bstprice">₹2999.00</div></div>
<div class="bst">Adicolor Backpack </div>
<div class="bstdetail">Originals</div>
</div></a>
</div>
</div>
<div class= "info">
<div class="info-1">
<h6>STORIES, STYLES AND SPORTSWEAR AT ADIDAS, SINCE 1949</h6>
<pre>
Sport keeps us fit. Keeps you mindful. Brings us together. Through sport we
have the power to change lives. Whether it is through stories of inspiring
athletes. Helping you to get up and get moving. Sportswear featuring the latest
technologies, to up your performance. Beat your PB. adidas offers a home to
the runner, the basketball player, the soccer kid, the fitness enthusiast. The
weekend hiker that loves to escape the city. The yoga teacher that spreads the
moves. The 3-Stripes are seen in the music scene. On stage, at festivals. Our
sports clothing keeps you focused before that whistle blows. During the race.
And at the finish lines. We’re here to support creators. Improve their game.
Their lives. And change the world.
</pre>
<pre>
adidas is about more than sportswear and workout clothes. We partner with
the best in the industry to co-create. This way we offer our fans the sports
apparel and style that match their athletic needs, while keeping sustainability
in mind. We’re here to support creators. Improve their game. Create change.
And we think about the impact we have on our world.
</pre>
</div>
<div class="info-2">
<h6>WORKOUT CLOTHES, FOR ANY SPORT</h6>
<pre>
adidas designs for and with athletes of all kinds. Creators, who love to change
the game. Challenge conventions. Break the rules and define new ones. Then
break them again. We supply teams and individuals with athletic clothing pre-
match. To stay focussed. We design sports apparel that get you to the finish
line. To win the match. We support women, with bras and tights made for
purpose. From low to high support. Maximum comfort. We design, innovate and
itterate. Testing new technologies in action. On the pitch, the tracks, the court,
the pool. Retro workout clothes inspire new streetwear essentials. Like NMD,
Ozweego and our Firebird tracksuits. Classic sports models are brought back
to life. Like Stan Smith. And Superstar. Now seen on the streets and the stages.
</pre>
<pre>
Through our collections we blur the borders between high fashion and high
performance. Like our adidas by Stella McCartney athletic clothing collection –
designed to look the part inside and outside of the gym. Or some of our adidas
Originals lifestyle pieces, that can be worn as sportswear too. Our lives are
constantly changing. Becoming more and more versatile. And adidas designs
with that in mind.
</pre>
</div>
</div>
<div id="boxY2">
<div class="boxY2-1">
<div class="boxY2-2">
<div class="boxY2-2-1">
<h1 class="DiscriptionY">JOIN ADIDAS AND GET 15% OFF</h1>
</div>
</div>
<div class="boxY2-3">
<button>
<div>SIGN UP</div>
<div><i class="fa fa-long-arrow-right"></i></div>
</button>
</div>
</div>
</div>
<div id="boxY3">
<div class="boxY3-1">
<div class="tableboxY">
<ul class="listBlankY">
<li>PRODUCTS</li>
<li><a class="lastblankY">Foot Wear</a></li>
<li><a class="lastblankY">Clothing</a></li>
<li><a class="lastblankY">Accessories</a></li>
<li><a class="lastblankY">Outlet-sales</a></li>
<li><a class="lastblankY">New Arrivals</a></li>
<li><a class="lastblankY">Top Sellers</a></li>
</ul>
</div>
<div class="tableboxY">
<ul class="listBlankY">
<li>SPORTS</li>
<li><a class="lastblankY">Running</a></li>
<li><a class="lastblankY">Football</a></li>
<li><a class="lastblankY">Gym/Training</a></li>
<li><a class="lastblankY">Tennis</a></li>
<li><a class="lastblankY">Outdoor</a></li>
<li><a class="lastblankY">Basketball</a></li>
<li><a class="lastblankY">Swimming</a></li>
<li><a class="lastblankY">Skateboarding</a></li>
</ul>
</div>
<div class="tableboxY">
<ul class="listBlankY">
<li>COLLECTIONS</li>
<li><a class="lastblankY">Ultraboost</a></li>
<li><a class="lastblankY">Superstar</a></li>
<li><a class="lastblankY">NMD</a></li>
<li><a class="lastblankY">Stan Smith</a></li>
<li><a class="lastblankY">Sustainability</a></li>
<li><a class="lastblankY">Predator</a></li>
<li><a class="lastblankY">Parley</a></li>
<li><a class="lastblankY">adicolor</a></li>
</ul>
</div>
<div class="tableboxY">
<ul class="listBlankY">
<li>SUPPORT</li>
<li><a class="lastblankY">Help</a></li>
<li><a class="lastblankY">Customer Services</a></li>
<li><a class="lastblankY">Returns & Exchanges</a></li>
<li><a class="lastblankY">Shipping</a></li>
<li><a class="lastblankY">Order Tracker</a></li>
<li><a class="lastblankY">Store Locator</a></li>
<li><a class="lastblankY">Running Shoe Finder</a></li>
<li><a class="lastblankY">Bra Fit Guide</a></li>
</ul>
</div>
<div class="tableboxY">
<ul class="listBlankY">
<li>COMPANY INFO</li>
<li><a class="lastblankY">About Us</a></li>
<li><a class="lastblankY">adidas stories</a></li>
<li><a class="lastblankY">adidas Apps</a></li>
<li><a class="lastblankY">Entity Details</a></li>
<li><a class="lastblankY">Press</a></li>
<li><a class="lastblankY">Careers</a></li>
</ul>
</div>
</div>
</div>
<div id="boxY4">
<div class="boxY4-1">
<div class="boxY4-2a">
<div class="boxY4-2a-1">
<div class="imgY">
<img class="indImgY";
src="https://adl-foundation.adidas.com/flags/1-0-0/in.svg"
alt=""
/>
</div>
<button>India</button>
</div>
<div class="boxY4-2a-2">
<div>
<a class="lastblankY" href="">Privacy Policy</a>
</div>
<div class="lineY"></div>
<div>
<a class="lastblankY" href="">Terms and Conditions</a>
</div>
<div class="lineY"></div>
<div>
<a class="lastblankY" href="">Cookies</a>
</div>
</div>
</div>
<div class="boxY4-2b">
<div class="boxY4-2b-a">©2021 adidas India Marketing Pvt. Ltd</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
function topHeaderSlideShow() {
let topHeader = document.getElementById("topHeader");
let arrayLines = [
"FREE DELIVERY FOR ALL ORDERS NOW",
"FREE RETURNS",
"SIGN UP & GET 15% OFF"
];
let x = window.matchMedia("(max-width: 960px)")
function showTextInHeader(x) {
if (x.matches) {
let p = document.createElement("p");
p.textContent = arrayLines[0];
p.setAttribute("class", "hearderSlideContent");
topHeader.append(p);
let c = 0;
setInterval(function () {
if (c == arrayLines.length) {
c = 0;
}
p.textContent = arrayLines[c];
c++;
}, 3000);
}
}
showTextInHeader(x)
x.addListener(showTextInHeader)
}
topHeaderSlideShow();
function Men(){
window.location.href = "MensVideo.html";
}
function Women(){
window.location.href = "WOmenPage.html";
}
function Kids(){
window.location.href = "kidPage.html";
}
//--------------------------------------------
//-----------------------------------------------------------------------------
// mouse enter and exit event
var secnav = document.getElementById("secNav");
var men = document.getElementById("men");
var women = document.getElementById("women");
var kids = document.getElementById("kid");
var sports = document.getElementById("sports");
var coll = document.getElementById("colle");
var brand = document.getElementById("brands");
var outlet = document.getElementById("outlet");
women.addEventListener("mouseleave", function () {
// var change = document.getElementById("navdivc");
// change.innerHTML =
// '<div class="navhighlight"><a href="">All Men</a> </div>';
secnav.style.display = "none";
});
kids.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
sports.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
coll.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
brand.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
outlet.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
women.addEventListener("mouseenter", function () {
var change = document.getElementById("navdivc");
change.innerHTML =
'<div class="navhighlight"><a href="#">All products</a> </div>';
secnav.style.display = "grid";
});
kids.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
sports.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
coll.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
brand.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
outlet.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
men.addEventListener("mouseenter", function () {
showmenu();
});
men.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
function showmenu() {
//console.log("here");
secnav.style.display = "grid";
}
secnav.addEventListener("mouseenter", function () {
secnav.style.display = "grid";
});
secnav.addEventListener("mouseleave", function () {
secnav.style.display = "none";
});
// ------------------------------------------------------------------------------------
// var prevScrollpos = window.pageYOffset;
// window.onscroll = function () {
// var currentScrollPos = window.pageYOffset;
// if (prevScrollpos > currentScrollPos) {
// document.getElementById("secNav").style.top = "0";
// } else {
// document.getElementById("secNav").style.top = "-130px";
// }
// prevScrollpos = currentScrollPos;
// };
var prevScrollpo = window.pageYOffset;
// var prevScrollpo = 33.599998474121094;
console.log(window.pageYOffset);
console.log(prevScrollpo);
window.onscroll = function () {
console.log(window.pageYOffset);
console.log(prevScrollpo);
var currentScrollPo = window.pageYOffset;
if (prevScrollpo > 37) {
if (prevScrollpo > currentScrollPo) {
document.getElementById("header").style.top = "0";
document.getElementById("secNav").style.top = "0";
} else {
document.getElementById("header").style.top = "-115px";
document.getElementById("secNav").style.top = "-115px";
}
}
prevScrollpo = currentScrollPo;
};
</script>
</body>
</html>