diff --git a/view/theme/plusfuture/js/plusfuture.js b/view/theme/plusfuture/js/plusfuture.js index 006e42a..f640829 100644 --- a/view/theme/plusfuture/js/plusfuture.js +++ b/view/theme/plusfuture/js/plusfuture.js @@ -100,6 +100,16 @@ $(document).ready(function() { setInterval(function() { checkNotify(); }, 10 * 1000); + //トップに戻る + $("nav").click(function(e) { + $("body,html").animate( + { + scrollTop: 0 + }, + 150 + ); + return false; + }); }); function makeFullScreen(full) { @@ -158,14 +168,3 @@ function toggleBside() { }); } } - -//トップに戻る -$("nav").click(function(e) { - $("body,html").animate( - { - scrollTop: 0 - }, - 150 - ); - return false; -});