This commit is contained in:
rulingcom 2023-03-29 11:55:28 +08:00
parent 2a02a99c8f
commit 4d54742586
2 changed files with 20 additions and 10 deletions

View File

@ -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();
orbit.sitemenuDropdown();
orbit.goBackTop('top', 800);
@ -707,6 +712,9 @@ function transdate(){
window.clearTimeout(window.focus_timeout_id);
}
var _this = $(document.activeElement);//$(this);
if(_this.is('body')){
return;
}
if($('body').css('position') != 'fixed' && !_this.hasClass('close-screen-btn') && !_this.hasClass('navbar-toggle')){
var ele_offset = _this[0].getBoundingClientRect().top;
if(_this.parents('.kenjohn.navFixed').length == 0)
@ -741,7 +749,7 @@ function transdate(){
}
}
headerH();
headerH();
$(window).resize(function() {
headerH();
})

View File

@ -156,15 +156,17 @@ a#content{
position: absolute;
}
}
@media screen and (min-width: 769px){
height: 100vh!important;
&:not(.no-video){
@media screen and (min-width: 769px){
height: 100vh!important;
}
@media screen and(min-width:$screen-xs) and (max-width:768px){
height: 1000px!important;
}
@media screen and (max-width: $screen-xs){
height: 720px!important;
}
}
@media screen and(min-width:$screen-xs) and (max-width:768px){
height: 1000px!important;
}
@media screen and (max-width: $screen-xs){
height: 720px!important;
}
}
}
.jp-jplayer{