From da471e58d2dcf6e424b8e0f00a01ae079bf30eed Mon Sep 17 00:00:00 2001 From: kenlee Date: Mon, 24 Mar 2025 17:47:50 +0800 Subject: [PATCH] 'refresh' --- assets/javascripts/app.js | 614 ++++++++++++++---- .../stylesheets/template/layout/header.scss | 1 + assets/stylesheets/template/layout/slide.scss | 2 +- modules/ad_banner/_ad_banner_widget0.html.erb | 5 +- modules/ad_banner/_ad_banner_widget1.html.erb | 5 +- .../_ad_banner_widget2_video.html.erb | 5 +- modules/ad_banner/_ad_banner_widget3.html.erb | 5 +- modules/ad_banner/_ad_banner_widget5.html.erb | 5 +- .../ad_banner/_ad_banner_widget6.html .erb | 5 +- modules/ad_banner/_ad_banner_widget7.html.erb | 12 +- .../_ad_banner_widget8_video.html.erb | 5 +- modules/announcement/_annc_widget1.html.erb | 2 +- modules/announcement/_annc_widget15.html.erb | 2 +- modules/announcement/_annc_widget16.html.erb | 4 +- modules/announcement/_annc_widget18.html.erb | 6 +- modules/announcement/_annc_widget19.html.erb | 2 +- modules/announcement/_annc_widget2.html.erb | 2 +- modules/announcement/_annc_widget20.html.erb | 2 +- modules/announcement/_annc_widget21.html.erb | 2 +- modules/announcement/_annc_widget23.html.erb | 33 + modules/announcement/_annc_widget24.html.erb | 111 ++++ modules/announcement/_annc_widget4.html.erb | 2 +- modules/announcement/annc_index20.html.erb | 8 +- modules/announcement/annc_index21.html.erb | 4 +- modules/announcement/info.json | 16 + modules/announcement/show.html.erb | 8 +- .../thumbs/annc_widget23_thumbs.png | Bin 0 -> 12280 bytes .../thumbs/annc_widget24_thumbs.png | Bin 0 -> 13396 bytes modules/archive/archive_index16.html.erb | 3 + modules/calendar/index.html.erb | 10 +- modules/e_paper/epaper_index1.html.erb | 4 +- modules/e_paper/epaper_index2.html.erb | 8 +- .../_event_news_widget1.html.erb | 2 +- .../_event_news_widget15.html.erb | 15 +- .../_event_news_widget2.html.erb | 2 + .../_event_news_widget20.html.erb | 15 +- .../_event_news_widget21.html.erb | 14 +- .../_event_news_widget22.html.erb | 2 +- .../_event_news_widget4.html.erb | 2 +- modules/event_news_mod/show.html.erb | 2 +- modules/event_news_mod/show2.html.erb | 2 +- modules/faq/faq_index2.html.erb | 7 +- modules/gallery/gallery_index1.html.erb | 11 +- modules/gallery/gallery_index2.html.erb | 11 +- modules/gallery/gallery_index3.html.erb | 11 +- modules/gallery/gallery_index4.html.erb | 13 +- modules/gallery/gallery_index5.html.erb | 26 +- modules/gallery/gallery_index6.html.erb | 8 +- modules/member/info.json | 8 + modules/member/member_index2.html.erb | 2 +- modules/member/member_index3.html.erb | 2 +- modules/member/member_index5.html.erb | 2 +- modules/member/member_index7.html.erb | 38 ++ modules/member/thumbs/member_index4_thumb.png | Bin 0 -> 7101 bytes modules/member/thumbs/member_index5_thumb.png | Bin 0 -> 6136 bytes modules/member/thumbs/member_index7_thumb.png | Bin 0 -> 6149 bytes modules/property_hire/index_calendar.html.erb | 66 ++ modules/property_hire/info.json | 10 +- .../publication/publications_index2.html.erb | 2 +- .../publication/publications_index3.html.erb | 2 +- modules/universal_table/index.html.erb | 4 +- modules/universal_table/index2.html.erb | 4 +- modules/video_pro/_video_pro_widget1.html.erb | 33 +- modules/video_pro/_video_pro_widget2.html.erb | 59 ++ modules/video_pro/_video_pro_widget3.html.erb | 129 ++++ modules/video_pro/_video_pro_widget4.html.erb | 47 ++ modules/video_pro/_video_pro_widget5.html.erb | 176 +++++ modules/video_pro/info.json | 53 +- modules/video_pro/video_pro_index1.html.erb | 9 +- modules/video_pro/video_pro_index2.html.erb | 8 +- .../video_pro/video_pro_index2_tag.html.erb | 6 - modules/video_pro/video_pro_index3.html.erb | 10 +- modules/video_pro/video_pro_index4.html.erb | 162 +++++ .../video_pro_index_post_agency1.html.erb | 8 +- .../web_resource/_web_res_widget2.html.erb | 1 + .../web_resource/_web_res_widget3.html.erb | 4 - 76 files changed, 1593 insertions(+), 288 deletions(-) create mode 100644 modules/announcement/_annc_widget23.html.erb create mode 100644 modules/announcement/_annc_widget24.html.erb create mode 100644 modules/announcement/thumbs/annc_widget23_thumbs.png create mode 100644 modules/announcement/thumbs/annc_widget24_thumbs.png create mode 100644 modules/member/member_index7.html.erb create mode 100644 modules/member/thumbs/member_index4_thumb.png create mode 100644 modules/member/thumbs/member_index5_thumb.png create mode 100644 modules/member/thumbs/member_index7_thumb.png create mode 100644 modules/property_hire/index_calendar.html.erb create mode 100644 modules/video_pro/_video_pro_widget2.html.erb create mode 100644 modules/video_pro/_video_pro_widget3.html.erb create mode 100644 modules/video_pro/_video_pro_widget4.html.erb create mode 100644 modules/video_pro/_video_pro_widget5.html.erb create mode 100644 modules/video_pro/video_pro_index4.html.erb diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index cf46154..188e56a 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -1,6 +1,7 @@ ;(function($, win, undefined) { // ECMAScript 5 嚴格模式 'use strict'; + //header fixed在上方 function initdata1() { if ( $('.homebanner').length != 0) { @@ -54,14 +55,14 @@ }, // 外掛,所有的外掛都可以放到這個物件裡 - plugins: { - // 自適應圖片裁切,Ray的外掛 - bullEye: function() { - $('.bullseye').bullseye({ - fadeEffect: false - }); - } - }, + // plugins: { + // // 自適應圖片裁切,Ray的外掛 + // bullEye: function() { + // $('.bullseye').bullseye({ + // fadeEffect: false + // }); + // } + // }, // nav: { // 自適應使用的下拉選單 @@ -410,7 +411,7 @@ initdata1(); orbit.sitemenuDropdown(); orbit.goBackTop('top', 800); - orbit.plugins.bullEye(); + // orbit.plugins.bullEye(); orbit.setColumn('.left-column', '.right-column'); // 自適應網頁使用,當網頁載入時,如果視窗寬度小於769,就執行orbit.nav.setDropdown函數 @@ -464,83 +465,344 @@ // $('.header-buttom').appendTo($('.dropdowns')); // } function forFreeGo() { + if (document.documentElement.lang === 'zh_tw') { + document.documentElement.lang = 'zh-Hant'; + } + //tab鍵按下 + $(document).on('keydown', function(e) { + if (e.key === "Tab" || e.keyCode === 9) { + $('.header-nav, .dropdowns').css('display', 'block'); + } + }); + + //li被hover + $('li').hover( + function() { + $(this).children('ul').addClass('show'); + }, + function() { + $(this).children('ul').removeClass('show'); + } + ); + //刪除空的h1 + $('h1').each(function() { + if ($(this).text().trim() === '') { + $(this).remove(); + } + }); + // + // $('.epaper-index2-container h4 a').each(function() { + // var $this = $(this); + // // 取得 a 內部的純文字內容,移除前後空白 + // var textContent = $this.text().trim(); + // // 檢查 a 內部是否所有子元素都是 display: none + // var hasVisibleContent = $this.children().filter(function() { + // return $(this).css('display') !== 'none'; + // }).length > 0; + // // 如果 a 內部沒有純文字,且內部所有元素都是 display: none,則刪除該 a + // if (textContent === '' || !hasVisibleContent) { + // $this.remove(); + // } + // }); + //refresh_btn加上aria-label + $('#refresh_btn').each(function() { + var $this = $(this); + + // 如果 button 尚未有 aria-label,則新增 + if (!$this.attr('aria-label')) { + $this.attr('aria-label', '重新整理'); + } + }); + //無障礙會員表格刪除沒有顯示的th + $('.i-member-tr-head').each(function() { + if ($(this).css('display') === 'none') { + $(this).remove(); + } + }); + //無障礙公告a是空的 + $('.w-annc__subtitle').each(function () { + var $this = $(this); + var $link = $this.find('a'); + + // 檢查 a 是否存在,且去除空白後是否為空字串 + if ($link.length && $link.text().trim() === '') { + $this.remove(); // 移除外層 .w-annc__subtitle + } + }); + //無障礙單位轉換 + $("[style*='font-size']").each(function() { + var fontSize = $(this).css("font-size"); + if (fontSize.includes("px")) { + var pxValue = parseFloat(fontSize); // 取得數值 + var emValue = pxValue / 16; // 假設 1em = 16px + $(this).css("font-size", emValue + "em"); + } + }); + $("[style*='font-size']").each(function() { + var fontSize = $(this).css("font-size"); + if (fontSize.includes("pt")) { + var ptValue = parseFloat(fontSize); // 取得數值 + var emValue = ptValue / 12; // 1em = 12pt(一般轉換標準) + $(this).css("font-size", emValue + "em"); + } + }); + $("table").each(function() { + $(this).find("tr").each(function(rowIndex) { + $(this).find("th").each(function(colIndex) { + if (rowIndex === 0) { + // 第一列的 th,適用於該欄 + $(this).attr("scope", "col"); + } else if (colIndex === 0) { + // 其他列的第一個 th,適用於該行 + $(this).attr("scope", "row"); + } + }); + }); + }); + $(".banner-pager button").addClass('banner-pagerbtn'); + $(".banner-pager button").attr("type","button"); + $(".banner-pager button").append('下一張'); + $("button").attr("role", "button"); + $("select").attr("title","選擇類別"); + $(".jarallax-video-audio").attr("role", "button"); + $('button').each(function() { + var $this = $(this); + if (!$this.attr('title') || $this.attr('title').trim() === '') { + $this.attr('title', '按鈕'); + } + }); + $('img').each(function() { + var $this = $(this); + if (!$this.attr('alt') || $this.attr('alt').trim() === '') { + $this.attr('alt', '這是一張圖片'); + } + }); + $('img').each(function() { + var $this = $(this); + if (!$this.attr('title') || $this.attr('title').trim() === '') { + $this.attr('title', '這是一張圖片'); + } + }); + $(".w-annc__img-wrap a").each(function () { + var $this = $(this); + // 確保 內沒有文字節點 (避免重複添加) + if ($this.text().trim() === "") { + $this.append('公告圖片'); + } + }); + $(".widget-link__widget-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('公告標題'); + } + }); + $(".sitemenu-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('次選單'); + } + }); + $(".annc-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('內頁公告標題'); + } + }); + $(".event-annc-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('內頁活動公告標題'); + } + }); + $(".show-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('內頁活動公告標題'); + } + }); + $(".w-annc__widget-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('公告標題'); + } + }); + $(".widget-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('網路資源標題'); + } + }); + $(".widget-title").each(function () { + if ($(this).text().trim() === "") { + $(this).append('網路資源標題'); + } + }); + $('input').each(function() { + var $this = $(this); + if (!$this.attr('title') || $this.attr('title').trim() === '') { + $this.attr('title', '網內搜尋'); + } + }); + $('.rucaptcha-image').each(function() { + var $button = $(this).next('button'); // 取得緊接在 .rucaptcha-image 之後的 button + if ($button.length && !$button.attr('aria-label')) { + $button.attr('aria-label', '播放驗證碼語音'); + } + }); + // 幫有連結目的之所有a標籤加上aria-label + $('a').each(function() { + var $this = $(this); + + // 如果 已經有 aria-label,則跳過 + if ($this.attr('aria-label')) return; + + var href = $this.attr('href'); + if (!href) return; // 如果沒有 href,則跳過 + + var ariaLabel = ""; + + // 加入開啟方式 + if ($this.attr('target') === '_self') { + ariaLabel += '在本視窗開啟 '; + } else if ($this.attr('target') === '_blank') { + ariaLabel += '在新視窗開啟 '; + } + + // 取得 的文字內容 + var linkText = $this.text().trim(); + if (linkText) { + ariaLabel += linkText; + } else if ($this.children('span').length === 1) { + ariaLabel += $this.children('span').text().trim(); + } + // 如果包含 圖示,標示為 icon + if ($this.find('i').length) { + ariaLabel = "這是 icon"; + } + + // 如果是圖片連結,標示為照片 + if ($this.find('img').length) { + ariaLabel = "這是一張照片"; + } + + // 設定 aria-label + if (ariaLabel) { + $this.attr('aria-label', ariaLabel); + } + }); + // 幫有連結目的之所有a標籤加上title - for(var i=0;i<$('a').length;i++){ - if($('a').eq(i).attr("href") != "" || $('a').eq(i).attr("href") != undefined ){ - var titlestr=""; - if($('a').eq(i).attr('target')=='_self') - titlestr += '在本視窗開啟 '; - else if($('a').eq(i).attr('target') == '_blank') - titlestr += '在新視窗開啟 '; - if($('a').eq(i).attr('title') == "" || $('a').eq(i).attr('title')==undefined && $('a').eq(i).html().search('span').length==1) - titlestr += $('a').eq(i).find('>span').html().trim(); - else if($('a').eq(i).attr('title') == "" || $('a').eq(i).attr('title') == undefined){ - try{ - if($('a').eq(i).html().trim().split('>').length==2) - titlestr += $('a').eq(i).html().trim().split('>')[1].trim(); - else if($('a').eq(i).html().trim().split('>').length==3) - titlestr += $('a').eq(i).html().trim().split('>')[2].trim(); - }catch(e){}; - } - else - titlestr += $('a').eq(i).attr('title'); - if(titlestr.search(' 已經有 title 屬性,則不進行修改 + if ($this.attr('title')) return; + var titlestr = ""; + // 加入開啟方式 + if ($this.attr('target') == '_self') { + titlestr += '在本視窗開啟 '; + } else if ($this.attr('target') == '_blank') { + titlestr += '在新視窗開啟 '; + } + // 決定 title 內容 + var linkText = $this.text().trim(); + if (linkText) { + titlestr += linkText; + } else if ($this.children('span').length == 1) { + titlestr += $this.children('span').text().trim(); + } + // 如果是圖片連結,標示為照片 + if ($this.find('img').length) { + titlestr = "這是一張照片"; + } + // 設定 title + if (titlestr) { + $this.attr('title', titlestr); + } + }); + + // for(var i=0;i<$('a').length;i++){ + // if($('a').eq(i).attr("href") != "" || $('a').eq(i).attr("href") != undefined ){ + // var titlestr=""; + // if($('a').eq(i).attr('target')=='_self') + // titlestr += '在本視窗開啟 '; + // else if($('a').eq(i).attr('target') == '_blank') + // titlestr += '在新視窗開啟 '; + // if($('a').eq(i).attr('title') == "" || $('a').eq(i).attr('title')==undefined && $('a').eq(i).html().search('span').length==1) + // titlestr += $('a').eq(i).find('>span').html().trim(); + // else if($('a').eq(i).attr('title') == "" || $('a').eq(i).attr('title') == undefined){ + // try{ + // if($('a').eq(i).html().trim().split('>').length==2) + // titlestr += $('a').eq(i).html().trim().split('>')[1].trim(); + // else if($('a').eq(i).html().trim().split('>').length==3) + // titlestr += $('a').eq(i).html().trim().split('>')[2].trim(); + // }catch(e){}; + // } + // else + // titlestr += $('a').eq(i).attr('title'); + // if(titlestr.search('=0;i--) - if($('dd a.i-archive-files-item').eq(i).html().trim()=="") - $('dd a.i-archive-files-item').eq(i).parent('dd').remove(); + for(var i=0;i<$('.w-ba-banner__slide a').length;i++){ + if($('.w-ba-banner__slide a').eq(i).attr('href')=="") + $('.w-ba-banner__slide a').eq(i).removeAttr('href'); + if($('.w-ba-banner__slide a').eq(i).attr('target') == "") + $('.w-ba-banner__slide a').eq(i).removeAttr('target'); + }; + // 幫無標題之iframe加上title + for(var i=0;i<$('iframe').length;i++) + if($('iframe').eq(i).attr('title')=="" || $('iframe').eq(i).attr('title')== undefined ){ + if($('iframe').eq(i).attr('src').search('facebook') != -1 ) + $('iframe').eq(i).attr('title','facebook'); + else if($('iframe').eq(i).attr('src').search('google') != -1 ) + $('iframe').eq(i).attr('title','google'); + else if($('iframe').eq(i).attr('src').search('youtube') != -1 ) + $('iframe').eq(i).attr('title','youtube'); + else if($('iframe').eq(i).attr('src').search('twitframe') != -1 ) + $('iframe').eq(i).attr('title','twitter'); + else + $('iframe').eq(i).attr('title','unknown'); + }; + //button是空的就加上內容 + $('button').each(function() { + var $this = $(this); + var titleText = $this.attr('title') || ''; + + // 檢查 button 是否是空的(沒有可見文字或子元素) + if ($this.text().trim() === '' && !$this.children().length && titleText) { + // 新增隱藏的 span,內容為 title + $this.append('' + titleText + ''); + } + }); + // 刪除空的檔案室 + var archievelen = $('dd a.i-archive-files-item').length; + for(i=archievelen-1;i>=0;i--) + if($('dd a.i-archive-files-item').eq(i).html().trim()=="") + $('dd a.i-archive-files-item').eq(i).parent('dd').remove(); // 刪除具有空連結欄位的橫列 - for(var i = 0;i < $('*[data-list] tr td a').length ; i++) - if($('*[data-list] tr td a').eq(i).html().trim()=="") - $('*[data-list] tr td a').eq(i).parent('td').parent('tr').remove(); - // tab按鍵選到menu,會顯示下層的menu(為了符合無障礙) - $('.nav-level-0>li>a').focus(function(e) { + for(var i = 0;i < $('*[data-list] tr td a').length ; i++) + if($('*[data-list] tr td a').eq(i).html().trim()=="") + $('*[data-list] tr td a').eq(i).parent('td').parent('tr').remove(); + // tab按鍵選到menu,會顯示下層的menu(為了符合無障礙) + $('.nav-level-0>li>a').focus(function(e) { e.stopPropagation(); - $(this).parent().focus(); + $(this).parent().focus(); if ($(this).parent().find('.nav-level-1').hasClass('show')) { } else { $('.nav-level-1').removeClass('show'); $(this).parent().find('.nav-level-1').addClass('show'); } }); - $('.nav-level-1>li>a').focus(function(e) { - e.stopPropagation(); - if ($(this).parent().find('.nav-level-2').hasClass('show')) { - }else{ - $('.nav-level-2').removeClass('show'); - $(this).parent().find('.nav-level-2').addClass('show'); - } - }); - $('show').parent('li').focus(); + $('.nav-level-1>li>a').focus(function(e) { + e.stopPropagation(); + if ($(this).parent().find('.nav-level-2').hasClass('show')) { + }else{ + $('.nav-level-2').removeClass('show'); + $(this).parent().find('.nav-level-2').addClass('show'); + } + }); + $('show').parent('li').focus(); } forFreeGo(); @@ -548,9 +810,9 @@ //header banner setting if ( location.href.search('editmode=on') != -1 ) { - $('.header-banner').css('z-index','2'); - } else { - $('.header-banner').css({ + $('.header-banner').css('z-index','2'); + } else { + $('.header-banner').css({ 'position': 'relative', 'top': '0', 'z-index': '-2', @@ -630,19 +892,126 @@ extendPanelWidget(); } +$(document).ready(function () { + if ($(".main-content .video_detail").length > 0) { + $('.videopagenone').css("display","none"); + $('.videopage').css('display', 'block'); + $('.sitemenu').css("display","none"); + $('span img[alt="HD"]').parent().hide(); + $('span img[alt="觀看人數"]').remove(); + $(".video_detail .view_info span").each(function () { + var text = $(this).text().trim(); // 取得 裡的文字,去掉前後空格 + var number = text.replace(/\D/g, ""); // 只保留數字部分 + if (number) { + $(this).text(`・觀看次數:${number}次`); // 更新內容格式 + } + }); + $(".movie_desc").before('

單元介紹

'); + $(".movie_desc").each(function () { + var decodedHtml = $("
- +
    "> "> diff --git a/modules/ad_banner/_ad_banner_widget3.html.erb b/modules/ad_banner/_ad_banner_widget3.html.erb index f2618ed..005de15 100644 --- a/modules/ad_banner/_ad_banner_widget3.html.erb +++ b/modules/ad_banner/_ad_banner_widget3.html.erb @@ -27,7 +27,10 @@ - +
      diff --git a/modules/ad_banner/_ad_banner_widget5.html.erb b/modules/ad_banner/_ad_banner_widget5.html.erb index a64c20d..ecc06bb 100644 --- a/modules/ad_banner/_ad_banner_widget5.html.erb +++ b/modules/ad_banner/_ad_banner_widget5.html.erb @@ -34,7 +34,10 @@ - +
        diff --git a/modules/ad_banner/_ad_banner_widget6.html .erb b/modules/ad_banner/_ad_banner_widget6.html .erb index c42a9f4..96dbcf0 100644 --- a/modules/ad_banner/_ad_banner_widget6.html .erb +++ b/modules/ad_banner/_ad_banner_widget6.html .erb @@ -32,7 +32,10 @@ - +
          diff --git a/modules/ad_banner/_ad_banner_widget7.html.erb b/modules/ad_banner/_ad_banner_widget7.html.erb index 91bfaed..d4449b9 100644 --- a/modules/ad_banner/_ad_banner_widget7.html.erb +++ b/modules/ad_banner/_ad_banner_widget7.html.erb @@ -32,7 +32,10 @@ - +
            "> "> @@ -69,13 +72,6 @@ .w-ba-banner .controlplay{ width: auto; } - .w-ba-banner .button-mid{ - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - } .next-button,.prev-button{ cursor: pointer; } diff --git a/modules/ad_banner/_ad_banner_widget8_video.html.erb b/modules/ad_banner/_ad_banner_widget8_video.html.erb index d7b2f79..aace0fb 100644 --- a/modules/ad_banner/_ad_banner_widget8_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget8_video.html.erb @@ -29,7 +29,10 @@
            - +
              "> "> diff --git a/modules/announcement/_annc_widget1.html.erb b/modules/announcement/_annc_widget1.html.erb index 9301bdf..37a44d2 100644 --- a/modules/announcement/_annc_widget1.html.erb +++ b/modules/announcement/_annc_widget1.html.erb @@ -6,7 +6,7 @@
            • diff --git a/modules/announcement/_annc_widget15.html.erb b/modules/announcement/_annc_widget15.html.erb index 29333cc..b0b0939 100644 --- a/modules/announcement/_annc_widget15.html.erb +++ b/modules/announcement/_annc_widget15.html.erb @@ -26,7 +26,7 @@ data-cycle-slides=".w-annc__item" >
            • - + {{img_description}}
              diff --git a/modules/announcement/_annc_widget16.html.erb b/modules/announcement/_annc_widget16.html.erb index c72fa98..fdbd314 100644 --- a/modules/announcement/_annc_widget16.html.erb +++ b/modules/announcement/_annc_widget16.html.erb @@ -5,8 +5,8 @@ diff --git a/modules/announcement/_annc_widget18.html.erb b/modules/announcement/_annc_widget18.html.erb index 5289549..fc7c154 100644 --- a/modules/announcement/_annc_widget18.html.erb +++ b/modules/announcement/_annc_widget18.html.erb @@ -6,11 +6,11 @@ <%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %>
                -
              • +
              • diff --git a/modules/announcement/_annc_widget19.html.erb b/modules/announcement/_annc_widget19.html.erb index 1fc8ade..cfd29dd 100644 --- a/modules/announcement/_annc_widget19.html.erb +++ b/modules/announcement/_annc_widget19.html.erb @@ -26,7 +26,7 @@ data-cycle-slides=".w-annc__item" >
              • - +
                {{status}} diff --git a/modules/announcement/_annc_widget2.html.erb b/modules/announcement/_annc_widget2.html.erb index 33dc4f4..fcd093f 100644 --- a/modules/announcement/_annc_widget2.html.erb +++ b/modules/announcement/_annc_widget2.html.erb @@ -5,7 +5,7 @@
                • diff --git a/modules/announcement/_annc_widget20.html.erb b/modules/announcement/_annc_widget20.html.erb index 88000ed..dbb32c2 100644 --- a/modules/announcement/_annc_widget20.html.erb +++ b/modules/announcement/_annc_widget20.html.erb @@ -8,7 +8,7 @@
                  • - + {{img_description}}
                    diff --git a/modules/announcement/_annc_widget21.html.erb b/modules/announcement/_annc_widget21.html.erb index 090d1a6..80c9b2f 100644 --- a/modules/announcement/_annc_widget21.html.erb +++ b/modules/announcement/_annc_widget21.html.erb @@ -26,7 +26,7 @@ data-cycle-slides=".w-annc__item" >
                  • - + {{img_description}}
                    diff --git a/modules/announcement/_annc_widget23.html.erb b/modules/announcement/_annc_widget23.html.erb new file mode 100644 index 0000000..33e64c3 --- /dev/null +++ b/modules/announcement/_annc_widget23.html.erb @@ -0,0 +1,33 @@ +
                    +

                    + {{widget-title}} +

                    + + +
                    diff --git a/modules/announcement/_annc_widget24.html.erb b/modules/announcement/_annc_widget24.html.erb new file mode 100644 index 0000000..6dc75ab --- /dev/null +++ b/modules/announcement/_annc_widget24.html.erb @@ -0,0 +1,111 @@ +
                    + +
                      +
                    • + +
                      +
                      + + {{status}} + + + + + {{category}} + +
                      +

                      + {{title}} +

                      +

                      {{subtitle}}

                      +
                      +
                    • +
                    +
                    + + diff --git a/modules/announcement/_annc_widget4.html.erb b/modules/announcement/_annc_widget4.html.erb index d9bc928..5fb4743 100644 --- a/modules/announcement/_annc_widget4.html.erb +++ b/modules/announcement/_annc_widget4.html.erb @@ -8,7 +8,7 @@
                    • - + {{img_description}}
                      diff --git a/modules/announcement/annc_index20.html.erb b/modules/announcement/annc_index20.html.erb index 590bae5..26d1d38 100644 --- a/modules/announcement/annc_index20.html.erb +++ b/modules/announcement/annc_index20.html.erb @@ -24,6 +24,12 @@
                    {{pagination_goes_here}} + + \ No newline at end of file diff --git a/modules/announcement/annc_index21.html.erb b/modules/announcement/annc_index21.html.erb index 62a4c5b..2a45524 100644 --- a/modules/announcement/annc_index21.html.erb +++ b/modules/announcement/annc_index21.html.erb @@ -31,7 +31,7 @@ function postdate() { var date = $('.i-annc__postdate'); for (let i=0; i + \ No newline at end of file diff --git a/modules/announcement/info.json b/modules/announcement/info.json index d19b7e6..282a109 100644 --- a/modules/announcement/info.json +++ b/modules/announcement/info.json @@ -346,6 +346,22 @@ "en": "18. 3-Column Standard Image + Text Lite (widget-title, title, subtitle(only display 15 words))" }, "thumbnail": "annc_widget18_thumbs.png" + }, + { + "filename": "annc_widget23", + "name": { + "zh_tw": "23.二四欄圖文型態 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )", + "en": "23. 2-4-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)" + }, + "thumbnail": "annc_widget23_thumbs.png" + }, + { + "filename": "annc_widget24", + "name": { + "zh_tw": "24. 長短兩欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )", + "en": "24. longshort2-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)" + }, + "thumbnail": "annc_widget24_thumbs.png" } ] } diff --git a/modules/announcement/show.html.erb b/modules/announcement/show.html.erb index 81c0099..8a3b869 100644 --- a/modules/announcement/show.html.erb +++ b/modules/announcement/show.html.erb @@ -11,9 +11,15 @@ .s-annc__sub-img.pull-left { margin-right: 2em; } + .show-announcement{ + max-width: 800px; + margin: auto; + z-index: 1; + position: relative; + }
                    -

                    {{title}}

                    +

                    {{title}}

                    • diff --git a/modules/announcement/thumbs/annc_widget23_thumbs.png b/modules/announcement/thumbs/annc_widget23_thumbs.png new file mode 100644 index 0000000000000000000000000000000000000000..eefe6b235a56d69b70267252f662357bb0595009 GIT binary patch literal 12280 zcmc(lcU)81w#TEWs0i2)kY*V~YE-0y2r3{*kt)4JdheZJ!2$@Q(xi)oUL+(mNkCAL zj-g2cL`vvAp(P}F2j|Tl$2WIo?!E7Q-XG+T!#?}$z1G@m?caCrr#f1y%m+^%1c5-z zH`T7|fW}ejv~((9P>g`T?m6!%T6* z2BF|(g$ap3MYT(@KmEK%Gob6ZPT+yOt4jCKB@T{#hQ;Os1sa7F7N#U@39ipz0cE~6 zg2c|k&ZDk47iTpn2kze;87_XR>+q)sx9pC-Xuqp=DX`O=u5?b^y7MQZ^wb7DV=JWJ z#d?87e5sqj-QAkeNoo*>ZvQ%@K` zS3yeLz|w2qYncksPnjr+9XMN z6oCyokhq)RbJtSVd6Cpx6{3_ZQCT50hZ4HKNkcK}PE`!gFiKI2CcGt!@fM#i?K-A0 z{Nnv<3j2n9kN?+zwO1NF#_VbONi|=Px?Twc;kds>vv_@+RwnRqVqi6Olp1Hk`3kfD=8D*??(`}dPZ1$dEMRp zj88CV>tHNtzT&d~Xgea$TB~pVv2xcDeE*2(Lx$=~|1KJu;nPSuwOYi<&#-Kv+BNhv z_o=QLi!brAlD-BVR|;kp7I=s%CMKqguGv5=w&UcJEr-e_sT0AmEJ23;8zb;KaJ`!5 zD>9~~S%zqzt+-jP(Sw-T;^gc?b8j~*4!^YcQd>@UC+nVywOG^;pRx>ds`=WHtB;5i zEiQhrC?zG)7wwx8!F>c@4e1hAmcBZ&FjOWtOe^j;i-!{ykq>}JM~3`yktIJX zZQEBWJb$1IiXMWnmS~&fh-Is4k|#&JmayD$d#olFsqY~XrAXy{EB1W&)SY&n$*Pis ztjT^FTwy^R%zZx3o)2 zZfRa$BOTv@G+sJcsa`rE5WVO|BaCZ8O?rH}M zkF-ui28W7W6@l=GvQchBI4GfTZ(74TfQ%WtaO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m5c>ZS`S$~Hk>vp9p0HN@FvLhn{px!?hhIRvy_6tQmt-C;)$w$Aw zXhg}(%@sgax&oE$Nks_ZW;Kp6X727RSK>|#78FGl>>nGvH&ICU(+hGNCjtyP(1YgO zdDFh;$!5X>nq8w6e7NoJ2;bU*E#B0zgjz;dB0>xY~&jQ{JHSwYu=k zvk%2}`i*QYJF{$+RQKCw7KsjdG}cXKX`!i0_~Q+n6FcY|4RJ!|N1g)iaVRjtPPqeo zdS&@&aqxO|tpStF^75OyL*VO@JU8}FsTrqyy7nc|rbGN&Xssm8+GrN^lZ4W=RaR{E zK&MLK&Ya<`c|cb-TaiHJsdc+(XOl0l5n^n>~oe` z`;o2^;=OzDUC~bRIfge5*G*tFdbljVoPYU2FbP(ENKW=Rc}`em|xo_x}rijSZRr literal 0 HcmV?d00001 diff --git a/modules/announcement/thumbs/annc_widget24_thumbs.png b/modules/announcement/thumbs/annc_widget24_thumbs.png new file mode 100644 index 0000000000000000000000000000000000000000..8ff5d086ead303320e2a0d87bac74fe2ac994d15 GIT binary patch literal 13396 zcmd^`cU)81+V7)`;>ZBb*r__683d#$y#;J2NKpt85TYV2RB53HN3jDVy@O&X2}Mdk zYQRE~PDlcwNeu)O3`qz9Lhi;n=N-m(?m08}zW1;DM?U#vXYI9DdDinh>-$^#k%gI& z@NTi)AP`9S;)SzUK%niDz=yhPCve5*l?reH^sUbY8$S?8@z~~PTM!By2m&1eT|8@O z6_i066$-lM60EdpUUjQI$w|IUfh(nR^yoJ~$g1AcHuym* z4DJL9c)E#FJ_(GPc0?>cpSeQz?bun{Gqz7GhqY&y%DwaigIyxqWMY(jC!d^XP4XDh z?s-VFP9g@KCq5m+I!E9r?E+#7#ayDsQr*TXQODi(=bwN60R&RU9Z2y8fl`paXo5iB z?0L5hbR_bK2ne+8o7*7Jt|JcxKn5T~37~7cfd1_<*dqvv1pQvrz+EBB_qvZyU*&@_ zE!x6(#xh%5NgV{zD)S>N>&K}SAxwEMaHWfb*B*GC`?FdK+S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_index16.html.erb index 38b02d6..faacba8 100644 --- a/modules/archive/archive_index16.html.erb +++ b/modules/archive/archive_index16.html.erb @@ -40,3 +40,6 @@ }
                + diff --git a/modules/calendar/index.html.erb b/modules/calendar/index.html.erb index 14d7ab8..f6b7688 100644 --- a/modules/calendar/index.html.erb +++ b/modules/calendar/index.html.erb @@ -3,13 +3,13 @@ @@ -18,10 +18,10 @@
                - +
                -
                diff --git a/modules/e_paper/epaper_index1.html.erb b/modules/e_paper/epaper_index1.html.erb index 0c4d026..d8510ab 100644 --- a/modules/e_paper/epaper_index1.html.erb +++ b/modules/e_paper/epaper_index1.html.erb @@ -1,6 +1,6 @@ @@ -13,7 +13,7 @@ {{title}}
                -

                {{title}}

                +

                {{title}}

                {{description}}
                diff --git a/modules/e_paper/epaper_index2.html.erb b/modules/e_paper/epaper_index2.html.erb index 960781e..443132b 100644 --- a/modules/e_paper/epaper_index2.html.erb +++ b/modules/e_paper/epaper_index2.html.erb @@ -1,6 +1,6 @@ @@ -9,14 +9,14 @@ diff --git a/modules/event_news_mod/_event_news_widget1.html.erb b/modules/event_news_mod/_event_news_widget1.html.erb index 9ea150b..23ae321 100644 --- a/modules/event_news_mod/_event_news_widget1.html.erb +++ b/modules/event_news_mod/_event_news_widget1.html.erb @@ -5,7 +5,7 @@
                • diff --git a/modules/event_news_mod/_event_news_widget15.html.erb b/modules/event_news_mod/_event_news_widget15.html.erb index 584095a..1f13ed4 100644 --- a/modules/event_news_mod/_event_news_widget15.html.erb +++ b/modules/event_news_mod/_event_news_widget15.html.erb @@ -1,10 +1,7 @@
                  -
                  -

                  - {{widget-title}} -

                  - <%= t("event_news.more") %> -
                  +

                  + {{widget-title}} +

                +
              • - {{view_count_trans}}>x {{view_count}} + {{view_count}} +
                +
                + + + +
                +
                {{video_duration}}
                +
                {{video_tag}}
                +
                {{video_keyword}}
                +
                {{video_postdate}}
                + +
              + \ No newline at end of file diff --git a/modules/video_pro/_video_pro_widget2.html.erb b/modules/video_pro/_video_pro_widget2.html.erb new file mode 100644 index 0000000..66b0402 --- /dev/null +++ b/modules/video_pro/_video_pro_widget2.html.erb @@ -0,0 +1,59 @@ +
              +

              {{widget-title}}

              + +
              +
              + + \ No newline at end of file diff --git a/modules/video_pro/_video_pro_widget3.html.erb b/modules/video_pro/_video_pro_widget3.html.erb new file mode 100644 index 0000000..85bcf07 --- /dev/null +++ b/modules/video_pro/_video_pro_widget3.html.erb @@ -0,0 +1,129 @@ +
              +

              {{widget-title}}

              +
              + + +
              + +
              + +
              + \ No newline at end of file diff --git a/modules/video_pro/_video_pro_widget4.html.erb b/modules/video_pro/_video_pro_widget4.html.erb new file mode 100644 index 0000000..9f92019 --- /dev/null +++ b/modules/video_pro/_video_pro_widget4.html.erb @@ -0,0 +1,47 @@ +
              +

              {{widget-title}}

              + +
              + +
              + \ No newline at end of file diff --git a/modules/video_pro/_video_pro_widget5.html.erb b/modules/video_pro/_video_pro_widget5.html.erb new file mode 100644 index 0000000..0e1af48 --- /dev/null +++ b/modules/video_pro/_video_pro_widget5.html.erb @@ -0,0 +1,176 @@ +
              +

              {{widget-title}}

              + +
              +
              +
              + \ No newline at end of file diff --git a/modules/video_pro/info.json b/modules/video_pro/info.json index 5c1b39b..c5b202e 100644 --- a/modules/video_pro/info.json +++ b/modules/video_pro/info.json @@ -9,6 +9,42 @@ }, "thumbnail" : "thumb.png" }, + { + "filename" : "video_pro_widget2", + "force_cover": "true", + "name" : { + "zh_tw" : "2. 影片列表2 ( 縮圖, 影片資訊, 頁面連結)", + "en" : "2. Video List 2 ( snapshot, video info, page link)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "video_pro_widget3", + "force_cover": "true", + "name" : { + "zh_tw" : "3. 影片列表倫波 ( 縮圖, 影片資訊, 頁面連結)", + "en" : "3.carousel-Video List ( snapshot, video info, page link)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "video_pro_widget4", + "force_cover": "true", + "name" : { + "zh_tw" : "4. 四欄影片列表 ( 縮圖, 影片資訊, 頁面連結)", + "en" : "4. 4col-Video List 1 ( snapshot, video info, page link)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "video_pro_widget5", + "force_cover": "true", + "name" : { + "zh_tw" : "5. 大圖影片列表倫波 ( 縮圖, 影片資訊, 頁面連結)", + "en" : "5.bigcarousel-Video List ( snapshot, video info, page link)" + }, + "thumbnail" : "thumb.png" + }, { "filename" : "video_pro_widget_jqcloud1", "force_cover": "true", @@ -51,8 +87,8 @@ "filename" : "video_pro_index3", "force_cover": "true", "name" : { - "zh_tw" : "3. 影片列表2 + 懸浮框 ( 縮圖, 影片資訊)", - "en" : "3. Video List 2 + Modal window ( snapshot, video info)" + "zh_tw" : "3. 三欄 影片列表2 + 懸浮框 ( 縮圖, 影片資訊)", + "en" : "3. 3col-Video List 2 + Modal window ( snapshot, video info)" }, "thumbnail" : "thumb.png" }, @@ -60,8 +96,17 @@ "filename" : "video_pro_index_post_agency1", "force_cover": "true", "name" : { - "zh_tw" : "4. 影片列表3 + 發佈單位篩選 ( 縮圖, 影片資訊, 關鍵字, 頁面連結)", - "en" : "4. Video List 3 + Post Agency filter ( snapshot, video info, keyword, page link)" + "zh_tw" : "4. 三欄 影片列表3 + 發佈單位篩選 ( 縮圖, 影片資訊, 關鍵字, 頁面連結)", + "en" : "4. 3col-Video List 3 + Post Agency filter ( snapshot, video info, keyword, page link)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "video_pro_index4", + "force_cover": "true", + "name" : { + "zh_tw" : "4. 四欄影片列表1 + 類別 + 搜尋 ( 縮圖, 影片資訊, 頁面連結)", + "en" : "4. 4col-Video List 1 + Category filter + Search ( snapshot, video info, page link)" }, "thumbnail" : "thumb.png" } diff --git a/modules/video_pro/video_pro_index1.html.erb b/modules/video_pro/video_pro_index1.html.erb index ae360f4..b48457f 100644 --- a/modules/video_pro/video_pro_index1.html.erb +++ b/modules/video_pro/video_pro_index1.html.erb @@ -3,17 +3,17 @@
              {{pagination_goes_here}} diff --git a/modules/video_pro/video_pro_index2.html.erb b/modules/video_pro/video_pro_index2.html.erb index 66259ac..d659050 100644 --- a/modules/video_pro/video_pro_index2.html.erb +++ b/modules/video_pro/video_pro_index2.html.erb @@ -46,13 +46,7 @@ } .video_data{ margin-bottom: 1em; - padding: 0 0.5em; - .video_link{ - background: #f3f3f3; - position: relative; - display: block; - padding: 1em; - } + padding: 0 0.5em; } .video_info { margin: 1em 0; diff --git a/modules/video_pro/video_pro_index2_tag.html.erb b/modules/video_pro/video_pro_index2_tag.html.erb index 8ba705f..0d0e6bc 100644 --- a/modules/video_pro/video_pro_index2_tag.html.erb +++ b/modules/video_pro/video_pro_index2_tag.html.erb @@ -47,12 +47,6 @@ .video_data{ padding: 0 0.5em; margin-bottom: 1em; - .video_link{ - background: #f3f3f3; - position: relative; - display: block; - padding: 1em; - } } .video_info { margin: 1em 0; diff --git a/modules/video_pro/video_pro_index3.html.erb b/modules/video_pro/video_pro_index3.html.erb index 83bdd65..948b9fd 100644 --- a/modules/video_pro/video_pro_index3.html.erb +++ b/modules/video_pro/video_pro_index3.html.erb @@ -14,7 +14,7 @@

              {{page-title}}

").html($(this).text()).html(); // 轉換轉義的 HTML + $(this).html(decodedHtml); // 設置為真正的 HTML + }); + $(".video_group_time").each(function () { + var $this = $(this); // 當前 .video_group_time + // 找到對應的 ,並移動到 .video_group_time 內部 + var $q = $this.closest(".imglst_desc").find(".movie_desc q"); + if ($q.length) { + $this.append($q.clone()); // 將 複製並添加到 .video_group_time + $q.remove(); // 移除 .movie_desc 裡的 + } + // 移動 .view_info 到 .video_group_time 的內部 + $this.append($this.siblings(".view_info")); + // 取得內容並移除 "SystemAdmin | " 前綴 + var text = $this.text().trim(); + var newText = text.replace(/^.*\|\s*/, ""); // 移除 "SystemAdmin | " + $this.text(newText); // 更新內容 + $(this).insertBefore($(this).closest(".imglst_desc").siblings("h3")); + }); + + $(".main-content").css({ + "max-width": "920px", + "margin": "auto" + }); + $(".video_box_wrap").css("padding-bottom", "56%"); + $(".video_detail .video_yt_box").insertBefore(".video_detail .video_group_time"); + + }; + function getYouTubeThumbnail() { + var $ytThumb = $(".ytp-cued-thumbnail-overlay-image"); + if ($ytThumb.length) { + var imageUrl = $ytThumb.css("background-image"); + // 檢查背景圖格式:url("https://...") + var urlMatch = imageUrl.match(/url\(["']?(.*?)["']?\)/); + var extractedUrl = urlMatch ? urlMatch[1] : null; + if (extractedUrl) { + // console.log("成功獲取縮圖:", extractedUrl); + $(".background").css("background-image", `url("${extractedUrl}")`); + } else { + // console.log("背景圖格式不對,改用影片 ID 生成縮圖"); + setThumbnailFromVideoId(); + } + } else { + // console.log("找不到 .ytp-cued-thumbnail-overlay-image,改用影片 ID 生成縮圖"); + setThumbnailFromVideoId(); + } + } + function setThumbnailFromVideoId() { + var $iframe = $("iframe[src*='youtube.com/embed']"); + if ($iframe.length) { + var src = $iframe.attr("src"); + var videoIdMatch = src.match(/youtube\.com\/embed\/([^?]+)/); + var videoId = videoIdMatch ? videoIdMatch[1] : null; + if (videoId) { + var fallbackImageUrl = `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`; + // console.log("透過影片 ID 取得縮圖:", fallbackImageUrl); + $(".background").css("background-image", `url("${fallbackImageUrl}")`); + } + } + } + // 嘗試多次加載 + var interval = setInterval(function () { + if ($(".ytp-cued-thumbnail-overlay-image").length || $("iframe[src*='youtube.com/embed']").length) { + getYouTubeThumbnail(); + clearInterval(interval); + } + }, 1000); + }); + // 當文件物件模型(DOM)載入後,執行init函數 $(document).ready(function() { - - //背景widget設定 - if ( location.href.search('editmode=on') != -1 ) { - $('.background').css('z-index','2'); - $('.background').css('position','relative'); - } else { - $('.background').css('z-index','-1'); - $('.background').css('position','fixed'); - }; - + // 綁定滑動事件 + $(".cycle-slideshow").swipe({ + swipeLeft: function () { + $(this).cycle("next"); // 向左滑動,切換到下一張 + }, + swipeRight: function () { + $(this).cycle("prev"); // 向右滑動,切換到上一張 + }, + threshold: 50, // 滑動靈敏度(數值越小越敏感) + }); + //改變日期格式 + $(".video_group_time").each(function () { + var $this = $(this); + var originalText = $this.text().trim(); + // 把 YYYY-MM-DD 轉換成 M月D日 + var formattedText = originalText.replace(/(\d{4})-(\d{2})-(\d{2})/g, function (match, year, month, day) { + return parseInt(month, 10) + "月" + parseInt(day, 10) + "日"; + }); + // 找到對應的 ,並複製 + var $q = $this.closest(".video_data").find(".video_desc q").clone(); + // 更新內容並加上 + $this.html(formattedText).append($q); + }); + //常用到的js + // $('.').after($('.')); + // $('.').before($('.')); + // $('.').append($('.')); + // if($('.show-announcement').hasClass('show-announcement')) { + // $('.').css('', ''); + // } + $(".mybooking").append(''); + //內頁dattpp移位 $('.i-annc__page-title').after($('.sitemenu-wrap2')); $('.i-archive-title').after($('.sitemenu-wrap2')); $('.page-module-title').after($('.sitemenu-wrap2')); @@ -653,34 +1022,37 @@ extendPanelWidget(); $(".member-data2-tr").before($(".show-member .table-striped > tbody > tr:nth-of-type(4)")); $(".nav-pills").before($(".show-member .table-striped > tbody > tr:last-child")); - //常用到的js - // $('.').after($('.')); - // $('.').before($('.')); - // $('.').append($('.')); - // if($('.show-announcement').hasClass('show-announcement')) { - // $('.').css('', ''); - // } + //檔案室手風琴 + $('.panel-title>.collapsed').click(function(){ + $(this).find('.fa').toggleClass("fa-chevron-down"); + $(this).find('.fa').toggleClass("fa-chevron-up"); + }); + + //背景widget設定 + if ( location.href.search('editmode=on') != -1 ) { + $('.background').css('z-index','2'); + $('.background').css('position','relative'); + } else { + $('.background').css('z-index','-1'); + $('.background').css('position','fixed'); + }; //公告類別顏色 - $(".w-annc .w-annc__category-wrap").each(function() { - var SaveCategory = $(this).find(".w-annc__category").text(); - // console.log(SaveCategory); - $(this).addClass(SaveCategory); - }) - $(".w-annc__item ").each(function() { - var SaveCategory2 = $(this).find(".w-annc__category").text(); - // console.log(SaveCategory); - $(this).addClass(SaveCategory2); - }) + // $(".w-annc .w-annc__category-wrap").each(function() { + // var SaveCategory = $(this).find(".w-annc__category").text(); + // $(this).addClass(SaveCategory); + // }) + // $(".w-annc__item ").each(function() { + // var SaveCategory2 = $(this).find(".w-annc__category").text(); + // $(this).addClass(SaveCategory2); + // }) $(".i-annc__item .i-annc__category-wrap").each(function() { var SaveCategory = $(this).find(".i-annc__category").text(); - // console.log(SaveCategory); $(this).addClass(SaveCategory); }) $(".i-annc__item ").each(function() { var SaveCategory2 = $(this).find(".i-annc__category").text(); - // console.log(SaveCategory); $(this).addClass(SaveCategory2); }) @@ -725,7 +1097,7 @@ extendPanelWidget(); $("nav ul").toggleClass('hidden'); }); $('.morebken').click(function(){ - $('.list-unstyled>li:nth-child(n+16)').slideToggle(); + $('.list-unstyled>li:nth-child(n+5)').slideToggle(); $(".morebken .fa-chevron-down").toggleClass("rotate"); $(".openmorebken").toggleClass("closemorebken"); @@ -740,6 +1112,7 @@ extendPanelWidget(); headerH(); $(window).resize(function() { if ($(window).width() <769) { + $('.modules-menu-level-0').after($('.header-nav')); }else{ $('.outdropdowns').before($('.header-nav')); @@ -769,8 +1142,11 @@ extendPanelWidget(); // $('.outdropdowns').removeClass('navFixed'); /* 移除選單固定效果 */ // } // }); - $('.navbar-brand h2').replaceWith(function () { - return "

" +$(this).html() + "

"; + $('.navbar-brand h2').replaceWith(function() { + return $("

", { + class: this.className, + html: $(this).html() + }); }); $('#search'). attr('title', '另開新視窗'); $(window).scroll(function() { @@ -830,15 +1206,15 @@ extendPanelWidget(); // // //選單 // $(document).ready(function() { // -// //drop down menu -// $(".dropdown-toggle").hover(function() { -// $('.modules-menu-level-1').addClass('display-on'); -// }); -// $(".dropdown-toggle").mouseleave(function() { -// $('.modules-menu-level-1').removeClass('display-on'); -// }); +// //drop down menu +// $(".dropdown-toggle").hover(function() { +// $('.modules-menu-level-1').addClass('display-on'); +// }); +// $(".dropdown-toggle").mouseleave(function() { +// $('.modules-menu-level-1').removeClass('display-on'); +// }); // -// }); +// }); // $(document).ready(function() { // // "use strict"; diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index b0603ee..045ccf6 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -25,6 +25,7 @@ outline: 0.3125em auto -webkit-focus-ring-color !important; } .layout-header { + z-index: 2; position: relative; margin-bottom: 0; border: none; diff --git a/assets/stylesheets/template/layout/slide.scss b/assets/stylesheets/template/layout/slide.scss index 483abab..9ed1c22 100644 --- a/assets/stylesheets/template/layout/slide.scss +++ b/assets/stylesheets/template/layout/slide.scss @@ -5,7 +5,7 @@ .layout-slide { position: relative; overflow: hidden; - z-index: 1; + z-index: 0; .w-ad-banner { margin: auto; } diff --git a/modules/ad_banner/_ad_banner_widget0.html.erb b/modules/ad_banner/_ad_banner_widget0.html.erb index 67a7f26..1d99635 100644 --- a/modules/ad_banner/_ad_banner_widget0.html.erb +++ b/modules/ad_banner/_ad_banner_widget0.html.erb @@ -29,7 +29,10 @@ - +
    "> "> diff --git a/modules/ad_banner/_ad_banner_widget1.html.erb b/modules/ad_banner/_ad_banner_widget1.html.erb index 69c96c5..0a19702 100644 --- a/modules/ad_banner/_ad_banner_widget1.html.erb +++ b/modules/ad_banner/_ad_banner_widget1.html.erb @@ -32,7 +32,10 @@ - +
      "> "> diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index c0d483d..d9be7d3 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -26,7 +26,10 @@