Fix bug.
This commit is contained in:
parent
23210ca954
commit
6c3dd50722
|
@ -50,9 +50,6 @@
|
||||||
}
|
}
|
||||||
function open_kenjoh(flag){
|
function open_kenjoh(flag){
|
||||||
if(flag){
|
if(flag){
|
||||||
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());
|
|
||||||
}
|
|
||||||
$('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */
|
$('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */
|
||||||
}else{
|
}else{
|
||||||
if ($('.header-banner').html().trim() == "") {
|
if ($('.header-banner').html().trim() == "") {
|
||||||
|
@ -60,7 +57,6 @@
|
||||||
}else{
|
}else{
|
||||||
$('.kenjohn').removeClass('navRel').removeClass('navFixed'); /* 移除選單固定效果 */
|
$('.kenjohn').removeClass('navRel').removeClass('navFixed'); /* 移除選單固定效果 */
|
||||||
}
|
}
|
||||||
$('.layout-content').css('margin-top','');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function recalc_kenjohn_header(){
|
function recalc_kenjohn_header(){
|
||||||
|
@ -639,11 +635,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
//header banner setting
|
//header banner setting
|
||||||
if ( location.href.search('editmode=on') != -1 ) {
|
if ( location.href.search('editmode=on') != -1 ) {
|
||||||
$('.header-banner').css('z-index','2');
|
$('.header-banner').css('z-index','2');
|
||||||
$('.header-banner').css('margin-top','8em');
|
$('.header-banner').css('margin-top','8em');
|
||||||
} else {
|
} else {
|
||||||
$('.header-banner').css({
|
$('.header-banner').css({
|
||||||
'width': '100%',
|
'width': '100%',
|
||||||
'position': 'relative',
|
'position': 'relative',
|
||||||
'top': '0',
|
'top': '0',
|
||||||
|
|
Loading…
Reference in New Issue