fix:解决首页moment轮动的问题
This commit is contained in:
parent
bbc741207f
commit
0ecb715da0
|
@ -14,21 +14,21 @@ var heo = {
|
|||
}
|
||||
},
|
||||
|
||||
//bb添加时间
|
||||
changeTimeInEssay: function () {
|
||||
const relativeDate = function (selector) {
|
||||
selector.forEach(item => {
|
||||
const $this = item
|
||||
const timeVal = $this.getAttribute('datetime')
|
||||
$this.innerText = btf.diffDate(timeVal, true)
|
||||
$this.style.display = 'inline'
|
||||
})
|
||||
}
|
||||
|
||||
if (document.querySelector('#comment')) {
|
||||
relativeDate(document.querySelectorAll('#comment time'))
|
||||
}
|
||||
},
|
||||
// //bb添加时间
|
||||
// changeTimeInEssay: function () {
|
||||
// const relativeDate = function (selector) {
|
||||
// selector.forEach(item => {
|
||||
// const $this = item
|
||||
// const timeVal = $this.getAttribute('datetime')
|
||||
// $this.innerText = btf.diffDate(timeVal, true)
|
||||
// $this.style.display = 'inline'
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// if (document.querySelector('#comment')) {
|
||||
// relativeDate(document.querySelectorAll('#comment time'))
|
||||
// }
|
||||
// },
|
||||
|
||||
// 首页bb
|
||||
initIndexEssay: function () {
|
||||
|
|
|
@ -760,7 +760,7 @@ document.addEventListener('pjax:send', function () {
|
|||
heo.showLoading();
|
||||
})
|
||||
|
||||
document.addEventListener('load', function () {
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// coverColor()
|
||||
navTitle()
|
||||
percent()
|
||||
|
@ -769,13 +769,13 @@ document.addEventListener('load', function () {
|
|||
heo.sayhi()
|
||||
heo.addTag()
|
||||
heo.stopImgRightDrag()
|
||||
heo.addFriendLinksInFooter()
|
||||
// heo.addFriendLinksInFooter()
|
||||
heo.qrcodeCreate()
|
||||
heo.hidecookie()
|
||||
heo.onlyHome()
|
||||
heo.addNavBackgroundInit()
|
||||
heo.initIndexEssay()
|
||||
heo.changeTimeInEssay()
|
||||
// heo.changeTimeInEssay()
|
||||
heo.reflashEssayWaterFall()
|
||||
heo.addMediumInEssay()
|
||||
heo.darkModeStatus()
|
||||
|
|
|
@ -8803,8 +8803,10 @@ a.categoryButton:hover {
|
|||
/* 主页哔哔bb */
|
||||
#bber-talk {
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
/* height: 25px; */
|
||||
/* line-height: 25px; */
|
||||
height: 31px;
|
||||
line-height: 0px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
<!-- 瞬间插件 -->
|
||||
<i class="iconfont icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
|
||||
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
|
||||
<div class="swiper-wrapper" id="bber-talk" onclick="/comment">
|
||||
<div class="swiper-wrapper" id="bber-talk" onclick="location.href='/moments'">
|
||||
<th:block th:each="moment : ${momentFinder.listAll()}" th:with="content=${moment.spec.content}">
|
||||
<div class="li-style swiper-slide" th:if="${not #strings.isEmpty(content.html)}" th:utext="${content.html}"></div>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
<i class="bber-gotobb fas fa-arrow-circle-right" onclick="/comment" title="查看全文"></i>
|
||||
<i class="bber-gotobb fas fa-arrow-circle-right" onclick="location.href='/moments'" title="查看全文"></i>
|
||||
</div>
|
||||
</html>
|
Loading…
Reference in New Issue