This commit is contained in:
parent
9f216a8d85
commit
d3801b6179
|
|
@ -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(
|
||||
'<a href="' + href + '"' +
|
||||
(target ? ' target="' + target + '"' : '') +
|
||||
' rel="noopener noreferrer"' +
|
||||
' title="' + titleAttr + '">' +
|
||||
titleText +
|
||||
'</a>'
|
||||
);
|
||||
|
||||
$valSpan.remove();
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
|
||||
}(jQuery, window));
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ ul.button-mid{
|
|||
width: 100%;
|
||||
height: 0;
|
||||
top: 50%;
|
||||
z-index: 201;
|
||||
}
|
||||
.next-button, .prev-button {
|
||||
cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -492,7 +492,6 @@
|
|||
.i-annc__list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
.i-annc__title {
|
||||
font-family: $main-font;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue