...
|
...
|
@@ -17,6 +17,19 @@ function showOrNot() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function reposReturnTop() {
|
|
|
var $top = $returnTop.parent();
|
|
|
|
|
|
if (!$top.hasClass('service-top')) {
|
|
|
$top = $returnTop;
|
|
|
}
|
|
|
if ($(window).width() < 1380) {
|
|
|
$top.addClass('for-min');
|
|
|
} else {
|
|
|
$top.removeClass('for-min');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$returnTop.click(function() {
|
|
|
$('html,body').animate({
|
|
|
scrollTop: 0
|
...
|
...
|
@@ -36,4 +49,10 @@ if ($returnTop.hasClass('hide')) { |
|
|
$('img').load(showOrNot);
|
|
|
}
|
|
|
|
|
|
reposReturnTop();
|
|
|
|
|
|
if ($returnTop.length) {
|
|
|
$(window).resize(reposReturnTop);
|
|
|
}
|
|
|
|
|
|
exports.returnTopShowOrNot = showOrNot; |
...
|
...
|
|