Fix js bug.
This commit is contained in:
parent
696dbf7ca6
commit
69b8dc7152
|
@ -477,65 +477,58 @@
|
|||
if (url == "?editmode=on") {
|
||||
$('.tab_content').css({'position': 'relative','display':'block'});
|
||||
}
|
||||
}
|
||||
annc_widget_nav();
|
||||
|
||||
//切換語言停留在同一頁
|
||||
if(window.location.pathname!="/")
|
||||
$("#en").attr("href",window.location.pathname.replace("zh_tw","en"))
|
||||
//切換語言停留在同一頁
|
||||
if(window.location.pathname!="/")
|
||||
$("#en").attr("href",window.location.pathname.replace("zh_tw","en"))
|
||||
|
||||
//檔案室 下載檔案 hover 彈出備註訊息
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
//檔案室 下載檔案 hover 彈出備註訊息
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
|
||||
//下載檔案格式dot pdf分色
|
||||
$(".i-archive .label.label-primary").each(function() {
|
||||
var downloadType = $(this).text();
|
||||
$(this).addClass(downloadType);
|
||||
})
|
||||
//下載檔案格式dot pdf分色
|
||||
$(".i-archive .label.label-primary").each(function() {
|
||||
var downloadType = $(this).text();
|
||||
$(this).addClass(downloadType);
|
||||
})
|
||||
|
||||
//檔案室模組 Widget 手風琴
|
||||
function extendPanelWidget() {
|
||||
var len = $('.panel-title').length;
|
||||
var i = -1;
|
||||
if (len > 0) {
|
||||
// 新增數字到要對應的panel按鈕id及href上面
|
||||
for (i = 0; i < len; i++) {
|
||||
$('.panel-title:eq(' + i + ') .collapsed').attr('href', '#collapse' + i);
|
||||
$('.panel-collapse:eq(' + i + ')').attr('id', 'collapse' + i);
|
||||
//檔案室模組 Widget 手風琴
|
||||
function extendPanelWidget() {
|
||||
var len = $('.panel-title').length;
|
||||
var i = -1;
|
||||
if (len > 0) {
|
||||
// 新增數字到要對應的panel按鈕id及href上面
|
||||
for (i = 0; i < len; i++) {
|
||||
$('.panel-title:eq(' + i + ') .collapsed').attr('href', '#collapse' + i);
|
||||
$('.panel-collapse:eq(' + i + ')').attr('id', 'collapse' + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
extendPanelWidget();
|
||||
// member show tab scroll
|
||||
$('.nav-pills').scrollingTabs({
|
||||
scrollToTabEdge: true,
|
||||
enableSwiping: true,
|
||||
leftArrowContent: [
|
||||
'<div class="scrtabs-tab-scroll-arrow custom-scroll-arrow"><i class="fa fa-caret-left" aria-hidden="true"></i>',
|
||||
'</div>'
|
||||
].join(''),
|
||||
rightArrowContent: [
|
||||
'<div class="scrtabs-tab-scroll-arrow custom-scroll-arrow"><i class="fa fa-caret-right" aria-hidden="true"></i>',
|
||||
'</div>'
|
||||
].join('')
|
||||
});
|
||||
}
|
||||
}
|
||||
extendPanelWidget();
|
||||
|
||||
// member show tab scroll
|
||||
$('.nav-pills').scrollingTabs({
|
||||
scrollToTabEdge: true,
|
||||
enableSwiping: true,
|
||||
leftArrowContent: [
|
||||
'<div class="scrtabs-tab-scroll-arrow custom-scroll-arrow"><i class="fa fa-caret-left" aria-hidden="true"></i>',
|
||||
'</div>'
|
||||
].join(''),
|
||||
rightArrowContent: [
|
||||
'<div class="scrtabs-tab-scroll-arrow custom-scroll-arrow"><i class="fa fa-caret-right" aria-hidden="true"></i>',
|
||||
'</div>'
|
||||
].join('')
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 當文件物件模型(DOM)載入後,執行init函數
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function(){
|
||||
//RWD 自動縮放headerbannner
|
||||
function headerH() {
|
||||
if ($(window).width() < 768) {
|
||||
const navH = $('.layout-header .navbar-header').outerHeight();
|
||||
$('.header-banner').css('height', navH );
|
||||
var navH = $('.layout-header .navbar-header').outerHeight();
|
||||
$('.header-banner').css('height', navH );
|
||||
}
|
||||
}
|
||||
}
|
||||
headerH();
|
||||
headerH();
|
||||
$(window).resize(function() {
|
||||
headerH();
|
||||
})
|
||||
|
@ -545,7 +538,7 @@ extendPanelWidget();
|
|||
|
||||
$(window).load(function(){
|
||||
$("iframe[src*='google']").attr('title','googleOauth');
|
||||
});
|
||||
});
|
||||
|
||||
// 執行 member等高計算,目前改用flexbox故mark掉 by ika 20160105
|
||||
// $(window).load(function() {
|
||||
|
|
Loading…
Reference in New Issue