diff --git a/assets/js/jump-to-top.js b/assets/js/jump-to-top.js index 69c1aafac9..692afed704 100644 --- a/assets/js/jump-to-top.js +++ b/assets/js/jump-to-top.js @@ -1,6 +1,6 @@ $(document).ready(function() { - // Mobile menu. + // Mobile menu. $('[data-toggle="slide-collapse"]').on('click', function() { $navMenuCont = $($(this).data('target')); $navMenuCont.toggleClass('show'); @@ -9,7 +9,7 @@ $(document).ready(function() { $(".menu-overlay").click(function(event) { $(".navbar-toggler").trigger("click"); }); - + @@ -26,6 +26,6 @@ $(document).ready(function() { } }); $(".jump-to-top").click(function() { - $("body").animate({scrollTop: TO_TOP_POS}, TO_TOP_SPEED) + $("html").animate({scrollTop: TO_TOP_POS}, TO_TOP_SPEED) }); }); diff --git a/tool/template-github-edit.html b/tool/template-github-edit.html index 46faba028e..4150f4e1f4 100644 --- a/tool/template-github-edit.html +++ b/tool/template-github-edit.html @@ -1,4 +1,4 @@ -
+ diff --git a/tool/template-top-nav.html b/tool/template-top-nav.html index 96a309de14..604cfc386a 100644 --- a/tool/template-top-nav.html +++ b/tool/template-top-nav.html @@ -1,9 +1,10 @@ -