diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 39c7514..f161274 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -3406,5 +3406,43 @@ $(function() { fixBannerPlayPauseA11y(); }); +//會員個人網址 +$(function() { + setTimeout(function() { + $('.i-member-item').each(function() { + var $item = $(this); + var $valSpan = $item.find('.member-data-value-personal-website'); + var $a = $valSpan.find('a'); + + if ($a.length === 0) return; + + var href = $a.attr('href') || ''; + var target = $a.attr('target') || ''; + + if (!href) return; + + // ✅ 取得姓名 + var memberName = $item.find('.member-data-value-name').text().trim(); + + // 把連結套到標題 span 上 + var $titleSpan = $item.find('.member-data-title-personal-website'); + var titleText = $titleSpan.text().trim(); + + // ✅ title 加上姓名 + var titleAttr = '另開新視窗前往' + memberName + '的' + titleText; + + $titleSpan.html( + '' + + titleText + + '' + ); + + $valSpan.remove(); + }); + }, 500); +}); }(jQuery, window)); diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 107e72a..1714d73 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -123,13 +123,17 @@ .header-nav { display: flex !important; flex-wrap: wrap; + blockquote{ + padding: 0; + border-left: 0; + } ul{ padding: 0; } @media(max-width:768px){ - color: #fff; + color: #333; a{ - color: #fff; + color: #333; } } @media(max-width: 769px){ @@ -512,9 +516,9 @@ align-items: center; justify-content: space-between; @media(max-width:768px){ - color: #fff; + color: #333; a{ - color: #fff; + color: #333; } } #nfu_logo{ diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index dfa9d34..cba19be 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -44,6 +44,7 @@ ul.button-mid{ width: 100%; height: 0; top: 50%; + z-index: 201; } .next-button, .prev-button { cursor: pointer; diff --git a/assets/stylesheets/template/modules/event_news.scss b/assets/stylesheets/template/modules/event_news.scss index 6b23c70..508b79f 100644 --- a/assets/stylesheets/template/modules/event_news.scss +++ b/assets/stylesheets/template/modules/event_news.scss @@ -492,7 +492,6 @@ .i-annc__list { display: flex; flex-wrap: wrap; - justify-content: center; } .i-annc__title { font-family: $main-font; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index fc96929..7a4781f 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -131,7 +131,7 @@ // position: absolute; // width: 20%!important; // left: 0; -// background-color: #fff; +// background-color: #333; // margin-top: 5em; // padding-right: 0; // #main-nav{ @@ -291,7 +291,7 @@ padding: 1em; font-family: $main-font; font-size: 1.1em; - color: #fff; + color: #333; &:after{ content:''; position:absolute; @@ -309,7 +309,7 @@ bottom:0; } &.active { - color: #fff; + color: #333; background: none; &:after{ width:100%; @@ -567,7 +567,7 @@ height: 100%; top: 0; padding-top: 40px; - color: #fff; + color: #333; padding-left: 0; padding-right: 0; }