|
@@ -40,21 +40,23 @@
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="keywords" content="${website.seoKeywords}">
|
|
<meta name="keywords" content="${website.seoKeywords}">
|
|
|
<meta name="description" content="${website.seoDescription}">
|
|
<meta name="description" content="${website.seoDescription}">
|
|
|
- <title>${website.seoTitle}</title>
|
|
|
|
|
- <link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-3">
|
|
|
|
|
|
|
+ <title>${empty website.seoTitle ? website.name : website.seoTitle}</title>
|
|
|
|
|
+ <link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
|
|
|
|
|
+ <link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
|
|
|
</head>
|
|
</head>
|
|
|
<body class="vehicle-page" id="top">
|
|
<body class="vehicle-page" id="top">
|
|
|
<%@ include file="vehicle-header.jsp"%>
|
|
<%@ include file="vehicle-header.jsp"%>
|
|
|
<main>
|
|
<main>
|
|
|
|
|
+ <h1 class="vc-sr-only">${website.name}</h1>
|
|
|
<section class="vc-hero" aria-label="首页焦点图">
|
|
<section class="vc-hero" aria-label="首页焦点图">
|
|
|
<div class="vc-hero-track">
|
|
<div class="vc-hero-track">
|
|
|
<c:forEach items="${collegeHeroNmv.articleList}" var="slide" varStatus="vs">
|
|
<c:forEach items="${collegeHeroNmv.articleList}" var="slide" varStatus="vs">
|
|
|
- <a class="vc-hero-slide${vs.first ? ' is-active' : ''}" href="${empty slide.url ? '/' : slide.url}" target="${slide.target}" aria-label="${slide.title}" aria-hidden="${vs.first ? 'false' : 'true'}">
|
|
|
|
|
|
|
+ <a class="vc-hero-slide${vs.first ? ' is-active' : ''}" href="${empty slide.url ? '/' : slide.url}" target="${slide.target}" aria-label="${slide.title}" aria-hidden="${vs.first ? 'false' : 'true'}" tabindex="${vs.first ? '0' : '-1'}" rel="noopener">
|
|
|
<div class="vc-hero-bg" style="background-image:url('${empty slide.thumbnail ? vehicleDefaultImage : slide.thumbnail}?v=20261105-hero-169')"></div>
|
|
<div class="vc-hero-bg" style="background-image:url('${empty slide.thumbnail ? vehicleDefaultImage : slide.thumbnail}?v=20261105-hero-169')"></div>
|
|
|
</a>
|
|
</a>
|
|
|
</c:forEach>
|
|
</c:forEach>
|
|
|
<c:if test="${empty collegeHeroNmv.articleList}">
|
|
<c:if test="${empty collegeHeroNmv.articleList}">
|
|
|
- <a class="vc-hero-slide is-active" href="/" aria-label="${website.name}"><div class="vc-hero-bg" style="background-image:url('${vehicleDefaultImage}?v=20261105-hero-169')"></div></a>
|
|
|
|
|
|
|
+ <a class="vc-hero-slide is-active" href="/" aria-label="${website.name}" tabindex="0"><div class="vc-hero-bg" style="background-image:url('${vehicleDefaultImage}?v=20261105-hero-169')"></div></a>
|
|
|
</c:if>
|
|
</c:if>
|
|
|
</div>
|
|
</div>
|
|
|
<c:if test="${fn:length(collegeHeroNmv.articleList) > 1}">
|
|
<c:if test="${fn:length(collegeHeroNmv.articleList) > 1}">
|
|
@@ -76,7 +78,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="vc-ref-news-feed">
|
|
<div class="vc-ref-news-feed">
|
|
|
<c:forEach items="${collegeNewsNmv.articleList}" var="item" end="3">
|
|
<c:forEach items="${collegeNewsNmv.articleList}" var="item" end="3">
|
|
|
- <a class="vc-ref-news-item" href="${item.url}" target="${item.target}">
|
|
|
|
|
|
|
+ <a class="vc-ref-news-item" href="${item.url}" target="${item.target}" rel="noopener">
|
|
|
<div class="vc-ref-news-date"><b>${fn:substring(item.release_time, 8, 10)}</b><span>${fn:replace(fn:substring(item.release_time, 0, 7), '-', '.')}</span></div>
|
|
<div class="vc-ref-news-date"><b>${fn:substring(item.release_time, 8, 10)}</b><span>${fn:replace(fn:substring(item.release_time, 0, 7), '-', '.')}</span></div>
|
|
|
<span class="vc-ref-news-title">${item.title}</span>
|
|
<span class="vc-ref-news-title">${item.title}</span>
|
|
|
</a>
|
|
</a>
|
|
@@ -167,7 +169,7 @@
|
|
|
<c:forEach items="${navList}" var="navItem">
|
|
<c:forEach items="${navList}" var="navItem">
|
|
|
<c:if test="${navItem.idcard eq 'FFKJ_COLLEGE_ADMISSION_NAV'}">
|
|
<c:if test="${navItem.idcard eq 'FFKJ_COLLEGE_ADMISSION_NAV'}">
|
|
|
<c:forEach items="${navItem.children}" var="child" varStatus="childVs">
|
|
<c:forEach items="${navItem.children}" var="child" varStatus="childVs">
|
|
|
- <c:if test="${childVs.index lt 4}"><a class="vc-ref-adm-card" href="${child.href}" target="${child.target}"><strong>${child.name}</strong><span>${empty child.nameAssistant ? 'ADMISSIONS & CAREER' : child.nameAssistant}</span></a></c:if>
|
|
|
|
|
|
|
+ <c:if test="${childVs.index lt 4}"><a class="vc-ref-adm-card" href="${child.href}" target="${child.target}" rel="noopener"><strong>${child.name}</strong><span>${empty child.nameAssistant ? 'ADMISSIONS & CAREER' : child.nameAssistant}</span></a></c:if>
|
|
|
</c:forEach>
|
|
</c:forEach>
|
|
|
</c:if>
|
|
</c:if>
|
|
|
</c:forEach>
|
|
</c:forEach>
|
|
@@ -189,7 +191,7 @@
|
|
|
<div class="vc-ref-student-grid">
|
|
<div class="vc-ref-student-grid">
|
|
|
<c:choose>
|
|
<c:choose>
|
|
|
<c:when test="${not empty vehicleStudentNmv.articleList}">
|
|
<c:when test="${not empty vehicleStudentNmv.articleList}">
|
|
|
- <c:forEach items="${vehicleStudentNmv.articleList}" var="item" end="3"><a class="vc-ref-student-card" href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? '/main/ffkj-portal/vehicle/student-1.jpg' : item.thumbnail}" alt="${item.title}"><span>${item.title}</span></a></c:forEach>
|
|
|
|
|
|
|
+ <c:forEach items="${vehicleStudentNmv.articleList}" var="item" end="3"><a class="vc-ref-student-card" href="${item.url}" target="${item.target}" rel="noopener"><img src="${empty item.thumbnail ? '/main/ffkj-portal/vehicle/student-1.jpg' : item.thumbnail}" alt="${item.title}"><span>${item.title}</span></a></c:forEach>
|
|
|
</c:when>
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
|
<a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-1.jpg" alt="技能竞赛展风采"><span>技能竞赛展风采</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-2.jpg" alt="青春文艺汇演"><span>青春文艺汇演</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-3.jpg" alt="班级集体合影"><span>班级集体合影</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-4.jpg" alt="志愿服务进社区"><span>志愿服务进社区</span></a>
|
|
<a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-1.jpg" alt="技能竞赛展风采"><span>技能竞赛展风采</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-2.jpg" alt="青春文艺汇演"><span>青春文艺汇演</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-3.jpg" alt="班级集体合影"><span>班级集体合影</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-4.jpg" alt="志愿服务进社区"><span>志愿服务进社区</span></a>
|
|
@@ -211,28 +213,32 @@
|
|
|
var next = root.querySelector('.vc-hero-arrow.next');
|
|
var next = root.querySelector('.vc-hero-arrow.next');
|
|
|
var current = 0;
|
|
var current = 0;
|
|
|
var timer = null;
|
|
var timer = null;
|
|
|
|
|
+ var reduceMotion = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
|
if (slides.length < 2 || !track) return;
|
|
if (slides.length < 2 || !track) return;
|
|
|
function activate(index) {
|
|
function activate(index) {
|
|
|
current = (index + slides.length) % slides.length;
|
|
current = (index + slides.length) % slides.length;
|
|
|
track.style.transform = 'translateX(' + (-current * 100) + '%)';
|
|
track.style.transform = 'translateX(' + (-current * 100) + '%)';
|
|
|
- slides.forEach(function (slide, i) { slide.classList.toggle('is-active', i === current); slide.setAttribute('aria-hidden', i === current ? 'false' : 'true'); });
|
|
|
|
|
|
|
+ slides.forEach(function (slide, i) { slide.classList.toggle('is-active', i === current); slide.setAttribute('aria-hidden', i === current ? 'false' : 'true'); slide.setAttribute('tabindex', i === current ? '0' : '-1'); });
|
|
|
dots.forEach(function (dot, i) { dot.classList.toggle('is-active', i === current); });
|
|
dots.forEach(function (dot, i) { dot.classList.toggle('is-active', i === current); });
|
|
|
}
|
|
}
|
|
|
function stop() { if (timer) { window.clearInterval(timer); timer = null; } }
|
|
function stop() { if (timer) { window.clearInterval(timer); timer = null; } }
|
|
|
function start() { stop(); timer = window.setInterval(function () { activate(current + 1); }, 5600); }
|
|
function start() { stop(); timer = window.setInterval(function () { activate(current + 1); }, 5600); }
|
|
|
- if (prev) prev.addEventListener('click', function () { activate(current - 1); start(); });
|
|
|
|
|
- if (next) next.addEventListener('click', function () { activate(current + 1); start(); });
|
|
|
|
|
- dots.forEach(function (dot) { dot.addEventListener('click', function () { activate(Number(dot.getAttribute('data-vehicle-hero-dot'))); start(); }); });
|
|
|
|
|
|
|
+ if (prev) prev.addEventListener('click', function () { activate(current - 1); if (!reduceMotion) start(); });
|
|
|
|
|
+ if (next) next.addEventListener('click', function () { activate(current + 1); if (!reduceMotion) start(); });
|
|
|
|
|
+ dots.forEach(function (dot) { dot.addEventListener('click', function () { activate(Number(dot.getAttribute('data-vehicle-hero-dot'))); if (!reduceMotion) start(); }); });
|
|
|
root.addEventListener('mouseenter', stop);
|
|
root.addEventListener('mouseenter', stop);
|
|
|
- root.addEventListener('mouseleave', start);
|
|
|
|
|
|
|
+ root.addEventListener('mouseleave', function () { if (!reduceMotion) start(); });
|
|
|
|
|
+ root.addEventListener('focusin', stop);
|
|
|
|
|
+ root.addEventListener('focusout', function (event) { if (!root.contains(event.relatedTarget) && !reduceMotion) start(); });
|
|
|
activate(0);
|
|
activate(0);
|
|
|
- start();
|
|
|
|
|
|
|
+ if (!reduceMotion) start();
|
|
|
})();
|
|
})();
|
|
|
(function () {
|
|
(function () {
|
|
|
var stage = document.querySelector('[data-news-stage]');
|
|
var stage = document.querySelector('[data-news-stage]');
|
|
|
if (!stage) return;
|
|
if (!stage) return;
|
|
|
var figures = Array.prototype.slice.call(stage.querySelectorAll('figure'));
|
|
var figures = Array.prototype.slice.call(stage.querySelectorAll('figure'));
|
|
|
if (figures.length < 2) return;
|
|
if (figures.length < 2) return;
|
|
|
|
|
+ if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
|
|
|
var current = 0;
|
|
var current = 0;
|
|
|
window.setInterval(function () {
|
|
window.setInterval(function () {
|
|
|
figures[current].classList.remove('on');
|
|
figures[current].classList.remove('on');
|