﻿var tctipUtil={createElement:function(i,e,j){var a=document.createElement(e||"div");for(var h in i){"style"==h?a[h].cssText=i[h]:a[h]=i[h]}
return(j||document.body).appendChild(a)},createElementHtml:function(i,e,j){var a=document.createElement(e||"div");for(var h in i){"style"==h?a[h].cssText=i[h]:a[h]=i[h]}
return(j||document.body).appendChild(a)},getElementsByClassName:function(d,c){return c=c||document,c.getElementsByClassName?c.getElementsByClassName(d):function(o,e){var p,q,i=[],a=e.getElementsByTagName("*"),n=a.length,b=new RegExp("(^|\\s)"+o+"(\\s|$)");for(p=0,q=0;p<n;p++){b.test(a[p].className)&&(i[q]=a[p],q++)}
return i}(d,c)},getTextKey:function(){return"firefox"==tctipUtil.getExplorer()?"textContent":"innerText"},getExplorer:function(){var b=window.navigator.userAgent.toLowerCase();return b.indexOf("msie")>=0?"ie":b.indexOf("firefox")>=0?"firefox":b.indexOf("chrome")>=0?"chrome":b.indexOf("opera")>=0?"opera":b.indexOf("safari")>=0?"safari":void 0},addLoadEvent:function(d){if("function"!=typeof window.onload){window.onload=d}else{var c=window.onload;window.onload=function(){c(),d()}}},isSupportCanvas:function(){try{return document.createElement("canvas").getContext("2d"),!0}catch(b){return!1}},isMouseLeaveOrEnter:function(d,f){if(!d){return!1}
if("mouseout"!=d.type&&"mouseover"!=d.type&&"click"!=d.type){return!1}
for(var e=d.relatedTarget?d.relatedTarget:"mouseout"==d.type?d.toElement:d.fromElement;e&&e!=f;){e=e.parentNode}
return e!=f},currentEvent:function(){if(document.all){return window.event}
for(func=tctipUtil.currentEvent.caller;null!=func;){var b=func.arguments[0];if(b&&(b.constructor==Event||b.constructor==MouseEvent||"object"==typeof b&&b.preventDefault&&b.stopPropagation)){return b}
func=func.caller}
return null},mergeArray:function(g,e,h){for(var a in e){(g.hasOwnProperty(a)||h)&&(g[a]=e[a])}
return g},animate:function(g,e,h){for(var a in g){e.style[a]=g[a]}}},tctip=window.tctip||{myConfig:{headText:"喜欢请打赏",siderText:"公告 ● 支持",siderTextTop:"-84px",siderBgcolor:"#323d45",siderTop:"10%",buttomText:"储物间地址发布页",buttomLink:"http://axutongxue.ysepan.com/"},myRewards:null,myRewardsBtn:null,myRewardsMain:null,myRewardsbox:null,myRewardsList:null,myRewardsDetail:null,myRewardsListUl:null,myRewardsUbox:null,currentLi:null,currentData:null,generateMyConfig:function(){tctip.myConfig=tctipUtil.mergeArray(tctip.myConfig,tctipConfig);var i=[],e=0,j=!1;for(var a in tctipConfig.list){var h=tctipConfig.list[a];if("myR-on"==h.className&&(j=!0),i.push(h),e+=1,e>=5){break}}
0==j&&(i[0].className="myR-on"),tctip.myConfig.list=i},generateMyRewards:function(){this.myRewards=tctipUtil.createElement({id:"myRewards",className:"myRewards",style:"top:"+this.myConfig.siderTop+";"}),this.generateLeftBtn(),this.generateMyRewardsMain()},generateLeftBtn:function(){var b={className:"btn-myRewards"};b.style="margin-top:"+tctip.myConfig.siderTextTop+";";if(isMobileDevice()||isPc()){b.onclick=function(){tctip.showTctip(this)}}else{b.onmouseover=function(){tctip.showTctip(this)}}
this.myRewardsBtn=tctipUtil.createElement(b,"a",this.myRewards);b={className:"sider-text"};b.style="background-color:"+tctip.myConfig.siderBgcolor,b[tctipUtil.getTextKey()]=tctip.myConfig.siderText,tctipUtil.createElement(b,"p",this.myRewardsBtn)},showTctip:function(d){var c=tctipUtil.currentEvent();tctipUtil.isMouseLeaveOrEnter(c,d)&&(tctipUtil.animate({width:"240px"},tctip.myRewards,200),tctipUtil.animate({display:"none"},tctip.myRewardsBtn,200))},hideTctip:function(d){var c=tctipUtil.currentEvent();tctipUtil.isMouseLeaveOrEnter(c,d)&&(tctipUtil.animate({width:"0px"},tctip.myRewards,200),tctipUtil.animate({display:"block"},tctip.myRewardsBtn,200))},generateMyRewardsMain:function(){this.myRewardsMain=tctipUtil.createElement({className:"myRewards-main",onmouseout:function(){tctip.hideTctip(this)}},"div",this.myRewards);var d=this.myRewardsMain,f={className:"sider-close",title:"收起",onclick:function(){tctip.hideTctip(d)}};f[tctipUtil.getTextKey()]=">>",tctipUtil.createElement(f,"a",this.myRewardsMain);f={className:"myR-h"};f[tctipUtil.getTextKey()]=tctip.myConfig.headText,tctipUtil.createElement(f,"h1",this.myRewardsMain),this.generateMyRewardsbox();var e=tctipUtil.createElement({className:"myR-bot"},"p",this.myRewardsMain);f={href:tctip.myConfig.buttomLink||"http://axutongxue.ysepan.com/",target:"_blank"},f[tctipUtil.getTextKey()]=tctip.myConfig.buttomText||"储物间地址发布页",tctipUtil.createElement(f,"a",e)},generateMyRewardsbox:function(){this.myRewardsbox=tctipUtil.createElement({className:"myRewardsbox"},"div",this.myRewardsMain),this.generateMyRewardsList(),this.generateMyRewardsDetail()},generateMyRewardsList:function(){this.myRewardsList=tctipUtil.createElement({className:"myRewards-list"},"div",this.myRewardsbox),tctip.myConfig.list.length>=5?this.myRewardsListUl=tctipUtil.createElement({},"ul",this.myRewardsList):this.myRewardsListUl=tctipUtil.createElement({className:"not-full"},"ul",this.myRewardsList);for(var g=0;g<5&&tctip.myConfig.list.hasOwnProperty(g);g++){var e=tctip.myConfig.list[g],h=tctipUtil.createElement({className:e.className},"li",this.myRewardsListUl),a=null;(function(){var b=e,c={onmouseover:function(){tctip.leftMouseover(this,b)}};c[tctipUtil.getTextKey()]=e.name,4==g&&(c.className="fifth"),a=tctipUtil.createElement(c,"a",h)})(),"myR-on"==e.className&&(this.currentLi=h,this.currentData=e),tctipUtil.createElement({className:"png",src:e.icon,alt:e.name,},"img",a)}},generateMyRewardsDetail:function(){tctip.myRewardsDetail&&tctip.myRewardsbox.removeChild(tctip.myRewardsDetail),this.myRewardsDetail=tctipUtil.createElement({className:"myRewards-detail"},"div",this.myRewardsbox),this.myRewardsUbox=tctipUtil.createElement({className:"myRewards-ubox"},"div",this.myRewardsDetail);var d={className:"myRewards-code-tit"};if(tctip.currentData.hasOwnProperty("text")){var c=tctipUtil.createElement({className:"myRewards-notice"},"div",this.myRewardsUbox);d={className:"myRewards-text"},d.innerHTML=tctip.currentData.text||tctip.currentData.desc||tctip.currentData.name;tctipUtil.createElement(d,"p",c)}else{d[tctipUtil.getTextKey()]="点击或扫描二维码访问",tctipUtil.createElement(d,"p",this.myRewardsUbox);c=tctipUtil.createElement({className:"myRewards-code",onclick:function(){window.open(tctip.currentData.href,'_blank');}},"div",this.myRewardsUbox);if(tctip.currentData.hasOwnProperty("qrimg")){tctipUtil.createElement({src:tctip.currentData.qrimg},"img",c),d={className:"myRewards-account"},d[tctipUtil.getTextKey()]=tctip.currentData.desc||tctip.currentData.name;tctipUtil.createElement(d,"p",this.myRewardsUbox)}}},leftMouseover:function(d,c){tctip.currentLi.className="",d.parentNode.className="myR-on",tctip.currentLi=d.parentNode,tctip.currentData=c,tctip.generateMyRewardsDetail()},init:function(){document.body?(tctip.generateMyConfig(),tctip.generateMyRewards()):setTimeout(tctip.init,0)
const list=[{href:''},{href:'https://api.simhaoka.com/h5/index?uc=kTNQ3GWi6a'},{href:'https://www.zhihu.com/consult/people/1262168587433316352'},{href:'https://t.zsxq.com/19d2gGtRe'},{href:'http://axu.xpsup.cn/'},{href:'https://wework.qpic.cn/wwpic3az/868712_406F_AcaTZmY_iF_1725940154/0'}]
tctip.myConfig.list.map((item,index)=>{if(item.qrimg){item.href=list[index].href}})}};function isPc(){var ua=window.navigator.userAgent
var IsIPad=false
if(/ipad/i.test(ua)){IsIPad=true}
var macApp=ua.match(/Macintosh/i)!=null
if(macApp){var canvas=document.createElement('canvas')
if(canvas!=null){var context=canvas.getContext('webgl')||canvas.getContext('experimental-webgl')
if(context){var info=context.getExtension('WEBGL_debug_renderer_info')
if(info){var renderer=context.getParameter(info.UNMASKED_RENDERER_WEBGL)
if(renderer.indexOf('Apple')!=-1)IsIPad=true}}}}
return IsIPad;}
function isMobileDevice(){return navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);}
tctip.init();