ioio
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-11-24 00:47:46 +08:00
parent c17977ec51
commit 03c28bf66e
4 changed files with 49 additions and 38 deletions

View File

@@ -317,15 +317,15 @@ $(function () {
// 回到顶部功能
$("#backTop").click(function () {
$("html, body").animate({ scrollTop: 0 }, 600);
$("html, body").animate({ scrollTop: 0 }, 300);
});
// 根据滚动位置显示/隐藏回到顶部按钮
$(window).scroll(function () {
if ($(this).scrollTop() > 300) {
$("#backTop").fadeIn();
$("#backTop").fadeIn(300);
} else {
$("#backTop").fadeOut();
$("#backTop").fadeOut(300);
}
});