fix downIcon

This commit is contained in:
chiu 2021-09-02 13:28:12 +08:00
parent 7ceaf5c75a
commit 929b449b3e
1 changed files with 7 additions and 3 deletions

View File

@ -799,9 +799,13 @@ function transdate(){
}); });
$('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px'); $('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px');
$(".downIcon").click(function() { $(".downIcon").click(function() {
var theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10; $(".kenjohn").addClass('navFixed');
$("html, body").animate({ $('.layout-content').css('margin-top',$('.kenjohn').height());
scrollTop: theTop }, {duration: 500,easing: "swing"}); window.setTimeout(function(){
var theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;
$("html, body").animate({
scrollTop: theTop }, {duration: 500,easing: "swing"});
},10);
return false; return false;
}); });