-
Notifications
You must be signed in to change notification settings - Fork 3
/
new_now.html
532 lines (496 loc) · 26.3 KB
/
new_now.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
<!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>New & Now Fragrance & Body Care | Bath & Body Works</title>
<link rel="icon" href="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/en_US/v1651757968673/css/images/gingham-pattern.svg?yocs=o_s_" />
<link rel="stylesheet" href="new_now.css" />
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">
</head>
<body>
<!-- navbar is here -->
<div id="top-wrap">
<div id="blue-strip"></div>
<div class="wrap">
<div class='start_nav'>
<div class="start_box"></div>
</div>
<div class="logo">
<a href="index.html"><img src="https://www.bathandbodyworks.com/on/demandware.static/Sites-BathAndBodyWorks-Site/-/default/dw255cc1f3/images/svg-icons/Logos-main.svg"></a>
</div>
<div class="end_nav">
<div class="search-bar">
<input type="text" placeholder="Search by fragrance or product....">
<button><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/default/dw729fd72d/images/svg-icons/UI-Search-v2.svg?yocs=o_s_"></button>
</div>
<div id="top-offers"><img src="https://www.bathandbodyworks.com/on/demandware.static/Sites-BathAndBodyWorks-Site/-/default/dw30b04df1/images/svg-icons/UI-Tag-v2.svg"></div>
<div id='myAccount'><img src="https://www.bathandbodyworks.com/on/demandware.static/Sites-BathAndBodyWorks-Site/-/default/dwc847d762/images/svg-icons/UI-MyAccount.svg"></div>
<div id='cart'><a href="cart.html"><img src="https://www.bathandbodyworks.com/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1615459561027/images/svg-icons/UI-AddToBag.svg"></a></div>
<div class="account" id='account'>
<ul>
<li><a href="signin.html">Sign In or Sign Up</a></li>
<li><a href="#">Track order</a></li>
<li><a href="#">My loveit list</a></li>
</ul>
</div>
</div>
</div>
</div>
<nav>
<ul class="nav-links">
<div id='close-btn'><img src="https://www.bathandbodyworks.com/on/demandware.static/Sites-BathAndBodyWorks-Site/-/default/dw57a458d6/images/svg-icons/UI-Close-blue.svg" height="20px"></div>
<li id="nav-dropdown0"><a href="new_now.html">NEW & NOW</a>
<div class="drop">
<ul class="category">
<li class="nav-sub-dropdown">FEATURED
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BATH & SHOWER
<ul class="sub-category">
<li>All Bath & Shower</li>
<li>Body Wash & Shower Gel</li>
<li>Body Scrub</li>
<li>Bath Accessories</li>
</ul>
</li>
<li class="nav-sub-dropdown">MOISTURIZERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown"><a href="#">FRAGRANCE</a>
<ul class="sub-category">
<li>All Bath & Shower</li>
<li>Body Wash & Shower Gel</li>
<li>Body Scrub</li>
<li>Bath Accessories</li>
</ul>
</li>
<li class="nav-sub-dropdown">AROMATHERAPY
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">MEN'S
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BODY CARE OFFERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
</ul>
</li>
<li>EXPLORE BODY CARE</li>
</ul>
<div class="cat-col-2">
<p>BODY CARE OFFERS</p>
<p> Buy 3, Get 2 Free Select Body Care</p>
<p> Buy 2, Get 1 Free Trial Size</p>
</div>
</div>
</li>
<li id="nav-dropdown1"><a href="Body_care.html">BODY CARE</a>
<div class="drop">
<ul class="category">
<li class="nav-sub-dropdown">FEATURED
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BATH & SHOWER
<ul class="sub-category">
<li>All Bath & Shower</li>
<li>Body Wash & Shower Gel</li>
<li>Body Scrub</li>
<li>Bath Accessories</li>
</ul>
</li>
<li class="nav-sub-dropdown">MOISTURIZERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">FRAGRANCE
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">AROMATHERAPY
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">MEN'S
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BODY CARE OFFERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
</ul>
</li>
<li>EXPLORE BODY CARE</li>
</ul>
<div class="cat-col-2">
<p>BODY CARE OFFERS</p>
<p> Buy 3, Get 2 Free Select Body Care</p>
<p> Buy 2, Get 1 Free Trial Size</p>
</div>
</div>
</li>
<li id="nav-dropdown2"><a href="handSoapsAndSanitizers.html">HAND SOAP & SANITIZERS</a>
<div class="drop">
<ul class="category">
<li class="nav-sub-dropdown">FEATURED
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown"> CANDLES
<ul class="sub-category">
<li><a href="#">All Candles</a></li>
<li>Body Wash & Shower Gel</li>
<li>Body Scrub</li>
<li>Bath Accessories</li>
</ul>
</li>
<li class="nav-sub-dropdown">AIR FRESHENERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown"> HOME FRAGRANCE OFFERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
</ul>
<div class="cat-col-2">
<p>5/$24 Wallflowers Fragrance Refills</p>
<p> 2/$20 Single Wick Candles</p>
<p> 3/$20 Room Sprays</p>
<p> 3/$9 Car Fragrance Refills</p>
<p>EXPLORE HOME FRAGRANCE</p>
</div>
</div>
</li>
<li id="nav-dropdown3"><a href="homeFragrance.html">HOME FRAGRANCE</a>
<div class="drop">
<ul class="category">
<li class="nav-sub-dropdown">FEATURED
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BATH & SHOWER
<ul class="sub-category">
<li>All Bath & Shower</li>
<li>Body Wash & Shower Gel</li>
<li>Body Scrub</li>
<li>Bath Accessories</li>
</ul>
</li>
<li class="nav-sub-dropdown">MOISTURIZERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">FRAGRANCE
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">AROMATHERAPY
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">MEN'S
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
<li>Travel Size</li>
</ul>
</li>
<li class="nav-sub-dropdown">BODY CARE OFFERS
<ul class="sub-category">
<li>New Body Care</li>
<li>Customer Favorites</li>
<li>Retired Fragrances</li>
</ul>
</li>
<li>EXPLORE BODY CARE</li>
</ul>
<div class="cat-col-2">
<p>BODY CARE OFFERS</p>
<p> Buy 3, Get 2 Free Select Body Care</p>
<p> Buy 2, Get 1 Free Trial Size</p>
</div>
</div>
</li>
<li><a href="gifts.html">GIFTS</a></li>
<li><a href="topoffers.html">TOP OFFERS</a></li>
</ul>
</nav>
<!-- body content is below -->
<div id="container">
<div id="left">
<div>
<h5>NEW & NOW</h5>
<p>New Arrivals</p>
<p> Men's Shop</p>
<p>Laundry Fragrances</p>
<p> Best Sellers</p>
<p>Aromatherapy Shop</p>
<p> Get Inspired</p>
<p>Shop By Fragrance</p>
</div>
</div>
<div id="right">
<div>
<p>New Fragrances & Body Care Products</p>
</div>
<div>
<img
src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dw0e0852dd/images/Spring2022/xcat_newnow-lp_0_sp1_lb.jpg?yocs=s_"
alt=""
/>
</div>
<div>
<img
src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dwc0939637/images/Spring2022/xcat_garden-infusion_sp3_lb.jpg?yocs=s_"
alt=""
/>
</div>
<div>
<img
src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dw7f23b34f/images/Spring2022/xcat_mday-new-now_sp3_lb.jpg?yocs=s_"
alt=""
/>
</div>
<div>
<img
src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dw58d8e77e/images/Spring2022/xcat_new-laundry_0_sp1_lb.jpg?yocs=s_"
alt=""
/>
</div>
<div>
<img
src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dwddf2b85f/images/Spring2022/xcat_mens-shop-hhih_sp3_lb.jpg?yocs=s_"
alt=""
/>
</div>
<div class="paras">
<div id="head">New & Now From Bath & Body Works</div>
<div><p>Get excited…this is your gateway to everything newly released and completely on-trend. And we mean everything—from new products and fragrances to seasonal scents and never-before-seen goodies.</p></div>
<div><p>While you are getting ready to start shopping, hop by this page and peek at the body care products, home essentials and new fragrances we have just launched. You could find anything. Scents you have never tried before. A brand-new bath product that calls to you. Candles that perfectly match the vibe you are going for in your home. Recently released collections everyone obsessed with. Basically…anything and everything you could want (or even things you did not know you wanted!).</p></div>
<div><p>So, sit back, relax and explore—this is a page that deserves a nice, long scroll. We hope you find lots of things to love and hey, maybe you will find the perfect gift for a family member or bestie at the same time.</p></div>
</div>
</div>
</div>
</div>
</div>
<!-- footer part -->
<footer>
<div class="footer-links">
<div class="col col-1">
<p>Get email offers & the latest news from Bath & <br> Body Works!</p>
<div class="footer-form">
<label>Enter Email</label>
<div class="email"><input type="email"> <img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/UI-Information.svg?yocs=o_s_" height="17px"></div>
<label>Confirm Email</label>
<div class="email"><input type="email"><button>Submit</button></div>
</div>
<div class="social-media">
<label>GET CONNECTED</label>
<ul class="social-media-icon">
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-fb-reverse.svg?yocs=o_s_" height="20px" style="background-color:#3460a1; border-radius: 20px; padding:10px;"></li>
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-twitter-reverse.svg?yocs=o_s_" height="20px" style="background-color:#28aae1; border-radius: 20px; padding:10px;"></li>
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-ig-reverse.svg?yocs=o_s_" height="20px"style="background-color:#35648b; border-radius: 18px; padding:10px;"></li>
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-tiktok-reverse.svg?yocs=o_s_" height="20px"style="background-color:#000; border-radius: 20px;padding:10px;"></li>
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-youtube-reverse.svg?yocs=o_s_" height="20px"style="background-color:#ee3138; border-radius: 16px;padding:10px;"></li>
<li><img src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/Sites-BathAndBodyWorks-Site/-/en_US/v1651757968673/images/svg-icons/Social-pinterest-reverse.svg?yocs=o_s_" height="20px"style="background-color:#ce2129; border-radius: 20px;padding:10px;"></li>
</ul>
</div>
</div>
<div class="help-btn"><p style="margin-left: 20px;">LET US HELP</p></div>
<div class="col col-2">
<p>CUSTOMER CARE</p>
<ul>
<li>Help & FAQs</li>
<li> Shipping</li>
<li> Returns & Exchanges</li>
<li>Order Tracking</li>
<li>Corporate Sales & Gifts</li>
<li> Contact Us</li>
</ul>
</div>
<div class="col col-3">
<p>MY ACCOUNT</p>
<ul>
<li>Sign In or Sign Up</li>
<li>Order Tracking</li>
<li>My Love-It List</li>
</ul>
</div>
<div class="col col-4">
<p> DISCOVER</p>
<ul>
<li>Our Story</li>
<li>Careers</li>
<li> Gift Cards</li>
<li> Videos</li>
<li>Product Ingredients</li>
<li>Get Inspired</li>
</ul>
</div>
<div class="col col-5">
<p>FIND US</p>
<ul>
<li>Store Locator</li>
<li>Global Locations</li>
</ul>
</div>
</div>
<div class="footer-img"><img class="img" src="https://cdn-fsly.yottaa.net/5d669b394f1bbf7cb77826ae/www.bathandbodyworks.com/v~4b.216/on/demandware.static/-/Sites-BathAndBodyWorks-Library/default/dw0c8e6af7/images/evergreen/Happiness_Guaranteedtimes2_v2.jpg?yocs=o_s_"></div>
<div class="end">
<ul>
<li>Site Map </li>
<li>Terms Of Use </li>
<li>Privacy Policy </li>
<li>California Privacy Rights </li>
<li>Do Not Sell My Personal Information (California) </li>
<li>Modern Slavery Transparency Statement </li>
<li>Ad Preferences</li>
</ul>
<p id='copy'>© 2021 Bath & Body Works Direct, Inc. All Rights Reserved.</p>
</div>
</footer>
</body>
</html>
<script>
let drop_1 = document.getElementById("nav-dropdown0");
let drop_2 = document.getElementById("nav-dropdown1");
let drop_3 = document.getElementById("nav-dropdown2");
let drop_4 = document.getElementById("nav-dropdown3");
let category = document.getElementsByClassName("category");
let sub_cat_drop = document.getElementsByClassName("nav-sub-dropdown");
let sub_cat_sub_el = document.getElementsByClassName("sub-category");
var dropdowns = document.getElementsByClassName("drop")
drop_1.addEventListener("mouseover",function(){
dropdowns[0].classList.toggle("open-dropdown")
})
drop_1.addEventListener("mouseout",function(){
dropdowns[0].classList.toggle("open-dropdown")
})
drop_2.addEventListener("mouseover",function(){
dropdowns[1].classList.toggle("open-dropdown")
})
drop_2.addEventListener('mouseout',function(){
dropdowns[1].classList.toggle("open-dropdown")
})
drop_3.addEventListener('mouseover',function(){
dropdowns[2].classList.toggle("open-dropdown")
})
drop_3.addEventListener('mouseout',function(){
dropdowns[2].classList.toggle("open-dropdown")
})
drop_4.addEventListener('mouseover',function(){
dropdowns[3].classList.toggle("open-dropdown")
})
drop_4.addEventListener('mouseout',function(){
dropdowns[3].classList.toggle("open-dropdown")
})
for(var i=0;i<sub_cat_drop.length;i++){
sub_cat_drop[i].addEventListener('mouseover',function(){
// console.log(sub_cat_sub_el[3])
event.target.childNodes[1].classList.toggle("open-sub-category")
var a = event.target.parentNode.classList;
})
sub_cat_drop[i].addEventListener('mouseleave',function(){
// console.log(sub_cat_sub_el[3])
event.target.childNodes[1].classList.toggle("open-sub-category")
})
}
let opening = document.getElementsByClassName('start_nav');
let navbar = document.getElementsByClassName('nav-links');
let closing = document.getElementById('close-btn')
let nav = document.querySelector('nav');
opening[0].addEventListener('click',function(){
navbar[0].classList.toggle('open-nav');
document.body.style.background = 'rgba(0,0,0,0.4)';
nav.classList.toggle('pos');
nav.style.overflowY = 'scroll';
})
closing.addEventListener('click',function(){
navbar[0].classList.toggle('open-nav')
nav.classList.toggle('pos');
document.body.style.background = 'none';
// nav.style.overflowY = 'scroll';
});
let account_drop_btn = document.getElementById('myAccount');
let dropAccount = document.getElementById('account');
account_drop_btn.addEventListener('click',function(){
dropAccount.classList.toggle('open_account')
})
</script>