From f139a4cc68610a75e711187429910953dc6e91fe Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 2 Sep 2021 13:45:06 +0800 Subject: [PATCH] fix error --- assets/javascripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 68f17d6..8fdd4d3 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -802,7 +802,7 @@ function transdate(){ $(".kenjohn").addClass('navFixed'); window.setTimeout(function(){ 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; }else{ theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;