Fix bug.
This commit is contained in:
parent
2a02a99c8f
commit
4d54742586
|
@ -472,7 +472,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在所有的頁面(包含首頁)執行下面這幾個函數
|
// 在所有的頁面(包含首頁)執行下面這幾個函數
|
||||||
window.has_topest_banner = ($('[data-pp="300"] .w-ad-banner').length != 0);
|
if($('.header-banner .jp-jplayer').length == 0){
|
||||||
|
$('.layout-header .header-banner .w-ba-banner').addClass('no-video');
|
||||||
|
window.has_topest_banner = false;
|
||||||
|
}else{
|
||||||
|
window.has_topest_banner = true;
|
||||||
|
}
|
||||||
initdata1();
|
initdata1();
|
||||||
orbit.sitemenuDropdown();
|
orbit.sitemenuDropdown();
|
||||||
orbit.goBackTop('top', 800);
|
orbit.goBackTop('top', 800);
|
||||||
|
@ -707,6 +712,9 @@ function transdate(){
|
||||||
window.clearTimeout(window.focus_timeout_id);
|
window.clearTimeout(window.focus_timeout_id);
|
||||||
}
|
}
|
||||||
var _this = $(document.activeElement);//$(this);
|
var _this = $(document.activeElement);//$(this);
|
||||||
|
if(_this.is('body')){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if($('body').css('position') != 'fixed' && !_this.hasClass('close-screen-btn') && !_this.hasClass('navbar-toggle')){
|
if($('body').css('position') != 'fixed' && !_this.hasClass('close-screen-btn') && !_this.hasClass('navbar-toggle')){
|
||||||
var ele_offset = _this[0].getBoundingClientRect().top;
|
var ele_offset = _this[0].getBoundingClientRect().top;
|
||||||
if(_this.parents('.kenjohn.navFixed').length == 0)
|
if(_this.parents('.kenjohn.navFixed').length == 0)
|
||||||
|
|
|
@ -156,6 +156,7 @@ a#content{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&:not(.no-video){
|
||||||
@media screen and (min-width: 769px){
|
@media screen and (min-width: 769px){
|
||||||
height: 100vh!important;
|
height: 100vh!important;
|
||||||
}
|
}
|
||||||
|
@ -166,6 +167,7 @@ a#content{
|
||||||
height: 720px!important;
|
height: 720px!important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.jp-jplayer{
|
.jp-jplayer{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
Loading…
Reference in New Issue