...
|
...
|
@@ -2404,6 +2404,10 @@ var $ = require("jquery"), |
|
|
|
|
|
Slider.prototype = {
|
|
|
init: function() {
|
|
|
if (!this.$element) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (this.len <= 1) {
|
|
|
lazyLoad(this.$element.find('img.lazy'));
|
|
|
return;
|
...
|
...
|
@@ -2509,7 +2513,13 @@ var $ = require("jquery"), |
|
|
|
|
|
|
|
|
this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus');
|
|
|
this.bigItem.eq(this.index).fadeIn().siblings().fadeOut();
|
|
|
this.bigItem.eq(this.index).show().stop().animate({
|
|
|
opacity: 1
|
|
|
}).siblings().stop().animate({
|
|
|
opacity: 0
|
|
|
}, function() {
|
|
|
$(this).hide();
|
|
|
});
|
|
|
},
|
|
|
_autoplay: function() {
|
|
|
var that = this;
|
...
|
...
|
@@ -2749,9 +2759,8 @@ if (homePage === 'boys') { |
|
|
$('.slide-container').slider({
|
|
|
pagination: '.thumb-pagination'
|
|
|
});
|
|
|
} else if (homePage === 'girls') {
|
|
|
$('.center-col').slider();
|
|
|
} else {
|
|
|
$('.center-col').slider();
|
|
|
$('.slide-container').slider();
|
|
|
}
|
|
|
|
...
|
...
|
|