This commit is contained in:
rulingcom 2022-12-09 17:31:29 +08:00
parent f7602493a9
commit fabf29a5bf
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@
if ( $('.header-banner').length != 0) { if ( $('.header-banner').length != 0) {
$('.layout-header').css('height', ''); $('.layout-header').css('height', '');
var scrollTop = $(window).scrollTop(); var scrollTop = $(window).scrollTop();
if (!window.has_topest_banner || scrollTop>5) { /* 要滑動到選單的距離 */ if (!window.has_topest_banner){
$('.kenjohn').removeClass('navFixed').addClass('navRel');
}else if (scrollTop>5) { /* 要滑動到選單的距離 */
if (parseInt($('.layout-content').css('margin-top'))==0 && $('.layout-content.topcontent').length != 0 && $('.layout-content.topcontent').offset().top<400){ if (parseInt($('.layout-content').css('margin-top'))==0 && $('.layout-content.topcontent').length != 0 && $('.layout-content.topcontent').offset().top<400){
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height()); $('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());
} }