mirror of
https://github.com/tangkunyin/hexo-theme-jsimple.git
synced 2026-01-25 14:56:28 +00:00
2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(h){M=(i=[]).concat,o=i.filter,l=i.slice,f=h.document,p={},e={},R={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},Z=/^\s*<(\w+|!)[^>]*>/,z=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,q=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,H=/^(?:body|html)$/i,I=/([A-Z])/g,V=["val","css","html","text","data","width","height","offset"],t=f.createElement("table"),_=f.createElement("tr"),B={tr:f.createElement("tbody"),tbody:t,thead:t,tfoot:t,td:_,th:_,"*":f.createElement("div")},U=/complete|loaded|interactive/,X=/^[\w-]*$/,W=(J={}).toString,d={},Y=f.createElement("div"),G={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},m=Array.isArray||function(t){return t instanceof Array},d.matches=function(t,e){var n,r;return!(!e||!t||1!==t.nodeType)&&((n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector)?n.call(t,e):((r=!(n=t.parentNode))&&(n=Y).appendChild(t),n=~d.qsa(n,e).indexOf(t),r&&Y.removeChild(t),n))},s=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},n=function(n){return o.call(n,function(t,e){return n.indexOf(t)==e})},d.fragment=function(t,e,n){var r,i,o;return(r=z.test(t)?c(f.createElement(RegExp.$1)):r)||(t.replace&&(t=t.replace(q,"<$1></$2>")),e===u&&(e=Z.test(t)&&RegExp.$1),(o=B[e=e in B?e:"*"]).innerHTML=""+t,r=c.each(l.call(o.childNodes),function(){o.removeChild(this)})),N(n)&&(i=c(r),c.each(n,function(t,e){-1<V.indexOf(t)?i[t](e):i.attr(t,e)})),r},d.Z=function(t,e){return new wt(t,e)},d.isZ=function(t){return t instanceof d.Z},d.init=function(t,e){var n,r;if(!t)return d.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&Z.test(t))n=d.fragment(t,RegExp.$1,e),t=null;else{if(e!==u)return c(e).find(t);n=d.qsa(f,t)}else{if(S(t))return c(f).ready(t);if(d.isZ(t))return t;if(m(t))r=t,n=o.call(r,function(t){return null!=t});else if(C(t))n=[t],t=null;else if(Z.test(t))n=d.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==u)return c(e).find(t);n=d.qsa(f,t)}}return d.Z(n,t)},(c=function(t,e){return d.init(t,e)}).extend=function(e){var n,t=l.call(arguments,1);return"boolean"==typeof e&&(n=e,e=t.shift()),t.forEach(function(t){!function t(e,n,r){for(a in n)r&&(N(n[a])||m(n[a]))?(N(n[a])&&!N(e[a])&&(e[a]={}),m(n[a])&&!m(e[a])&&(e[a]=[]),t(e[a],n[a],r)):n[a]!==u&&(e[a]=n[a])}(e,t,n)}),e},d.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,a=X.test(o);return t.getElementById&&a&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(a&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},c.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e=e&&e.parentNode;)if(e===t)return!0;return!1},c.type=w,c.isFunction=S,c.isWindow=yt,c.isArray=m,c.isPlainObject=N,c.isEmptyObject=function(t){for(var e in t)return!1;return!0},c.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},c.inArray=function(t,e,n){return i.indexOf.call(e,t,n)},c.camelCase=s,c.trim=function(t){return null==t?"":String.prototype.trim.call(t)},c.uuid=0,c.support={},c.expr={},c.noop=function(){},c.map=function(t,e){var n,r,i,o,a=[];if(bt(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&a.push(n);else for(i in t)n=e(t[i],i),null!=n&&a.push(n);return 0<(o=a).length?c.fn.concat.apply([],o):o},c.each=function(t,e){var n,r;if(bt(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},c.grep=function(t,e){return o.call(t,e)},h.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()}),c.fn={constructor:d.Z,length:0,forEach:i.forEach,reduce:i.reduce,push:i.push,sort:i.sort,splice:i.splice,indexOf:i.indexOf,concat:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=d.isZ(t=arguments[n])?t.toArray():t;return M.apply(d.isZ(this)?this.toArray():this,e)},map:function(n){return c(c.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return c(l.apply(this,arguments))},ready:function(t){return U.test(f.readyState)&&f.body?t(c):f.addEventListener("DOMContentLoaded",function(){t(c)},!1),this},get:function(t){return t===u?l.call(this):this[0<=t?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(n){return i.every.call(this,function(t,e){return!1!==n.call(t,e,t)}),this},filter:function(e){return S(e)?this.not(this.not(e)):c(o.call(this,function(t){return d.matches(t,e)}))},add:function(t,e){return c(n(this.concat(c(t,e))))},is:function(t){return 0<this.length&&d.matches(this[0],t)},not:function(e){var n,r=[];return S(e)&&e.call!==u?this.each(function(t){e.call(this,t)||r.push(this)}):(n="string"==typeof e?this.filter(e):bt(e)&&S(e.item)?l.call(e):c(e),this.forEach(function(t){n.indexOf(t)<0&&r.push(t)})),c(r)},has:function(t){return this.filter(function(){return C(t)?c.contains(this,t):c(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!C(t)?t:c(t)},last:function(){var t=this[this.length-1];return t&&!C(t)?t:c(t)},find:function(t){var n=this;return t?"object"==typeof t?c(t).filter(function(){var e=this;return i.some.call(n,function(t){return c.contains(t,e)})}):1==this.length?c(d.qsa(this[0],t)):this.map(function(){return d.qsa(this,t)}):c()},closest:function(n,r){var i=[],o="object"==typeof n&&c(n);return this.each(function(t,e){for(;e&&!(o?0<=o.indexOf(e):d.matches(e,n));)e=e!==r&&!xt(e)&&e.parentNode;e&&i.indexOf(e)<0&&i.push(e)}),c(i)},parents:function(t){for(var e=[],n=this;0<n.length;)n=c.map(n,function(t){return(t=t.parentNode)&&!xt(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return St(e,t)},parent:function(t){return St(n(this.pluck("parentNode")),t)},children:function(t){return St(this.map(function(){return Tt(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||l.call(this.childNodes)})},siblings:function(t){return St(this.map(function(t,e){return o.call(Tt(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return c.map(this,function(t){return t[e]})},show:function(){return this.each(function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,p[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),p[t]=n="none"==n?"block":n),p[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(e){var n,r,i=S(e);return this[0]&&!i&&(n=c(e).get(0),r=n.parentNode||1<this.length),this.each(function(t){c(this).wrapAll(i?e.call(this,t):r?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){c(this[0]).before(t=c(t));for(var e;(e=t.children()).length;)t=e.first();c(t).append(this)}return this},wrapInner:function(r){var i=S(r);return this.each(function(t){var e=c(this),n=e.contents(),t=i?r.call(this,t):r;n.length?n.wrapAll(t):e.append(t)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=c(this);(e===u?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(t){return c(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return c(this.pluck("nextElementSibling")).filter(t||"*")},html:function(n){return 0 in arguments?this.each(function(t){var e=this.innerHTML;c(this).empty().append(P(this,n,t,e))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){t=P(this,e,t,this.textContent);this.textContent=null==t?"":""+t}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var t;return"string"!=typeof e||1 in arguments?this.each(function(t){if(1===this.nodeType)if(C(e))for(a in e)Ct(this,a,e[a]);else Ct(this,e,P(this,n,t,this.getAttribute(e)))}):0 in this&&1==this[0].nodeType&&null!=(t=this[0].getAttribute(e))?t:u},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){Ct(this,t)},this)})},prop:function(e,n){return e=G[e]||e,1 in arguments?this.each(function(t){this[e]=P(this,n,t,this[e])}):this[0]&&this[0][e]},removeProp:function(t){return t=G[t]||t,this.each(function(){delete this[t]})},data:function(t,e){t="data-"+t.replace(I,"-$1").toLowerCase(),e=1 in arguments?this.attr(t,e):this.attr(t);return null!==e?Nt(e):u},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each(function(t){this.value=P(this,e,t,this.value)})):this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(r){var t;return r?this.each(function(t){var e=c(this),t=P(this,r,t,e.offset()),n=e.offsetParent().offset(),t={top:t.top-n.top,left:t.left-n.left};"static"==e.css("position")&&(t.position="relative"),e.css(t)}):this.length?f.documentElement===this[0]||c.contains(f.documentElement,this[0])?{left:(t=this[0].getBoundingClientRect()).left+h.pageXOffset,top:t.top+h.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}:{top:0,left:0}:null},css:function(t,e){if(arguments.length<2){var n,r,i=this[0];if("string"==typeof t)return i?i.style[s(t)]||getComputedStyle(i,"").getPropertyValue(t):void 0;if(m(t))return i?(n={},r=getComputedStyle(i,""),c.each(t,function(t,e){n[e]=i.style[s(e)]||r.getPropertyValue(e)}),n):void 0}var o="";if("string"==w(t))e||0===e?o=O(t)+":"+jt(t,e):this.each(function(){this.style.removeProperty(O(t))});else for(a in t)t[a]||0===t[a]?o+=O(a)+":"+jt(a,t[a])+";":this.each(function(){this.style.removeProperty(O(a))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(c(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&i.some.call(this,function(t){return this.test(A(t))},Et(t))},addClass:function(n){return n?this.each(function(t){var e;"className"in this&&(r=[],e=A(this),P(this,n,t,e).split(/\s+/g).forEach(function(t){c(this).hasClass(t)||r.push(t)},this),r.length)&&A(this,e+(e?" ":"")+r.join(" "))}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===u)return A(this,"");r=A(this),P(this,e,t,r).split(/\s+/g).forEach(function(t){r=r.replace(Et(t)," ")}),A(this,r.trim())}})},toggleClass:function(n,r){return n?this.each(function(t){var e=c(this);P(this,n,t,A(this)).split(/\s+/g).forEach(function(t){(r===u?!e.hasClass(t):r)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t){var e;if(this.length)return e="scrollTop"in this[0],t===u?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})},scrollLeft:function(t){var e;if(this.length)return e="scrollLeft"in this[0],t===u?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})},position:function(){var t,e,n,r;if(this.length)return t=this[0],e=this.offsetParent(),n=this.offset(),r=H.test(e[0].nodeName)?{top:0,left:0}:e.offset(),n.top-=parseFloat(c(t).css("margin-top"))||0,n.left-=parseFloat(c(t).css("margin-left"))||0,r.top+=parseFloat(c(e[0]).css("border-top-width"))||0,r.left+=parseFloat(c(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!H.test(t.nodeName)&&"static"==c(t).css("position");)t=t.offsetParent;return t})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(r){var i=r.replace(/./,function(t){return t[0].toUpperCase()});c.fn[r]=function(e){var t,n=this[0];return e===u?yt(n)?n["inner"+i]:xt(n)?n.documentElement["scroll"+i]:(t=this.offset())&&t[r]:this.each(function(t){(n=c(this)).css(r,P(this,e,t,n[r]()))})}}),["after","prepend","before","append"].forEach(function(e,a){var s=a%2;c.fn[e]=function(){var n,r,i=c.map(arguments,function(t){var e=[];return"array"==(n=w(t))?(t.forEach(function(t){return t.nodeType!==u?e.push(t):c.zepto.isZ(t)?e=e.concat(t.get()):void(e=e.concat(d.fragment(t)))}),e):"object"==n||null==t?t:d.fragment(t)}),o=1<this.length;return i.length<1?this:this.each(function(t,e){r=s?e:e.parentNode,e=0==a?e.nextSibling:1==a?e.firstChild:2==a?e:null;var n=c.contains(f.documentElement,r);i.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!r)return c(t).remove();r.insertBefore(t,e),n&&function t(e,n){n(e);for(var r=0,i=e.childNodes.length;r<i;r++)t(e.childNodes[r],n)}(t,function(t){var e;null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||(e=t.ownerDocument?t.ownerDocument.defaultView:h).eval.call(e,t.innerHTML)})})})},c.fn[s?e+"To":"insert"+(a?"Before":"After")]=function(t){return c(t)[e](this),this}}),d.Z.prototype=wt.prototype=c.fn,d.uniq=n,d.deserializeValue=Nt,c.zepto=d;var u,a,c,r,s,n,i,M,o,l,f,p,e,R,Z,z,q,H,I,V,_,B,U,X,J,W,d,Y,G,m,v,g,K,y,Q,x,tt,et,nt,rt,it,ot,at,st,b,E,ut,ct,lt,j,T,ft,ht,pt,dt,mt,vt,gt,t=c;function w(t){return null==t?String(t):J[W.call(t)]||"object"}function S(t){return"function"==w(t)}function yt(t){return null!=t&&t==t.window}function xt(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function C(t){return"object"==w(t)}function N(t){return C(t)&&!yt(t)&&Object.getPrototypeOf(t)==Object.prototype}function bt(t){var e=!!t&&"length"in t&&t.length,n=c.type(t);return"function"!=n&&!yt(t)&&("array"==n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function O(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function Et(t){return t in e?e[t]:e[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function jt(t,e){return"number"!=typeof e||R[O(t)]?e:e+"px"}function Tt(t){return"children"in t?l.call(t.children):c.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function wt(t,e){for(var n=t?t.length:0,r=0;r<n;r++)this[r]=t[r];this.length=n,this.selector=e||""}function St(t,e){return null==e?c(t):c(t).filter(e)}function P(t,e,n,r){return S(e)?e.call(t,n,r):e}function Ct(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function A(t,e){var n=t.className||"",r=n&&n.baseVal!==u;return e===u?r?n.baseVal:n:void(r?n.baseVal=e:t.className=e)}function Nt(e){try{return e&&("true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?c.parseJSON(e):e))}catch(t){return e}}h.Zepto=t,void 0===h.$&&(h.$=t),b=t,ut=1,ct=Array.prototype.slice,lt=b.isFunction,j={},T={},ft="onfocusin"in h,ht={focus:"focusin",blur:"focusout"},pt={mouseenter:"mouseover",mouseleave:"mouseout"},T.click=T.mousedown=T.mouseup=T.mousemove="MouseEvents",b.event={add:Zt,remove:zt},b.proxy=function(t,e){var n,r=2 in arguments&&ct.call(arguments,2);if(lt(t))return(n=function(){return t.apply(e,r?r.concat(ct.call(arguments)):arguments)})._zid=F(t),n;if(k(e))return r?(r.unshift(t[e],t),b.proxy.apply(null,r)):b.proxy(t[e],t);throw new TypeError("expected function")},b.fn.bind=function(t,e,n){return this.on(t,e,n)},b.fn.unbind=function(t,e){return this.off(t,e)},b.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)},dt=function(){return!0},mt=function(){return!1},vt=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,gt={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},b.fn.delegate=function(t,e,n){return this.on(e,t,n)},b.fn.undelegate=function(t,e,n){return this.off(e,t,n)},b.fn.live=function(t,e){return b(document.body).delegate(this.selector,t,e),this},b.fn.die=function(t,e){return b(document.body).undelegate(this.selector,t,e),this},b.fn.on=function(e,r,i,o,a){var s,u,n=this;return e&&!k(e)?(b.each(e,function(t,e){n.on(t,r,i,e,a)}),n):(k(r)||lt(o)||!1===o||(o=i,i=r,r=E),o!==E&&!1!==i||(o=i,i=E),!1===o&&(o=mt),n.each(function(t,n){a&&(s=function(t){return zt(n,t.type,o),o.apply(this,arguments)}),Zt(n,e,o,i,r,(u=r?function(t){var e=b(t.target).closest(r,n).get(0);return e&&e!==n?(t=b.extend(Ht(t),{currentTarget:e,liveFired:n}),(s||o).apply(e,[t].concat(ct.call(arguments,1)))):void 0}:u)||s)}))},b.fn.off=function(t,n,e){var r=this;return t&&!k(t)?(b.each(t,function(t,e){r.off(t,n,e)}),r):(k(n)||lt(e)||!1===e||(e=n,n=E),!1===e&&(e=mt),r.each(function(){zt(this,t,e,n)}))},b.fn.trigger=function(t,e){return(t=k(t)||b.isPlainObject(t)?b.Event(t):qt(t))._args=e,this.each(function(){t.type in ht&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):b(this).triggerHandler(t,e)})},b.fn.triggerHandler=function(n,r){var i,o;return this.each(function(t,e){(i=Ht(k(n)?b.Event(n):n))._args=r,i.target=e,b.each(Ft(e,n.type||n),function(t,e){return o=e.proxy(i),!i.isImmediatePropagationStopped()&&void 0})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){b.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),b.Event=function(t,e){k(t)||(t=(e=t).type);var n=document.createEvent(T[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),qt(n)},g=t,Q=+new Date,x=h.document,tt=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,et=/^(?:text|application)\/javascript/i,nt=/^(?:text|application)\/xml/i,rt="application/json",it="text/html",ot=/^\s*$/,(at=x.createElement("a")).href=h.location.href,g.active=0,g.ajaxJSONP=function(n,r){var i,o,t,a,s,u,e,c;return"type"in n?(t=n.jsonpCallback,a=(g.isFunction(t)?t():t)||"Zepto"+Q++,s=x.createElement("script"),u=h[a],c={abort:e=function(t){g(s).triggerHandler("error",t||"abort")}},r&&r.promise(c),g(s).on("load error",function(t,e){clearTimeout(o),g(s).off().remove(),"error"!=t.type&&i?At(i[0],c,n,r):L(null,e||"error",c,n,r),h[a]=u,i&&g.isFunction(u)&&u(i[0]),u=i=void 0}),!1===Pt(c,n)?e("abort"):(h[a]=function(){i=arguments},s.src=n.url.replace(/\?(.+)=\?/,"?$1="+a),x.head.appendChild(s),0<n.timeout&&(o=setTimeout(function(){e("timeout")},n.timeout))),c):g.ajax(n)},g.ajaxSettings={type:"GET",beforeSend:$,success:$,error:$,complete:$,context:null,global:!0,xhr:function(){return new h.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:rt,xml:"application/xml, text/xml",html:it,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:$},g.ajax=function(t){var a=g.extend({},t||{}),s=g.Deferred&&g.Deferred();for(K in g.ajaxSettings)void 0===a[K]&&(a[K]=g.ajaxSettings[K]);(e=a).global&&0==g.active++&&D(e,null,"ajaxStart"),a.crossDomain||((e=x.createElement("a")).href=a.url,e.href=e.href,a.crossDomain=at.protocol+"//"+at.host!=e.protocol+"//"+e.host),a.url||(a.url=h.location.toString()),-1<(e=a.url.indexOf("#"))&&(a.url=a.url.slice(0,e)),(e=a).processData&&e.data&&"string"!=g.type(e.data)&&(e.data=g.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=Lt(e.url,e.data),e.data=void 0);var u=a.dataType,e=/\?.+=\?/.test(a.url);if(e&&(u="jsonp"),!1!==a.cache&&(t&&!0===t.cache||"script"!=u&&"jsonp"!=u)||(a.url=Lt(a.url,"_="+Date.now())),"jsonp"==u)return e||(a.url=Lt(a.url,a.jsonp?a.jsonp+"=?":!1===a.jsonp?"":"callback=?")),g.ajaxJSONP(a,s);function n(t,e){r[t.toLowerCase()]=[t,e]}var c,t=a.accepts[u],r={},l=/^([\w-]+:)\/\//.test(a.url)?RegExp.$1:h.location.protocol,f=a.xhr(),i=f.setRequestHeader;if(s&&s.promise(f),a.crossDomain||n("X-Requested-With","XMLHttpRequest"),n("Accept",t||"*/*"),(t=a.mimeType||t)&&(-1<t.indexOf(",")&&(t=t.split(",",2)[0]),f.overrideMimeType)&&f.overrideMimeType(t),(a.contentType||!1!==a.contentType&&a.data&&"GET"!=a.type.toUpperCase())&&n("Content-Type",a.contentType||"application/x-www-form-urlencoded"),a.headers)for(y in a.headers)n(y,a.headers[y]);if(f.setRequestHeader=n,!(f.onreadystatechange=function(){if(4==f.readyState){f.onreadystatechange=$,clearTimeout(c);var t,e=!1;if(200<=f.status&&f.status<300||304==f.status||0==f.status&&"file:"==l){if(u=u||(o=(o=a.mimeType||f.getResponseHeader("content-type"))&&o.split(";",2)[0])&&(o==it?"html":o==rt?"json":et.test(o)?"script":nt.test(o)&&"xml")||"text","arraybuffer"==f.responseType||"blob"==f.responseType)t=f.response;else{t=f.responseText;try{n=t,r=u,t=(i=a).dataFilter==$?n:i.dataFilter.call(i.context,n,r),"script"==u?(0,eval)(t):"xml"==u?t=f.responseXML:"json"==u&&(t=ot.test(t)?null:g.parseJSON(t))}catch(t){e=t}if(e)return L(e,"parsererror",f,a,s)}At(t,f,a,s)}else L(f.statusText||null,f.status?"error":"abort",f,a,s)}var n,r,i,o})===Pt(f,a))f.abort(),L(null,"abort",f,a,s);else{e=!("async"in a)||a.async;if(f.open(a.type,a.url,e,a.username,a.password),a.xhrFields)for(y in a.xhrFields)f[y]=a.xhrFields[y];for(y in r)i.apply(f,r[y]);0<a.timeout&&(c=setTimeout(function(){f.onreadystatechange=$,f.abort(),L(null,"timeout",f,a,s)},a.timeout)),f.send(a.data||null)}return f},g.get=function(){return g.ajax($t.apply(null,arguments))},g.post=function(){var t=$t.apply(null,arguments);return t.type="POST",g.ajax(t)},g.getJSON=function(){var t=$t.apply(null,arguments);return t.dataType="json",g.ajax(t)},g.fn.load=function(t,e,n){var r,i,o,a;return this.length&&(i=this,o=t.split(/\s/),t=$t(t,e,n),a=t.success,1<o.length&&(t.url=o[0],r=o[1]),t.success=function(t){i.html(r?g("<div>").html(t.replace(tt,"")).find(r):t),a&&a.apply(i,arguments)},g.ajax(t)),this},st=encodeURIComponent,g.param=function(t,e){var n=[];return n.add=function(t,e){null==(e=g.isFunction(e)?e():e)&&(e=""),this.push(st(t)+"="+st(e))},function n(r,t,i,o){var a,s=g.isArray(t),u=g.isPlainObject(t);g.each(t,function(t,e){a=g.type(e),o&&(t=i?o:o+"["+(u||"object"==a||"array"==a?t:"")+"]"),!o&&s?r.add(e.name,e.value):"array"==a||!i&&"object"==a?n(r,e,i,t):r.add(t,e)})}(n,t,e),n.join("&").replace(/%20/g,"+")},(v=t).fn.serializeArray=function(){function n(t){return t.forEach?t.forEach(n):void e.push({name:r,value:t})}var r,i,e=[];return this[0]&&v.each(this[0].elements,function(t,e){i=e.type,(r=e.name)&&"fieldset"!=e.nodeName.toLowerCase()&&!e.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&"file"!=i&&("radio"!=i&&"checkbox"!=i||e.checked)&&n(v(e).val())}),e},v.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},v.fn.submit=function(t){return 0 in arguments?this.bind("submit",t):this.length&&(t=v.Event("submit"),this.eq(0).trigger(t),t.isDefaultPrevented()||this.get(0).submit()),this};try{getComputedStyle(void 0)}catch(t){var Ot=getComputedStyle;h.getComputedStyle=function(t,e){try{return Ot(t,e)}catch(t){return null}}}return t;function D(t,e,n,r){return t.global?(t=e||x,e=n,n=r,e=g.Event(e),g(t).trigger(e,n),!e.isDefaultPrevented()):void 0}function Pt(t,e){var n=e.context;return!1!==e.beforeSend.call(n,t,e)&&!1!==D(e,n,"ajaxBeforeSend",[t,e])&&void D(e,n,"ajaxSend",[t,e])}function At(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),D(n,i,"ajaxSuccess",[e,n,t]),Dt(o,e,n)}function L(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),D(r,o,"ajaxError",[n,r,t||e]),Dt(e,n,r)}function Dt(t,e,n){var r=n.context;n.complete.call(r,e,t),D(n,r,"ajaxComplete",[e,n]),(t=n).global&&!--g.active&&D(t,null,"ajaxStop")}function $(){}function Lt(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function $t(t,e,n,r){return g.isFunction(e)&&(r=n,n=e,e=void 0),g.isFunction(n)||(r=n,n=void 0),{url:t,data:e,success:n,dataType:r}}function F(t){return t._zid||(t._zid=ut++)}function Ft(t,e,n,r){var i;return(e=kt(e)).ns&&(i=new RegExp("(?:^| )"+e.ns.replace(" "," .* ?")+"(?: |$)")),(j[F(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||F(t.fn)===F(n))&&(!r||t.sel==r)})}function kt(t){t=(""+t).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function Mt(t,e){return t.del&&!ft&&t.e in ht||!!e}function Rt(t){return pt[t]||ft&&ht[t]||t}function Zt(r,t,i,o,a,s,u){var e=F(r),c=j[e]||(j[e]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return b(document).ready(i);var e=kt(t),n=(e.fn=i,e.sel=a,e.e in pt&&(i=function(t){t=t.relatedTarget;return!t||t!==this&&!b.contains(this,t)?e.fn.apply(this,arguments):void 0}),(e.del=s)||i);e.proxy=function(t){var e;if(!(t=qt(t)).isImmediatePropagationStopped())return t.data=o,!1===(e=n.apply(r,t._args==E?[t]:[t].concat(t._args)))&&(t.preventDefault(),t.stopPropagation()),e},e.i=c.length,c.push(e),"addEventListener"in r&&r.addEventListener(Rt(e.e),e.proxy,Mt(e,u))})}function zt(e,t,n,r,i){var o=F(e);(t||"").split(/\s/).forEach(function(t){Ft(e,t,n,r).forEach(function(t){delete j[o][t.i],"removeEventListener"in e&&e.removeEventListener(Rt(t.e),t.proxy,Mt(t,i))})})}function qt(r,i){return(i||!r.isDefaultPrevented)&&(i=i||r,b.each(gt,function(t,e){var n=i[t];r[t]=function(){return this[e]=dt,n&&n.apply(i,arguments)},r[e]=mt}),r.timeStamp||(r.timeStamp=Date.now()),i.defaultPrevented!==E?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(r.isDefaultPrevented=dt),r}function Ht(t){var e,n={originalEvent:t};for(e in t)vt.test(e)||t[e]===E||(n[e]=t[e]);return qt(n,t)}function k(t){return"string"==typeof t}});
|
|
function _createForOfIteratorHelper(e,o){var t,r,n,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return n=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){n=!0,t=e},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw t}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||o&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:o=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,o){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,o):"Map"===(t="Object"===(t={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,o):void 0}function _arrayLikeToArray(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,r=Array(o);t<o;t++)r[t]=e[t];return r}var LocalSearch={searchPath:"",trigger:"auto",topN:"1",unescape:!($.fn.scrollTo=function(e){var t=$.extend({toT:0,durTime:500,delay:30,callback:null},e),r=null,n=this,a=n.scrollTop(),i=t.toT-a,c=0,l=Math.round(t.durTime/t.delay),r=window.setInterval(function(){var e,o;e=t.toT,c++,o=Math.round(i/l),l<=c?(n.scrollTop(e),window.clearInterval(r),t.callback&&"function"==typeof t.callback&&t.callback()):n.scrollTop(a+c*o)},t.delay);return n}),isfetched:!1,isXml:!0,initParams:function(e){LocalSearch.searchPath=e.dbPath,LocalSearch.trigger=e.trigger,LocalSearch.topN=e.topN,LocalSearch.unescape="false"!==e.unescape,0===LocalSearch.searchPath.length?LocalSearch.searchPath="/search.xml":/json$/i.test(LocalSearch.searchPath)&&(LocalSearch.isXml=!1)},onPopupClose:function(){$(".popup").hide(),$("#local-search-input").val(""),$(".search-result-list").remove(),$("#no-result").remove(),$(".local-search-pop-overlay").remove(),$("body").css("overflow","")},proceedsearch:function(){$("body").append('<div class="search-popup-overlay local-search-pop-overlay"></div>').css("overflow","hidden"),$(".search-popup-overlay").click(LocalSearch.onPopupClose),$(".popup").toggle();var e=$("#local-search-input");e.attr("autocapitalize","none"),e.attr("autocorrect","off"),e.focus()},searchFunc:function(e,o){$(".search-popup-overlay").is(":visible")?alert("Fetching data...don't worry"):($("body").append('<div class="search-popup-overlay local-search-pop-overlay"><div id="search-loading-icon"><i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i></div></div>').css("overflow","hidden"),$("#search-loading-icon").css("margin","20% auto 0 auto").css("text-align","center"));var _,n=document.getElementById(e),a=document.getElementById(o);n&&a?(LocalSearch.unescape&&(_=function(e){return String(e).replace(/"/g,'"').replace(/'/g,"'").replace(/:/g,":").replace(/&#(\d+);/g,function(e,o){return String.fromCharCode(o)}).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}),$.ajax({url:LocalSearch.searchPath,timeout:5e3,dataType:LocalSearch.isXml?"xml":"json",async:!0,success:function(e){LocalSearch.isfetched=!0,$(".popup").detach().appendTo("body");function o(){var o,C=n.value.trim().toLowerCase(),$=C.split(/[\s\-]+/),w=(1<$.length&&$.push(C),[]);if(0<C.length&&Array.isArray(r)){var y,t=_createForOfIteratorHelper(r);try{for(t.s();!(y=t.n()).done;)!function(){var e=y.value;if(!e||!e.content)return;var o=!1,t=0,h=0,r=e.title.trim(),n=r.toLowerCase(),a=e.content.trim().replace(/<[^>]+>/g,""),i=(a=LocalSearch.unescape?a&&_(a):a).toLowerCase(),c=decodeURIComponent(e.url).replace(/\/{2,}/g,"/"),l=[],s=[];if(""!=r&&($.forEach(function(e){function o(e,o,t){var r=e.length;if(0===r)return[];var n,a=0,i=[];for(t||(o=o.toLowerCase(),e=e.toLowerCase());-1<(n=o.indexOf(e,a));)i.push({position:n,word:e}),a=n+r;return i}l=l.concat(o(e,n,!1)),s=s.concat(o(e,i,!1))}),0<l.length||0<s.length)&&(o=!0,t=l.length+s.length),o){for(var p=function(e,o,t,r){for(var n=r[r.length-1],a=n.position,i=n.word,c=[],l=0;a+i.length<=t&&0!=r.length;){i===C&&l++,c.push({position:a,length:i.length});var s=a+i.length;for(r.pop();0!=r.length&&(a=(n=r[r.length-1]).position,i=n.word,a<s);)r.pop()}return h+=l,{hits:c,start:o,end:t,searchTextCount:l}},u=function(t,e){var r="",n=e.start;return e.hits.forEach(function(e){r+=t.substring(n,e.position);var o=e.position+e.length;r+='<b class="search-keyword">'+t.substring(e.position,o)+"</b>",n=o}),r+=t.substring(n,e.end)},e=([l,s].forEach(function(e){e.sort(function(e,o){return o.position!==e.position?o.position-e.position:e.word.length-o.word.length})}),[]),d=(0!=l.length&&e.push(p(0,0,r.length,l)),[]);0!=s.length;){var f=s[s.length-1],g=f.position,f=f.word,m=g-20,v=g+80;m<0&&(m=0),(v=v<g+f.length?g+f.length:v)>a.length&&(v=a.length),d.push(p(0,m,v,s))}d.sort(function(e,o){return e.searchTextCount!==o.searchTextCount?o.searchTextCount-e.searchTextCount:e.hits.length!==o.hits.length?o.hits.length-e.hits.length:e.start-o.start});var o=parseInt(LocalSearch.topN),S=(0<=o&&(d=d.slice(0,o)),"");S+=0!=e.length?"<li><a href='"+c+"' class='search-result-title'>"+u(r,e[0])+"</a>":"<li><a href='"+c+"' class='search-result-title'>"+r+"</a>",d.forEach(function(e){S+="<a href='"+c+'\'><p class="search-result">'+u(a,e)+"...</p></a>"}),S+="</li>",w.push({item:S,searchTextCount:h,hitCount:t,id:w.length})}}()}catch(e){t.e(e)}finally{t.f()}}1===$.length&&""===$[0]?a.innerHTML='<div id="no-result">\n <i class="fa fa-search fa-5x"></i>\n <p>按Esc退出搜索...</p>\n </div>':0===w.length?a.innerHTML='<div id="no-result">\n <i class="fa fa-frown-o fa-5x"></i>\n <p>暂未查到有关内容,催更点<a href="'.concat(SimpleCore.chatLink,'" target="blank">这里</a></p>\n </div>'):(w.sort(function(e,o){return e.searchTextCount!==o.searchTextCount?o.searchTextCount-e.searchTextCount:e.hitCount!==o.hitCount?o.hitCount-e.hitCount:o.id-e.id}),o='<ul class="search-result-list">',w.forEach(function(e){o+=e.item}),o+="</ul>",a.innerHTML=o)}var r=LocalSearch.isXml?$("entry",e).map(function(){return{title:$("title",this).text(),content:$("content",this).text(),url:$("url",this).text()}}).get():e;"auto"===LocalSearch.trigger?n.addEventListener("input",o):($(".search-icon").click(o),n.addEventListener("keypress",function(e){13===e.keyCode&&o()})),$(".local-search-pop-overlay").remove(),$("body").css("overflow",""),LocalSearch.proceedsearch()},error:function(e,o,t){alert(o+", Load error when get "+LocalSearch.searchPath),console.error(t),window.location.reload(!0)}})):console.error("Elements not exists with searchId: "+e+", resultContentId: "+o)},doSearch:function(e){e&&e.stopPropagation(),LocalSearch.isfetched?LocalSearch.proceedsearch():LocalSearch.searchFunc("local-search-input","local-search-result")}},SimpleCore={creationTime:new Date,highlightTheme:null,isPost:"false",prevTop:0,headerShow:!0,localSearch:{},readMode:"day",chatLink:"/",initParams:function(e){SimpleCore.creationTime=e.creationTime,SimpleCore.highlightTheme=e.highlightTheme,SimpleCore.isPost=e.isPost,SimpleCore.localSearch=e.localSearch,SimpleCore.readMode=e.readMode,SimpleCore.chatLink=e.chatLink},init:function(e){SimpleCore.initParams(e),LocalSearch.initParams(SimpleCore.localSearch),$(window).resize(function(){SimpleCore.syncSize()}),$(window).scroll(function(e){SimpleCore.scrollCallback()}),$(document).on("click",".btn-read-mode",function(e){e.preventDefault(),SimpleCore.switchReadMode()}),$(document).on("click",".btn-search",function(e){e.preventDefault(),SimpleCore.switchSearch()}),$(document).on("click","#local-search-input-tip",function(e){LocalSearch.doSearch(e)}),$(document).on("click",".popup-btn-close",function(e){e.preventDefault(),LocalSearch.onPopupClose()}),$(document).on("click",".popup",function(e){e.stopPropagation()}),$(document).on("click",".btn-gotop",function(e){e.preventDefault(),SimpleCore.goTop()}),SimpleCore.changeReadModel(),SimpleCore.setPageCurrent(),SimpleCore.setBuildingTime(),SimpleCore.syncSize(),SimpleCore.printGreeting(),SimpleCore.registerHotKeyEvent(),SimpleCore.setDefaultReadingMode()},goTop:function(){$("html, body").scrollTo({toT:0})},setPageCurrent:function(){"true"===SimpleCore.isPost?($("#cover").hide(),$("body").addClass("single")):($("#cover").show(),$("body").removeClass("single")),$.each($(".nav-menu a"),function(e,o){o.href===window.location.href||o.href===window.location.href.replace(/\/$/,"")?$(o).addClass("current"):$(o).removeClass("current")})},scrollCallback:function(){var e=document.documentElement.scrollTop||document.body.scrollTop||0;100<e?$(".fixed-btn").show():$(".fixed-btn").hide(),$("body").hasClass("single")&&(SimpleCore.headerShow=e<100||0<SimpleCore.prevTop-e,SimpleCore.headerToggle()),SimpleCore.prevTop=e},headerToggle:function(){SimpleCore.headerShow?($(".page-title").css("top",0),$(".nav-user").css("top",0),$(window).width()<480&&$("#nav").css("top",0)):($(".page-title").css("top",-45),$(".nav-user").css("top",-45),$(window).width()<480&&$("#nav").css("top",-45))},syncSize:function(){var e=$(".page-title"),o=$(window).width();768<o&&"true"!==SimpleCore.isPost?e.width($("#body > .main").width()):e.removeAttr("style"),o<768&&$(".site-name").click(function(e){e.preventDefault()})},switchSearch:function(){var e=$("#search");e.hasClass("active")?e.removeClass("active"):e.addClass("active")},switchReadMode:function(e){var o=$("body").hasClass("night-mode")?"day":"night";"string"==typeof e&&0<e.length&&(o=e),SimpleCore.setLocalData("read-mode",o),SimpleCore.changeReadModel()},changeReadModel:function(){var e=$(".btn-read-mode"),e=("night"==SimpleCore.getLocalData("read-mode")?($("body").addClass("night-mode"),e.find("i").attr("class","fa fa-moon-o"),$(".cover-img").attr("src",location.origin+"/images/cover-night.webp")):($("body").removeClass("night-mode"),e.find("i").attr("class","fa fa-sun-o"),$(".cover-img").attr("src",location.origin+"/images/cover-day.webp")),SimpleCore.highlightTheme||"default");"default"!==e&&(e+="night"==SimpleCore.getLocalData("read-mode")?"-dark":"-light"),$("#highl_css").load("/css/".concat(e,".min.css"))},alert:function(e,o){if(0<$("#notice").length)return!1;$('<div id="notice"></div>').appendTo($("body"));var t="notice-"+(new Date).getTime();$('<div id="'+t+'" class="notice-item"><span class="notice-item-close"><i class="fa fa-close"></i></span><p><h3 style="text-align: center;margin:0 0 10px 0">'+e+"</h3>"+o+"</p></div>").appendTo($("#notice")).on("click",".notice-item-close",function(){return $("#notice").remove(),!1}),$("#notice").css("margin-right",-$("#notice").width()/2),setTimeout(function(){$("#notice").remove()},1e4)},setLocalData:function(e,o){window.localStorage&&window.localStorage.setItem(e,o)},getLocalData:function(e){if(window.localStorage)return window.localStorage.getItem(e)},setBuildingTime:function(){var e=new Date(SimpleCore.creationTime),o=new Date,e=o.getTime()-e.getTime(),e=Math.floor(e/864e5);return $("#cpYear").html(o.getFullYear()),$("#siteBuildingTime").html(e),e},printGreeting:function(){var e=" _ _ _ _ _ _ _ _ \n( ) ( ) (_ ) (_ ) ( ) _ ( ) (_ ) ( )\n| |_| | __ | | | | _ | | ( ) | | _ _ __ | | _| |\n| _ | /'__`\\ | | | | /'_`\\ | | | | | | /'_`\\ ( '__)| | /'_` |\n| | | |( ___/ | | | | ( (_) ) | (_/ \\_) |( (_) )| | | | ( (_| |\n(_) (_)`\\____)(___)(___)`\\___/' `\\___x___/'`\\___/'(_) (___)`\\__,_)\n\n已稳定运行"+this.setBuildingTime()+"天,拦截了无数次逗比攻击!🎉🎉🎉\n ";console.log("%c\n"+e,"color: #527fe2; font-family:KaiTi;font-size: 16px")},registerHotKeyEvent:function(o){$(document).on("keyup",function(e){"Escape"===e.key&&"block"===$(".search-popup").css("display")&&($(".search-popup").hide(),$(".search-popup-overlay").remove(),$("body").css("overflow","")),"Shift"===e.key&&"none"===$(".search-popup").css("display")&&LocalSearch.doSearch(o)})},setDefaultReadingMode:function(){SimpleCore.getLocalData("read-mode")||"day"!==SimpleCore.readMode&&"night"!==SimpleCore.readMode||SimpleCore.switchReadMode(SimpleCore.readMode)}};$(function(){window.jsi_config?SimpleCore.init(window.jsi_config):console.error("JSimple get wrong config: ",window.jsi_config)}); |