Fix bug.
This commit is contained in:
parent
f7602493a9
commit
fabf29a5bf
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue