添加逻辑判断今日推荐功能是否打开

This commit is contained in:
liuzhihang 2022-11-07 22:46:32 +08:00
parent 073084cbd5
commit 72d4a2252c
1 changed files with 6 additions and 3 deletions

View File

@ -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("卡片停止悬浮");
}
});
//评论增加放大功能