1 Star 0 Fork 3

奇妙方程式/zhousiwei

forked from 思伟/zhousiwei 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
busuanzi.pure.js 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
思伟 提交于 2019-07-23 09:46 . 添加fork me,使用gulp压缩静态资源
var bszCaller,bszTag;!function(){var t,e,n,a=!1,c=[];ready=function(t){return a||"interactive"===document.readyState||"complete"===document.readyState?t.call(document):c.push(function(){return t.call(this)}),this},e=function(){for(var t=0,e=c.length;t<e;t++)c[t].apply(document);c=[]},n=function(){a||(a=!0,e.call(window),document.removeEventListener?document.removeEventListener("DOMContentLoaded",n,!1):document.attachEvent&&(document.detachEvent("onreadystatechange",n),window==window.top&&(clearInterval(t),t=null)))},document.addEventListener?document.addEventListener("DOMContentLoaded",n,!1):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){/loaded|complete/.test(document.readyState)&&n()}),window==window.top&&(t=setInterval(function(){try{a||document.documentElement.doScroll("left")}catch(t){return}n()},5)))}(),(bszCaller={fetch:function(t,e){var n="BusuanziCallback_"+Math.floor(1099511627776*Math.random());t=t.replace("=BusuanziCallback","="+n),scriptTag=document.createElement("SCRIPT"),scriptTag.type="text/javascript",scriptTag.defer=!0,scriptTag.src=t,document.getElementsByTagName("HEAD")[0].appendChild(scriptTag),window[n]=this.evalCall(e)},evalCall:function(e){return function(t){ready(function(){try{e(t),scriptTag&&scriptTag.parentElement&&scriptTag.parentElement.removeChild&&scriptTag.parentElement.removeChild(scriptTag)}catch(t){console.log(t),bszTag.hides()}})}}}).fetch("//busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback",function(t){bszTag.texts(t),bszTag.shows()}),bszTag={bszs:["site_pv","page_pv","site_uv"],texts:function(n){this.bszs.map(function(t){var e=document.getElementById("busuanzi_value_"+t);e&&(e.innerHTML=n[t])})},hides:function(){this.bszs.map(function(t){var e=document.getElementById("busuanzi_container_"+t);e&&(e.style.display="none")})},shows:function(){this.bszs.map(function(t){var e=document.getElementById("busuanzi_container_"+t);e&&(e.style.display="inline")})}};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/talmudmaster/zhousiwei.git
git@gitee.com:talmudmaster/zhousiwei.git
talmudmaster
zhousiwei
zhousiwei
master

搜索帮助