Authored by whb

merge

... ... @@ -521,6 +521,7 @@ define('yohood', function(require, exports) {
$(this).addClass('current').siblings().removeClass('current');
$('.side-related-list').hide().eq(nowIndex).show();
});
if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) {
//右侧相关文章定位
relatedPost = $('.side-related-post');
... ... @@ -548,18 +549,10 @@ define('yohood', function(require, exports) {
} else {
relatedPost.removeClass('fix').removeAttr('style');
}
if ($(this).scrollTop() <= maxH - relatedH) {
relatedPost.css({
'position': 'fixed',
'top': 0
});
}
} else {
relatedPost.removeClass('fix').removeAttr('style');
}
});
}
});
}
//分享按钮位置
var shareOffsetTop = $(".share").offset().top;
$(window).scroll(function() {
... ...