Showing
1 changed file
with
8 additions
and
6 deletions
@@ -16,6 +16,13 @@ require('../common/logo-brand'); | @@ -16,6 +16,13 @@ require('../common/logo-brand'); | ||
16 | 16 | ||
17 | require('../common/accordion'); | 17 | require('../common/accordion'); |
18 | 18 | ||
19 | +$(document).on('mouseenter', '.imgopacity a img', function() { | ||
20 | + $(this).css('opacity', 0.8); | ||
21 | +}); | ||
22 | +$(document).on('mouseout', '.imgopacity a img', function() { | ||
23 | + $(this).css('opacity', 1); | ||
24 | +}); | ||
25 | + | ||
19 | if (homePage === 'brands') { | 26 | if (homePage === 'brands') { |
20 | require('./brands'); | 27 | require('./brands'); |
21 | } | 28 | } |
@@ -34,12 +41,7 @@ if ($.inArray(homePage, ['boys','girls','kids','lifestyle']) > -1) { | @@ -34,12 +41,7 @@ if ($.inArray(homePage, ['boys','girls','kids','lifestyle']) > -1) { | ||
34 | }); | 41 | }); |
35 | } | 42 | } |
36 | 43 | ||
37 | -$(document).on("mouseenter",".imgopacity a img",function(){ | ||
38 | - $(this).css('opacity', 0.8); | ||
39 | -}); | ||
40 | -$(document).on("mouseout",".imgopacity a img",function(){ | ||
41 | - $(this).css('opacity', 1); | ||
42 | -}) | 44 | + |
43 | 45 | ||
44 | lazyLoad($('img.lazy')); | 46 | lazyLoad($('img.lazy')); |
45 | if (homePage === 'boys') { | 47 | if (homePage === 'boys') { |
-
Please register or login to post a comment