From 0ecb715da02690f048420922bca93151f76f6e3d Mon Sep 17 00:00:00 2001 From: Airbo ZH Date: Wed, 12 Apr 2023 02:32:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=A7=A3=E5=86=B3=E9=A6=96?= =?UTF-8?q?=E9=A1=B5moment=E8=BD=AE=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/heo.js | 30 ++++++++++++++-------------- templates/assets/zhheo/blogex.js | 6 +++--- templates/assets/zhheo/zhheoblog.css | 6 ++++-- templates/modules/moment.html | 4 ++-- 4 files changed, 24 insertions(+), 22 deletions(-) diff --git a/templates/assets/js/heo.js b/templates/assets/js/heo.js index 831c015c..b24357de 100644 --- a/templates/assets/js/heo.js +++ b/templates/assets/js/heo.js @@ -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 () { diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index 659f3dd3..bbca24a1 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -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() diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 4489a370..2f75a5ad 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -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; } diff --git a/templates/modules/moment.html b/templates/modules/moment.html index 7e496ce9..f99fbf75 100644 --- a/templates/modules/moment.html +++ b/templates/modules/moment.html @@ -4,12 +4,12 @@
-
+
- +
\ No newline at end of file