From 84b291b5f37056996fcf53147ca408dd337b8c79 Mon Sep 17 00:00:00 2001 From: sunheyi <1061867552@qq.com> Date: Sat, 5 Nov 2022 09:39:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BE=E5=88=86?= =?UTF-8?q?=E6=AF=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/blogex.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index 39ec2adc..eb47bb48 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -757,7 +757,7 @@ document.addEventListener('pjax:send', function () { heo.showLoading(); }) -document.addEventListener('pjax:complete', function () { +document.addEventListener('load', function () { coverColor() addRightMenuClickEvent() navTitle() @@ -781,4 +781,7 @@ document.addEventListener('pjax:complete', function () { heo.initThemeColor() heo.hideLoading() heo.tagPageActive() -}) \ No newline at end of file +}) +window.onscroll = function () { + percent(); +}; \ No newline at end of file From bca38e24730f663be0d323401a7904400c179189 Mon Sep 17 00:00:00 2001 From: sunheyi <1061867552@qq.com> Date: Sat, 5 Nov 2022 09:54:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E9=94=AE=E7=9B=B8=E5=85=B3js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/blogex.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index eb47bb48..295ffcbd 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -593,9 +593,9 @@ $(window).on('keydown', function (ev) { if (heo_keyboard && ev.shiftKey && !heo_intype) { // 显示快捷键面板 shift键 - if (ev.keyCode == 16) { - document.querySelector("#keyboard-tips").classList.add("show"); - } + // if (ev.keyCode == 16) { + // document.querySelector("#keyboard-tips").classList.add("show"); + // } //关闭快捷键 shift+K if (ev.keyCode == 75) { @@ -661,12 +661,12 @@ $(window).on('keydown', function (ev) { }); -$(window).on('keyup', function (ev) { - // 显示快捷键面板 - if (ev.keyCode == 16) { - document.querySelector("#keyboard-tips").classList.remove("show"); - } -}); +// $(window).on('keyup', function (ev) { +// // 显示快捷键面板 +// if (ev.keyCode == 16) { +// document.querySelector("#keyboard-tips").classList.remove("show"); +// } +// }); //输入状态检测 $("input").focus(function () { @@ -746,9 +746,9 @@ if (getCookie('browsertc') != 1) { } //当前窗口得到焦点  -window.onfocus = function () { - document.querySelector("#keyboard-tips").classList.remove("show"); -}; +// window.onfocus = function () { +// document.querySelector("#keyboard-tips").classList.remove("show"); +// }; //注入函数 document.addEventListener('pjax:send', function () {