From 72d4a2252c4ffe5837f1cdf82f9f3f99f08f6073 Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Mon, 7 Nov 2022 22:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=BB=E8=BE=91=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E4=BB=8A=E6=97=A5=E6=8E=A8=E8=8D=90=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/blogex.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index 4431ecc5..a90218ad 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -470,9 +470,12 @@ $(".topGroup").hover(function () { // console.log("卡片悬浮"); }, function () { hoverOnCommentBarrage = false; - document.getElementById("todayCard").classList.remove('hide'); - document.getElementById('todayCard').style.zIndex = 1; - // console.log("卡片停止悬浮"); + + if (document.getElementById("todayCard")) { + document.getElementById("todayCard").classList.remove('hide'); + document.getElementById('todayCard').style.zIndex = 1; + // console.log("卡片停止悬浮"); + } }); //评论增加放大功能