Fix js bug.

This commit is contained in:
BoHung Chiu 2022-05-20 12:11:37 +08:00
parent 696dbf7ca6
commit 69b8dc7152
1 changed files with 41 additions and 48 deletions

View File

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