blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.24k stars 1.25k forks source link

不蒜子闪一下就消失了,已经尝试重新配置blog还是依然 #458

Closed xiaoleGun closed 1 year ago

xiaoleGun commented 4 years ago

不蒜子闪一下就消失了,已经尝试重新配置blog还是依然,请问这是最新主题的bug还是我配置有误

daisf666 commented 4 years ago

+1

xiaoleGun commented 4 years ago

+1

跟live2d冲突了,卸载就没事了,但还是个bug

daisf666 commented 4 years ago

+1

跟live2d冲突了,卸载就没事了,但还是个bug

没用也会冲突吗,我去卸载看看

xiaoleGun commented 4 years ago

+1

跟live2d冲突了,卸载就没事了,但还是个bug

没用也会冲突吗,我去卸载看看

试试吧

daisf666 commented 4 years ago

+1

跟live2d冲突了,卸载就没事了,但还是个bug

没用也会冲突吗,我去卸载看看

试试吧

确实,删了就好了,感谢

ideal-20 commented 4 years ago

不蒜子闪一下就消失了,已经尝试重新配置blog还是依然,请问这是最新主题的bug还是我配置有误

确实是跟live2d冲突了,或者卸载,或者修改 不蒜子的 js 源码也可以达到同时使用的效果 本地 js 地址:...... themes\hexo-theme-matery\source\libs\others 怎么改随手度娘也行,或者复制一下我博客的 js 文件也行哈 https://www.ideal-20.cn/libs/others/busuanzi.pure.mini.js

appotry commented 3 years ago

同样遇到这个问题。

浪费了不少时间,走了弯路。 这么久了,居然还没人修复。 不吧这个合并到主干里面去么?

修改方法如下 修改文件到如下模样, themes\matery\source\libs\others\busuanzi.pure.mini.js

var bszCaller,bszTag;!function(){var c,d,e,a=!1,b=[];ready=function(c){return a||"interactive"===document.readyState||"complete"===document.readyState?c.call(document):b.push(function(){return c.call(this)}),this},d=function(){for(var a=0,c=b.length;c>a;a++)b[a].apply(document);b=[]},e=function(){a||(a=!0,d.call(window),document.removeEventListener?document.removeEventListener("DOMContentLoaded",e,!1):document.attachEvent&&(document.detachEvent("onreadystatechange",e),window==window.top&&(clearInterval(c),c=null)))},document.addEventListener?document.addEventListener("DOMContentLoaded",e,!1):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){/loaded|complete/.test(document.readyState)&&e()}),window==window.top&&(c=setInterval(function(){try{a||document.documentElement.doScroll("left")}catch(b){return}e()},5)))}(),bszCaller={fetch:function(a,b){var c="BusuanziCallback_"+Math.floor(1099511627776*Math.random());window[c]=this.evalCall(b),a=a.replace("=BusuanziCallback","="+c),scriptTag=document.createElement("SCRIPT"),scriptTag.type="text/javascript",scriptTag.defer=!0,scriptTag.src=a,document.getElementsByTagName("HEAD")[0].appendChild(scriptTag)},evalCall:function(a){return function(b){ready(function(){try{a(b),scriptTag.parentElement.removeChild(scriptTag)}catch(c){bszTag.hides()}})}}},bszCaller.fetch("//busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback",function(a){bszTag.texts(a),bszTag.shows()}),bszTag={bszs:["site_pv","page_pv","site_uv"],texts:function(a){this.bszs.map(function(b){var c=document.getElementById("busuanzi_value_"+b);c&&(c.innerHTML=a[b])})},hides:function(){this.bszs.map(function(a){var b=document.getElementById("busuanzi_container_"+a);b&&(b.style.display="")})},shows:function(){this.bszs.map(function(a){var b=document.getElementById("busuanzi_container_"+a);b&&(b.style.display="inline")})}};