mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 15:28:55 +00:00
添加标签云、最近的文章、归档、GA统计分析等功能
This commit is contained in:
+32
-15
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
|
||||
$(window).scroll(function() {
|
||||
$(window).scrollTop() > 500 ? $("#rocket").addClass("show") : $("#rocket").removeClass("show");
|
||||
});
|
||||
$("#rocket").click(function() {
|
||||
$("#rocket").addClass("launch");
|
||||
$("html, body").animate({
|
||||
scrollTop: 0
|
||||
}, 500, function() {
|
||||
$("#rocket").removeClass("show launch");
|
||||
});
|
||||
return false;
|
||||
});
|
||||
Reference in New Issue
Block a user