Merge pull request #463 from chengzhongxue/main

解决页脚友联bug
This commit is contained in:
困困鱼 2023-09-01 00:01:29 +08:00 committed by GitHub
commit 3fe9cc3942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 22 deletions

View File

@ -77,7 +77,9 @@ var heo = {
htmlText += `<a class='footer-item' href='${item.spec.url}' target="_blank" rel="noopener nofollow">${item.spec.displayName}</a>`; htmlText += `<a class='footer-item' href='${item.spec.url}' target="_blank" rel="noopener nofollow">${item.spec.displayName}</a>`;
} }
htmlText += `<a class='footer-item' href='${linksUrl}'>更多</a>` htmlText += `<a class='footer-item' href='${linksUrl}'>更多</a>`
if(document.getElementById("friend-links-in-footer")){
document.getElementById("friend-links-in-footer").innerHTML = htmlText; document.getElementById("friend-links-in-footer").innerHTML = htmlText;
}
}, },
//禁止图片右键单击 //禁止图片右键单击

View File

@ -660,6 +660,7 @@ function initBlog() {
heo.stopImgRightDrag(), heo.stopImgRightDrag(),
heo.onlyHome(), heo.onlyHome(),
heo.addNavBackgroundInit(), heo.addNavBackgroundInit(),
heo.reflashEssayWaterFall(),
heo.darkModeStatus(), heo.darkModeStatus(),
heo.initThemeColor(), heo.initThemeColor(),
//隐藏加载动画 //隐藏加载动画

View File

@ -220,10 +220,7 @@
removeLoading(); removeLoading();
} }
//页脚友联 //页脚友联
if(GLOBAL_CONFIG.isFriendLinksInFooter){ GLOBAL_CONFIG.isFriendLinksInFooter && heo.addFriendLinksInFooter()
heo.addFriendLinksInFooter()
}
//音乐页面切换歌曲调用 //音乐页面切换歌曲调用
if(GLOBAL_CONFIG.isMusic){ if(GLOBAL_CONFIG.isMusic){
heo.changeMusicBg(false); heo.changeMusicBg(false);

View File

@ -62,7 +62,6 @@
</section> </section>
<!-- 分页还没写 --> <!-- 分页还没写 -->
</div> </div>
<script>heo.reflashEssayWaterFall();</script>
<hr/> <hr/>
<!--/* 评论组件 */--> <!--/* 评论组件 */-->
<th:block <th:block