|
|
|
@ -71,7 +71,7 @@
|
|
|
|
|
<a th:href="@{/special_view.html(columnId=${specialColumns[0].columnId})}" th:title="${specialColumns[0].columnName}" target="_blank">
|
|
|
|
|
<img style="width: 100% ;filter: brightness(1.1);" th:src="${specialColumns[0].columnUrl}" th:alt="${specialColumns[0].columnName}">
|
|
|
|
|
</a>
|
|
|
|
|
<a onclick="closeAd()"><span>关闭</span></a>
|
|
|
|
|
<a id="closeButton"><span>关闭</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-container" style="min-width: 1330px">
|
|
|
|
|
<div class="notice">
|
|
|
|
@ -523,8 +523,9 @@
|
|
|
|
|
$('.myscroll').myScroll({
|
|
|
|
|
speed: 30,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded',function(){
|
|
|
|
|
var el = document.querySelector('#ad');
|
|
|
|
|
if (el){
|
|
|
|
|
var styleTop = 0;
|
|
|
|
|
var styleLeft = 0;
|
|
|
|
|
var verticalFlag = true;
|
|
|
|
@ -555,10 +556,14 @@
|
|
|
|
|
el.addEventListener('mouseout', function () {
|
|
|
|
|
isMouseOver = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function closeAd(){
|
|
|
|
|
isMouseOver = true;
|
|
|
|
|
el.style.display = 'none'
|
|
|
|
|
}
|
|
|
|
|
// 绑定关闭广告的按钮
|
|
|
|
|
document.getElementById('closeButton').addEventListener('click', closeAd);
|
|
|
|
|
})
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
var noticeInner = document.querySelector('.notice__inner');
|
|
|
|
|
var noticeItems = Array.from(document.querySelectorAll('.notice__item'));
|
|
|
|
|