This commit is contained in:
rulingcom 2023-03-29 11:55:59 +08:00
parent 66913c5107
commit 5861b8360e
4 changed files with 43 additions and 13 deletions

View File

@ -484,7 +484,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);
@ -720,6 +725,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)
@ -750,11 +758,10 @@ function transdate(){
//RWD 自動縮放headerbannner //RWD 自動縮放headerbannner
function headerH() { function headerH() {
if ($(window).outerWidth() < 769) { if ($(window).outerWidth() < 769) {
const navH = $('.layout-header .navbar-header').outerHeight(); const navH = $('.layout-header .navbar-header').outerHeight();
}
} }
} headerH();
headerH();
$(window).resize(function() { $(window).resize(function() {
headerH(); headerH();
}) })

View File

@ -154,14 +154,16 @@ a#content{
position: absolute; position: absolute;
} }
} }
@media screen and (min-width: 769px){ &:not(.no-video){
height: 100vh!important; @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(min-width:$screen-xs) and (max-width:768px){
} height: 1000px!important;
@media screen and (max-width: $screen-xs){ }
height: 720px!important; @media screen and (max-width: $screen-xs){
height: 720px!important;
}
} }
} }
} }

View File

@ -0,0 +1,13 @@
<h3 class="page-module-title">{{page-title}}</h3>
<article>
<div data-level="0" data-list="journal_papers">
<h3 class="year">{{year}}</h3>
<div data-level="1" data-list="jps_list">
<h4>{{name}}</h4>
<ul data-level="2" data-list="jps">
<li>{{title}}</li>
</ul>
</div>
</div>
</article>
{{pagination_goes_here}}

View File

@ -15,6 +15,14 @@
"en" : "2. List which includes search" "en" : "2. List which includes search"
}, },
"thumbnail" : "thumb.png" "thumbnail" : "thumb.png"
},
{
"filename" : "index_by_author",
"name" : {
"zh_tw" : "3. 作者論文",
"en" : "3. List by Author"
},
"thumbnail" : "thumb.png"
} }
] ]
} }