diff --git a/index.html b/index.html index ff1a057..7c7964b 100644 --- a/index.html +++ b/index.html @@ -352,26 +352,6 @@ }); }); })(); - - // 底部滚动 - (function(){ - let timer = null; - let $gotop = document.querySelector('.mod-fixedbar .gotop'); - $gotop.addEventListener('click',function(){ - cancelAnimationFrame(timer); - let scrollTop = document.documentElement.scrollTop; - let move = scrollTop/18; - timer = requestAnimationFrame(function fn(){ - var oTop = document.documentElement.scrollTop; - if(oTop > 0){ - document.documentElement.scrollTop = oTop - move; - timer = requestAnimationFrame(fn); - }else{ - cancelAnimationFrame(timer); - } - }); - }); - })();