From 7ceaf5c75ac9c75de5005343003c818d556ad549 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 2 Sep 2021 13:02:28 +0800 Subject: [PATCH] fix error --- assets/javascripts/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 39dc725..02ddd68 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -799,11 +799,10 @@ function transdate(){ }); $('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px'); $(".downIcon").click(function() { - var theTop = $("#onesection").offset().top - 160;; + var theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10; $("html, body").animate({ scrollTop: theTop }, {duration: 500,easing: "swing"}); return false; - }); });