fix error

This commit is contained in:
chiu 2021-09-02 13:45:06 +08:00
parent f8e710150e
commit f139a4cc68
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ function transdate(){
$(".kenjohn").addClass('navFixed'); $(".kenjohn").addClass('navFixed');
window.setTimeout(function(){ window.setTimeout(function(){
var theTop; var theTop;
if (parseInt($('.layout-content').css('margin-top')==0){ if (parseInt($('.layout-content').css('margin-top')==0)){
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10; theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10;
}else{ }else{
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10; theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;