fix error

This commit is contained in:
rulingcom committed 2021-11-14 03:23:33 +00:00
1 parent b7c155e53c
commit 5464c7c5f8
41 files changed
+54 -166

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@
var scrollBottom = $('html').height() - $(window).height() - $('.kenjohn').height();
if (scrollTop>5 && scrollBottom>0) { /* 要滑動到選單的距離 */
if (parseInt($('.layout-content').css('margin-top'))==0){
$('.layout-content').css('margin-top',$('.kenjohn').height());
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());
}
$('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */
} else {
@@ -827,7 +827,7 @@ function transdate(){
var theTop;
if (stop){
$(".kenjohn").addClass('navFixed');
$('.layout-content').css('margin-top',$('.kenjohn').height());
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());
if (parseInt($('.layout-content').css('margin-top')==0)){
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10;
}else{