Fix js bug.
This commit is contained in:
parent
696dbf7ca6
commit
69b8dc7152
|
@ -477,8 +477,6 @@
|
||||||
if (url == "?editmode=on") {
|
if (url == "?editmode=on") {
|
||||||
$('.tab_content').css({'position': 'relative','display':'block'});
|
$('.tab_content').css({'position': 'relative','display':'block'});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
annc_widget_nav();
|
|
||||||
|
|
||||||
//切換語言停留在同一頁
|
//切換語言停留在同一頁
|
||||||
if(window.location.pathname!="/")
|
if(window.location.pathname!="/")
|
||||||
|
@ -506,7 +504,6 @@ function extendPanelWidget() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extendPanelWidget();
|
extendPanelWidget();
|
||||||
|
|
||||||
// member show tab scroll
|
// member show tab scroll
|
||||||
$('.nav-pills').scrollingTabs({
|
$('.nav-pills').scrollingTabs({
|
||||||
scrollToTabEdge: true,
|
scrollToTabEdge: true,
|
||||||
|
@ -520,18 +517,14 @@ extendPanelWidget();
|
||||||
'</div>'
|
'</div>'
|
||||||
].join('')
|
].join('')
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 當文件物件模型(DOM)載入後,執行init函數
|
// 當文件物件模型(DOM)載入後,執行init函數
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
//RWD 自動縮放headerbannner
|
//RWD 自動縮放headerbannner
|
||||||
function headerH() {
|
function headerH() {
|
||||||
if ($(window).width() < 768) {
|
if ($(window).width() < 768) {
|
||||||
const navH = $('.layout-header .navbar-header').outerHeight();
|
var navH = $('.layout-header .navbar-header').outerHeight();
|
||||||
$('.header-banner').css('height', navH );
|
$('.header-banner').css('height', navH );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue