优化首页瞬间说说
This commit is contained in:
parent
b0e3519449
commit
05d1920f36
|
@ -1,11 +1,11 @@
|
|||
let heo_cookiesTime = null;
|
||||
let heo_cookiesTime = null
|
||||
// 第一次播放音乐
|
||||
var heo_musicFirst = false;
|
||||
,heo_musicFirst = false
|
||||
// 音乐播放状态
|
||||
var heo_musicPlaying = false;
|
||||
let heo_keyboard = false;
|
||||
let heo_intype = false;
|
||||
let lastSayHello = "";
|
||||
,heo_musicPlaying = false
|
||||
,heo_keyboard = false
|
||||
,heo_intype = false
|
||||
,lastSayHello = "";
|
||||
// 私有函数
|
||||
var heo = {
|
||||
// 检测显示模式
|
||||
|
@ -560,4 +560,12 @@ var heo = {
|
|||
});
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
$(document).ready((function() {
|
||||
initBlog()
|
||||
}
|
||||
)),
|
||||
document.addEventListener("pjax:complete", (function() {
|
||||
initBlog()
|
||||
}
|
||||
));
|
|
@ -635,6 +635,10 @@ function percent() {
|
|||
window.onscroll = percent
|
||||
}
|
||||
|
||||
function initBlog() {
|
||||
heo.initIndexEssay()
|
||||
}
|
||||
|
||||
//检查是否开启快捷键
|
||||
// if (localStorage.getItem('keyboardToggle') !== 'false') {
|
||||
// document.querySelector("#consoleKeyboard").classList.add("on");
|
||||
|
@ -844,7 +848,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
heo.onlyHome()
|
||||
|
||||
heo.addNavBackgroundInit()
|
||||
heo.initIndexEssay()
|
||||
// heo.changeTimeInEssay()
|
||||
heo.reflashEssayWaterFall()
|
||||
//heo.addMediumInEssay()
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
<link rel="shortcut icon"
|
||||
th:href="@{${#strings.isEmpty(site.favicon) ? assets_link + '/images/hao-logo.jpg' : site.favicon}}"/>
|
||||
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js"></script>
|
||||
|
||||
<script th:src="${assets_link + '/js/heo.js' + theme_version}"></script>
|
||||
|
||||
|
@ -148,7 +149,6 @@
|
|||
}
|
||||
})(window)
|
||||
</script>
|
||||
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js"></script>
|
||||
|
||||
<!-- 动态加载条 -->
|
||||
<script data-pace-options='{ "restartOnRequestAfter":false,"eventLag":false}'
|
||||
|
|
|
@ -140,8 +140,6 @@
|
|||
|
||||
typeof preloader === 'object' && preloader.initLoading()
|
||||
|
||||
heo.initIndexEssay()
|
||||
|
||||
if (window.aplayers) {
|
||||
for (let i = 0; i < window.aplayers.length; i++) {
|
||||
if (!window.aplayers[i].options.fixed) {
|
||||
|
|
Loading…
Reference in New Issue