Fix bug.
This commit is contained in:
parent
66913c5107
commit
5861b8360e
|
@ -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)
|
||||||
|
@ -751,7 +759,6 @@ function transdate(){
|
||||||
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();
|
||||||
|
|
|
@ -154,6 +154,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;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +166,7 @@ a#content{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.jp-jplayer{
|
.jp-jplayer{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}}
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue