diff --git a/dist/script/comBefore.96850235.js.gz b/dist/script/comBefore.96850235.js.gz deleted file mode 100644 index b2da1826..00000000 Binary files a/dist/script/comBefore.96850235.js.gz and /dev/null differ diff --git a/dist/script/comBefore.96850235.js b/dist/script/comBefore.f9966144.js similarity index 76% rename from dist/script/comBefore.96850235.js rename to dist/script/comBefore.f9966144.js index 793eb992..e60305e5 100644 --- a/dist/script/comBefore.96850235.js +++ b/dist/script/comBefore.f9966144.js @@ -1 +1 @@ -(self.webpackChunkCnblogs_Theme_SimpleMemory=self.webpackChunkCnblogs_Theme_SimpleMemory||[]).push([[3304],{7157:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s={};!function(){var t=s.util={},e=Array.prototype.concat,i=Array.prototype.slice;t.bind=function(t,s){var n=i.call(arguments,2);return function(){t.apply(s,e.call(n,i.call(arguments)))}},t.extend=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};var n=s.SpringSystem=function(t){this._springRegistry={},this._activeSprings=[],this.listeners=[],this._idleSpringIndices=[],this.looper=t||new l,this.looper.springSystem=this};t.extend(n.prototype,{_springRegistry:null,_isIdle:!0,_lastTimeMillis:-1,_activeSprings:null,listeners:null,_idleSpringIndices:null,setLooper:function(t){this.looper=t,t.springSystem=this},createSpring:function(t,e){var i;return i=void 0===t||void 0===e?o.DEFAULT_ORIGAMI_SPRING_CONFIG:o.fromOrigamiTensionAndFriction(t,e),this.createSpringWithConfig(i)},createSpringWithBouncinessAndSpeed:function(t,e){var i;return i=void 0===t||void 0===e?o.DEFAULT_ORIGAMI_SPRING_CONFIG:o.fromBouncinessAndSpeed(t,e),this.createSpringWithConfig(i)},createSpringWithConfig:function(t){var e=new r(this);return this.registerSpring(e),e.setSpringConfig(t),e},getIsIdle:function(){return this._isIdle},getSpringById:function(t){return this._springRegistry[t]},getAllSprings:function(){var t=[];for(var e in this._springRegistry)this._springRegistry.hasOwnProperty(e)&&t.push(this._springRegistry[e]);return t},registerSpring:function(t){this._springRegistry[t.getId()]=t},deregisterSpring:function(t){p(this._activeSprings,t),delete this._springRegistry[t.getId()]},advance:function(t,e){for(;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(var i=0,s=this._activeSprings.length;i0;){var r=this._idleSpringIndices.pop();r>=0&&this._activeSprings.splice(r,1)}},loop:function(t){var e;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var i=t-this._lastTimeMillis;this._lastTimeMillis=t;var s=0,n=this.listeners.length;for(s=0;s0&&(te||t>e&&this.getCurrentValue()r.MAX_DELTA_TIME_SEC&&(s=r.MAX_DELTA_TIME_SEC),this._timeAccumulator+=s;for(var n,a,o,l,c,h,d,_,u=this._springConfig.tension,p=this._springConfig.friction,m=this._currentState.position,g=this._currentState.velocity,f=this._tempState.position,v=this._tempState.velocity;this._timeAccumulator>=r.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=r.SOLVER_TIMESTEP_SEC,this._timeAccumulator0&&this._interpolate(this._timeAccumulator/r.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),i=!0);var b=!1;this._wasAtRest&&(this._wasAtRest=!1,b=!0);var y=!1;i&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(b,y)}},notifyPositionUpdated:function(t,e){for(var i=0,s=this.listeners.length;i18&&t<=44?this.b3Friction2(t):this.b3Friction3(t)}}),t.extend(o,{fromOrigamiTensionAndFriction:function(t,e){return new o(c.tensionFromOrigamiValue(t),c.frictionFromOrigamiValue(e))},fromBouncinessAndSpeed:function(t,e){var i=new s.BouncyConversion(t,e);return this.fromOrigamiTensionAndFriction(i.bouncyTension,i.bouncyFriction)},coastingConfigWithOrigamiFriction:function(t){return new o(0,c.frictionFromOrigamiValue(t))}}),o.DEFAULT_ORIGAMI_SPRING_CONFIG=o.fromOrigamiTensionAndFriction(40,7),t.extend(o.prototype,{friction:0,tension:0});var d={};t.hexToRGB=function(t){if(d[t])return d[t];3===(t=t.replace("#","")).length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=t.match(/.{2}/g),i={r:parseInt(e[0],16),g:parseInt(e[1],16),b:parseInt(e[2],16)};return d[t]=i,i},t.rgbToHex=function(t,e,i){return t=t.toString(16),e=e.toString(16),i=i.toString(16),"#"+(t=t.length<2?"0"+t:t)+(e=e.length<2?"0"+e:e)+(i=i.length<2?"0"+i:i)};var _,u=s.MathUtil={mapValueInRange:function(t,e,i,s,n){return s+(t-e)/(i-e)*(n-s)},interpolateColor:function(e,i,s,n,r,a){n=void 0===n?0:n,r=void 0===r?1:r,i=t.hexToRGB(i),s=t.hexToRGB(s);var o=Math.floor(t.mapValueInRange(e,n,r,i.r,s.r)),l=Math.floor(t.mapValueInRange(e,n,r,i.g,s.g)),c=Math.floor(t.mapValueInRange(e,n,r,i.b,s.b));return a?"rgb("+o+","+l+","+c+")":t.rgbToHex(o,l,c)},degreesToRadians:function(t){return t*Math.PI/180},radiansToDegrees:function(t){return 180*t/Math.PI}};function p(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)}t.extend(t,u),"undefined"!=typeof window&&(_=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}),_||"undefined"==typeof process||"node"!==process.title||(_=setImmediate),t.onFrame=function(t){return _(t)},"undefined"!=typeof exports?t.extend(exports,s):"undefined"!=typeof window&&(window.rebound=s)}();var n=function(){function t(t,e){for(var i=0;i 订阅 ';var h=i(1223),d=i.n(h),_=i(1422),u=i.n(_);function p(){let t,e=document.body,i=document.querySelector(".content-wrap"),s=document.getElementById("open-button"),n=document.getElementById("close-button"),r=!1,a=function(){function t(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}let e,i,s;function n(t,n){(e(t,n)?s:i)(t,n)}return"classList"in document.documentElement?(e=function(t,e){return t.classList.contains(e)},i=function(t,e){t.classList.add(e)},s=function(t,e){t.classList.remove(e)}):(e=function(e,i){return t(i).test(e.className)},i=function(t,i){e(t,i)||(t.className=t.className+" "+i)},s=function(e,i){e.className=e.className.replace(t(i)," ")}),{hasClass:e,addClass:i,removeClass:s,toggleClass:n,has:e,add:i,remove:s,toggle:n}}(),o=document.getElementById("morph-shape"),l=d()(o.querySelector("svg")).select("path"),c=l.attr("d"),h=(o.getAttribute("data-morph-open").split(";").length,!1);function _(){$(".menu-wrap").show();let i=$("#home").css("margin-left");i=parseFloat(i.replace(/px/g,"")),r?($(e).removeClass("show-menu"),$("#content-wrap").fadeOut(300),$(e).css("overflow","auto"),$("#mainContent").off("touchmove"),l.attr("d",c),h=!1):(a.add(e,"show-menu"),$("#content-wrap").show(),$("body").css("overflow","hidden"),t.scrollTo(!1,"top")),r=!r}return s.addEventListener("click",_),n&&n.addEventListener("click",_),i.addEventListener("click",(function(t){let e=t.target;r&&e!==s&&_()})),t=new(u())(document.querySelector("#menuWrap"),{preventParentScroll:!0,forceScrollbars:!0}),{myOptiscrollInstance:t}}var m=i(2928),g=i.p+"images/5fcc0053d3e1e4c884df.png";function f(t){let e;$("#sidebar_news").prepend(l),e=p(),(()=>{let e=t.__tools.tempReplacement(c,"user",t.__status.user);$(".sidebar-footer").html(e);let i=t.__config.info.avatar?t.__config.info.avatar:m;$("#menuBlogAvatar").append("用户头像"),t.__config.animate.avatar.enable&&($("#menuBlogAvatar").css("border-radius","50%"),$("#menuBlogAvatar .img-responsive").addClass("img-rounded")),$(".sidebar-title-msg").text(t.__config.sidebar.titleMsg)})(),(()=>{let e=t.__config.sidebar.infoBackground?t.__config.sidebar.infoBackground:g;$(".container .menu-wrap").css("background-image","url('"+e+"')")})(),(()=>{let e=1e3;function i(e,i,s){e.length>0&&""===i.html()&&(i.html(function(t){let e="
    ",i=/^[1-9]+[0-9]*$/;return t.each((s=>{let n=$(t[s]),r=n.text()===n.html()?{}:$(n.html()),a=$.trim(n.text()).split(".");i.test(a[0])&&a.splice(0,1);let o=$.trim(a.join("."));r.length>0&&r.html(o),e+="
  • "+(r.length>0?r.prop("outerHTML"):''+o+"")+"
  • "})),e+="
",e}(e)),i.parent(".sidebar-dropdown").show(),t.__tools.clearIntervalTimeId(s))}t.__timeIds.introduceTId=window.setInterval((()=>{let e=$("#profile_block").html(),i=$(".sidebar-userinfo#introduce");$("#profile_block img")[0]&&(e=e.replace("
","")),"string"==typeof e&&""===i.html()&&(i.html(t.__tools.htmlFiltrationScript(e)),t.__tools.clearIntervalTimeId(t.__timeIds.introduceTId))}),e),t.__timeIds.blogStatsTId=window.setInterval((()=>{let e=$(".blogStats"),i=$("#stats_post_count"),s=$(".sidebar-stats");e.length>0&&i.length>0&&(s.html(t.__tools.htmlFiltrationScript(e.html())).show(),e.html(""),t.__tools.clearIntervalTimeId(t.__timeIds.blogStatsTId))}),e),t.__timeIds.calendarTId=window.setInterval((()=>{let e=$("#blogCalendar"),i=$("#blog-calendar"),s=$("#calendar-box");if(e.length>0&&""===s.html()){let e='
'+i.html()+"
";i.remove(),s.html(e).show(),$("#blog-calendar").css("visibility","visible"),t.__tools.clearIntervalTimeId(t.__timeIds.calendarTId)}}),e),t.__timeIds.searchTId=window.setInterval((()=>{let e=$("#sidebar_search_box"),i=$("#sb-sidebarSearchBox");e.length>0&&""===i.html()&&(i.prepend('
'),$(".sidebar-search").show(),t.__tools.clearIntervalTimeId(t.__timeIds.searchTId))}),e),t.__timeIds.scorerankTId=window.setInterval((()=>{i($("#sidebar_scorerank ul li"),$("#sb-sidebarScorerank"),t.__timeIds.scorerankTId)}),e),t.__timeIds.newEssayTId=window.setInterval((()=>{i($("#sidebar_recentposts ul li"),$("#sb-sidebarRecentposts"),t.__timeIds.newEssayTId)}),e),t.__timeIds.topTagsTId=window.setInterval((()=>{i($("#sidebar_toptags ul li"),$("#sb-toptags"),t.__timeIds.topTagsTId)}),e),t.__timeIds.classifyTId=window.setInterval((()=>{i($("#sidebar_postcategory ul li"),$("#sb-classify"),t.__timeIds.classifyTId)}),e),t.__timeIds.articleCategoryTId=window.setInterval((()=>{i($("#sidebar_articlecategory ul li"),$("#sb-ArticleCategory"),t.__timeIds.articleCategoryTId)}),e),t.__timeIds.recordTId=window.setInterval((()=>{i($("#sidebar_postarchive ul li"),$("#sb-record"),"icon-task_fill",t.__timeIds.recordTId)}),e),t.__timeIds.articleTId=window.setInterval((()=>{i($("#sidebar_articlearchive ul li"),$("#sb-articlearchive"),"icon-document_fill",t.__timeIds.articleTId)}),e),t.__timeIds.topViewTId=window.setInterval((()=>{i($("#TopViewPostsBlock ul li"),$("#sb-topview"),t.__timeIds.topViewTId)}),e),t.__timeIds.topDiggPostsTId=window.setInterval((()=>{i($("#TopDiggPostsBlock ul li"),$("#sb-topDiggPosts"),t.__timeIds.topDiggPostsTId)}),e),t.__timeIds.commentsTId=window.setInterval((()=>{let e=$("#sidebar_recentcomments ul"),i=$("#sb-recentComments");e.length>0&&""===i.html()&&(i.html((t=>{let e,i,s,n="
    ",r=/^[1-9]+[0-9]*$/;if(t.find("li").length>2){if(e=t.find("li.recent_comment_title"),i=t.find("li.recent_comment_body"),s=t.find("li.recent_comment_author"),e.length!==i.length||e.length!==s.length)return;e.each((t=>{let a=$(e[t]),o=a.text()===a.html()?{}:$(a.html()),l=$.trim(a.text()).split(".");r.test(l[0])&&l.splice(0,1);let c=$.trim(l.join("."));o.length>0&&o.html(c),n+="
  • "+(o.length>0?o.prop("outerHTML"):""+c+"")+'
    '+$(i[t]).text()+'
    '+$(s[t]).text()+"
  • "}))}return n+="
",n})(e)),i.parent(".sidebar-dropdown").show(),t.__tools.clearIntervalTimeId(t.__timeIds.commentsTId))}),e),(()=>{let e=t.__config.sidebar.navList,i="";e.length>0&&(i="
    ",$.each(e,(function(t){let s=e[t].length>2?e[t][2]:"icon-qianzishenhe";i+='
  • '+e[t][0]+"
  • "})),i+="
",$(".customize-nav").append(i).show())})(),(()=>{let e=t.__config.sidebar.customList;Object.keys(e).length>0&&($.each(e,((t,e)=>{let i='",$("#customize-sidebar-menu > ul").append(i)})),$("#customize-sidebar-menu").show(),$("#customize-sidebar-menu .sidebar-dropdown").show())})()})(),$(".sidebar-menu a.sidebar-dropdown-box").on("click",(function(){let t=$(this).parent("li.sidebar-dropdown"),i=t.find(".sidebar-submenu");i.length>0&&(t.hasClass("active")?(t.removeClass("active"),i.slideUp(300)):(t.addClass("active"),i.slideDown(300)),setTimeout((function(){e&&void 0!==e.myOptiscrollInstance&&e.myOptiscrollInstance.update()}),300))})),t.__event.resize.handle.push((()=>{setTimeout((function(){$("body").hasClass("show-menu")&&e&&void 0!==e.myOptiscrollInstance&&e.myOptiscrollInstance.update()}),300)})),(()=>{let e=t=>{t.show().parent("li.sidebar-dropdown").addClass("active")};t.__config.sidebar.submenu.pointsRank&&e($("#sb-sidebarScorerank")),t.__config.sidebar.submenu.latestPosts&&e($("#sb-sidebarRecentposts")),t.__config.sidebar.submenu.myTags&&e($("#sb-toptags")),t.__config.sidebar.submenu.postsClassify&&e($("#sb-classify")),t.__config.sidebar.submenu.articleClassify&&e($("#sb-ArticleCategory")),t.__config.sidebar.submenu.readRank&&e($("#sb-topview")),t.__config.sidebar.submenu.recommendRank&&e($("#sb-topDiggPosts")),t.__config.sidebar.submenu.postsArchive&&e($("#sb-record")),t.__config.sidebar.submenu.articleArchive&&e($("#sb-articlearchive")),t.__config.sidebar.submenu.latestComment&&e($("#sb-recentComments")),t.__config.sidebar.submenu.customList&&e($("#customize-sidebar-menu .sidebar-submenu"))})()}var v='',b=i.p+"images/e58d9f9d0eee6d9b9add.webp",y=i.p+"images/6d995b207bae4175ff28.webp";var w=i(434);i.p,i(9258);function S(t){i.e(3353).then(i.bind(i,8871)),i.e(7732).then(i.bind(i,8860));let e=function(t){return new function(){let e=this;this.config=t.__config.loading,this.spring=null,this.spinner=null,this.initRebound=()=>{let t=e.config.rebound,i=new s.SpringSystem;e.spring=i.createSpring(t.tension,t.friction)},this.initSpinner=()=>{let t=e.config.spinner;e.spinner=new o(t)},this.start=()=>{!function(t){"function"==typeof t.__config.hooks.beforeLoading&&t.__config.hooks.beforeLoading(t)}(t),$("#blog-news").prepend('
'),e.initRebound(),e.initSpinner(),e.spinner.init(e.spring,!0)},this.stop=()=>{$("body").css("overflow","auto"),e.spinner.setComplete(),$("div#loading").hide(),$('a[name="top"]').hide(),function(t){"function"==typeof t.__config.hooks.afterLoading&&t.__config.hooks.afterLoading(t)}(t)}}}(t);e.start(),setTimeout((()=>{$.each(t.__timeIds,(e=>{null!=t.__timeIds[e]&&window.clearInterval(t.__timeIds[e])}))}),3e4),(0,w.Z)(t).init(),f(t),function(t){$("#sidebar_news").prepend(v),(()=>{let e,s,n,r=$("#main-header");"home"===t.__status.pageType?e=t.__config.banner.home.background.length>0?t.__config.banner.home.background:[b]:(e=t.__config.banner.article.background.length>0?t.__config.banner.article.background:[y],n="40vh",$("#homeTopTitle").hide(),$(".scroll-down").hide(),$("#home").css("margin-top","40vh"),$("#cb_post_title_url").addClass("post-del-title")),n&&r.css("height",n),t.__config.animate.bannerImages.enable?Promise.all([i.e(1606),i.e(1761)]).then(i.bind(i,9830)).then((i=>{(0,i.default)("main-header",e,t.__config.animate.bannerImages.options.itemNum,t.__config.animate.bannerImages.options.time,t.__config.animate.bannerImages.options.sort,t.__config.animate.bannerImages.options.current<0?t.__tools.randomNum(0,e.length-1):t.__config.animate.bannerImages.options.current)})):(s=e.length>0?e.length>1?e[t.__tools.randomNum(0,e.length-1)]:e[0]:"",r.css({background:"#222 url('"+encodeURI(s)+"') center center no-repeat","background-size":"cover"}))})(),t.__config.animate.homeBannerTitle.enable&&$("#main-header h1.page-title").addClass("page-title-hover"),t.__event.scroll.handle.push((()=>{let e=$("#open-button");t.__event.scroll.temScroll=t.__event.scroll.docScroll&&e.hasClass("menu-button-scroll")&&(e.removeClass("menu-button-scroll"),e.text("MENU"))}))}(t),""!==t.__config.fontIconExtend&&t.__tools.dynamicLoadingCss(t.__config.fontIconExtend),e.stop()}},9258:function(){(function(k){for(var d,f,l=document.getElementsByTagName("head")[0].style,h=["transformProperty","WebkitTransform","OTransform","msTransform","MozTransform"],g=0;gthis._parameters.duration;if(e&&!this._parameters.animatedGif)clearTimeout(this._timer);else{(this._canvas||this._vimage||this._img)&&(t=this._parameters.easing(0,t-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration),this._rotate(~~(10*t)/10)),this._parameters.step&&this._parameters.step(this._angle);var i=this;this._timer=setTimeout((function(){i._animate.call(i)}),10)}this._parameters.callback&&e&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:(a=Math.PI/180,IE?function(t){this._angle=t,this._container.style.rotation=t%360+"deg",this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px",this._vimage.style.left=-(this._rotationCenterX-this._imgWidth/2)+"px",this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px",this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:d?function(t){this._angle=t,this._img.style[d]="rotate("+t%360+"deg)",this._img.style[f]=this._parameters.center.join(" ")}:function(t){this._angle=t,t=t%360*a,this._canvas.width=this._width,this._canvas.height=this._height,this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH),this._cnv.translate(this._rotationCenterX,this._rotationCenterY),this._cnv.rotate(t),this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY),this._cnv.scale(this._aspectW,this._aspectH),this._cnv.drawImage(this._img,0,0)})},IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())})(jQuery)},2928:function(t,e,i){"use strict";t.exports=i.p+"images/53abc64338825f4038d6.webp"}}]); \ No newline at end of file +(self.webpackChunkCnblogs_Theme_SimpleMemory=self.webpackChunkCnblogs_Theme_SimpleMemory||[]).push([[3304],{7157:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s={};!function(){var t=s.util={},e=Array.prototype.concat,i=Array.prototype.slice;t.bind=function(t,s){var n=i.call(arguments,2);return function(){t.apply(s,e.call(n,i.call(arguments)))}},t.extend=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};var n=s.SpringSystem=function(t){this._springRegistry={},this._activeSprings=[],this.listeners=[],this._idleSpringIndices=[],this.looper=t||new l,this.looper.springSystem=this};t.extend(n.prototype,{_springRegistry:null,_isIdle:!0,_lastTimeMillis:-1,_activeSprings:null,listeners:null,_idleSpringIndices:null,setLooper:function(t){this.looper=t,t.springSystem=this},createSpring:function(t,e){var i;return i=void 0===t||void 0===e?o.DEFAULT_ORIGAMI_SPRING_CONFIG:o.fromOrigamiTensionAndFriction(t,e),this.createSpringWithConfig(i)},createSpringWithBouncinessAndSpeed:function(t,e){var i;return i=void 0===t||void 0===e?o.DEFAULT_ORIGAMI_SPRING_CONFIG:o.fromBouncinessAndSpeed(t,e),this.createSpringWithConfig(i)},createSpringWithConfig:function(t){var e=new r(this);return this.registerSpring(e),e.setSpringConfig(t),e},getIsIdle:function(){return this._isIdle},getSpringById:function(t){return this._springRegistry[t]},getAllSprings:function(){var t=[];for(var e in this._springRegistry)this._springRegistry.hasOwnProperty(e)&&t.push(this._springRegistry[e]);return t},registerSpring:function(t){this._springRegistry[t.getId()]=t},deregisterSpring:function(t){p(this._activeSprings,t),delete this._springRegistry[t.getId()]},advance:function(t,e){for(;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(var i=0,s=this._activeSprings.length;i0;){var r=this._idleSpringIndices.pop();r>=0&&this._activeSprings.splice(r,1)}},loop:function(t){var e;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var i=t-this._lastTimeMillis;this._lastTimeMillis=t;var s=0,n=this.listeners.length;for(s=0;s0&&(te||t>e&&this.getCurrentValue()r.MAX_DELTA_TIME_SEC&&(s=r.MAX_DELTA_TIME_SEC),this._timeAccumulator+=s;for(var n,a,o,l,c,h,d,_,u=this._springConfig.tension,p=this._springConfig.friction,m=this._currentState.position,g=this._currentState.velocity,f=this._tempState.position,v=this._tempState.velocity;this._timeAccumulator>=r.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=r.SOLVER_TIMESTEP_SEC,this._timeAccumulator0&&this._interpolate(this._timeAccumulator/r.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),i=!0);var b=!1;this._wasAtRest&&(this._wasAtRest=!1,b=!0);var y=!1;i&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(b,y)}},notifyPositionUpdated:function(t,e){for(var i=0,s=this.listeners.length;i18&&t<=44?this.b3Friction2(t):this.b3Friction3(t)}}),t.extend(o,{fromOrigamiTensionAndFriction:function(t,e){return new o(c.tensionFromOrigamiValue(t),c.frictionFromOrigamiValue(e))},fromBouncinessAndSpeed:function(t,e){var i=new s.BouncyConversion(t,e);return this.fromOrigamiTensionAndFriction(i.bouncyTension,i.bouncyFriction)},coastingConfigWithOrigamiFriction:function(t){return new o(0,c.frictionFromOrigamiValue(t))}}),o.DEFAULT_ORIGAMI_SPRING_CONFIG=o.fromOrigamiTensionAndFriction(40,7),t.extend(o.prototype,{friction:0,tension:0});var d={};t.hexToRGB=function(t){if(d[t])return d[t];3===(t=t.replace("#","")).length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=t.match(/.{2}/g),i={r:parseInt(e[0],16),g:parseInt(e[1],16),b:parseInt(e[2],16)};return d[t]=i,i},t.rgbToHex=function(t,e,i){return t=t.toString(16),e=e.toString(16),i=i.toString(16),"#"+(t=t.length<2?"0"+t:t)+(e=e.length<2?"0"+e:e)+(i=i.length<2?"0"+i:i)};var _,u=s.MathUtil={mapValueInRange:function(t,e,i,s,n){return s+(t-e)/(i-e)*(n-s)},interpolateColor:function(e,i,s,n,r,a){n=void 0===n?0:n,r=void 0===r?1:r,i=t.hexToRGB(i),s=t.hexToRGB(s);var o=Math.floor(t.mapValueInRange(e,n,r,i.r,s.r)),l=Math.floor(t.mapValueInRange(e,n,r,i.g,s.g)),c=Math.floor(t.mapValueInRange(e,n,r,i.b,s.b));return a?"rgb("+o+","+l+","+c+")":t.rgbToHex(o,l,c)},degreesToRadians:function(t){return t*Math.PI/180},radiansToDegrees:function(t){return 180*t/Math.PI}};function p(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)}t.extend(t,u),"undefined"!=typeof window&&(_=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}),_||"undefined"==typeof process||"node"!==process.title||(_=setImmediate),t.onFrame=function(t){return _(t)},"undefined"!=typeof exports?t.extend(exports,s):"undefined"!=typeof window&&(window.rebound=s)}();var n=function(){function t(t,e){for(var i=0;i 订阅 ';var h=i(1223),d=i.n(h),_=i(1422),u=i.n(_);function p(){let t,e=document.body,i=document.querySelector(".content-wrap"),s=document.getElementById("open-button"),n=document.getElementById("close-button"),r=!1,a=function(){function t(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}let e,i,s;function n(t,n){(e(t,n)?s:i)(t,n)}return"classList"in document.documentElement?(e=function(t,e){return t.classList.contains(e)},i=function(t,e){t.classList.add(e)},s=function(t,e){t.classList.remove(e)}):(e=function(e,i){return t(i).test(e.className)},i=function(t,i){e(t,i)||(t.className=t.className+" "+i)},s=function(e,i){e.className=e.className.replace(t(i)," ")}),{hasClass:e,addClass:i,removeClass:s,toggleClass:n,has:e,add:i,remove:s,toggle:n}}(),o=document.getElementById("morph-shape"),l=d()(o.querySelector("svg")).select("path"),c=l.attr("d"),h=(o.getAttribute("data-morph-open").split(";").length,!1);function _(){$(".menu-wrap").show();let i=$("#home").css("margin-left");i=parseFloat(i.replace(/px/g,"")),r?($(e).removeClass("show-menu"),$("#content-wrap").fadeOut(300),$(e).css("overflow","auto"),$("#mainContent").off("touchmove"),l.attr("d",c),h=!1):(a.add(e,"show-menu"),$("#content-wrap").show(),$("body").css("overflow","hidden"),t.scrollTo(!1,"top")),r=!r}return s.addEventListener("click",_),n&&n.addEventListener("click",_),i.addEventListener("click",(function(t){let e=t.target;r&&e!==s&&_()})),t=new(u())(document.querySelector("#menuWrap"),{preventParentScroll:!0,forceScrollbars:!0}),{myOptiscrollInstance:t}}var m=i(2928),g=i.p+"images/5fcc0053d3e1e4c884df.png";function f(t){let e;$("#sidebar_news").prepend(l),e=p(),(()=>{let e=t.__tools.tempReplacement(c,"user",t.__status.user);$(".sidebar-footer").html(e);let i=t.__config.info.avatar?t.__config.info.avatar:m;$("#menuBlogAvatar").append("用户头像"),t.__config.animate.avatar.enable&&($("#menuBlogAvatar").css("border-radius","50%"),$("#menuBlogAvatar .img-responsive").addClass("img-rounded")),$(".sidebar-title-msg").text(t.__config.sidebar.titleMsg)})(),(()=>{let e=t.__config.sidebar.infoBackground?t.__config.sidebar.infoBackground:g;$(".container .menu-wrap").css("background-image","url('"+e+"')")})(),(()=>{let e=1e3;function i(e,i,s){e.length>0&&""===i.html()&&(i.html(function(t){let e="
    ",i=/^[1-9]+[0-9]*$/;return t.each((s=>{let n=$(t[s]),r=n.text()===n.html()?{}:$(n.html()),a=$.trim(n.text()).split(".");i.test(a[0])&&a.splice(0,1);let o=$.trim(a.join("."));r.length>0&&r.html(o),e+="
  • "+(r.length>0?r.prop("outerHTML"):''+o+"")+"
  • "})),e+="
",e}(e)),i.parent(".sidebar-dropdown").show(),t.__tools.clearIntervalTimeId(s))}t.__timeIds.introduceTId=window.setInterval((()=>{let e=$("#profile_block").html(),i=$(".sidebar-userinfo#introduce");$("#profile_block img")[0]&&(e=e.replace("
","")),"string"==typeof e&&""===i.html()&&(i.html(t.__tools.htmlFiltrationScript(e)),t.__tools.clearIntervalTimeId(t.__timeIds.introduceTId))}),e),t.__timeIds.blogStatsTId=window.setInterval((()=>{let e=$(".blogStats"),i=$("#stats_post_count"),s=$(".sidebar-stats");e.length>0&&i.length>0&&(s.html(t.__tools.htmlFiltrationScript(e.html())).show(),e.html(""),t.__tools.clearIntervalTimeId(t.__timeIds.blogStatsTId))}),e),t.__timeIds.calendarTId=window.setInterval((()=>{let e=$("#blogCalendar"),i=$("#blog-calendar"),s=$("#calendar-box");if(e.length>0&&""===s.html()){let e='
'+i.html()+"
";i.remove(),s.html(e).show(),$("#blog-calendar").css("visibility","visible"),t.__tools.clearIntervalTimeId(t.__timeIds.calendarTId)}}),e),t.__timeIds.searchTId=window.setInterval((()=>{let e=$("#sidebar_search_box"),i=$("#sb-sidebarSearchBox");e.length>0&&""===i.html()&&(i.prepend('
'),$(".sidebar-search").show(),t.__tools.clearIntervalTimeId(t.__timeIds.searchTId))}),e),t.__timeIds.scorerankTId=window.setInterval((()=>{i($("#sidebar_scorerank ul li"),$("#sb-sidebarScorerank"),t.__timeIds.scorerankTId)}),e),t.__timeIds.newEssayTId=window.setInterval((()=>{i($("#sidebar_recentposts ul li"),$("#sb-sidebarRecentposts"),t.__timeIds.newEssayTId)}),e),t.__timeIds.topTagsTId=window.setInterval((()=>{i($("#sidebar_toptags ul li"),$("#sb-toptags"),t.__timeIds.topTagsTId)}),e),t.__timeIds.classifyTId=window.setInterval((()=>{i($("#sidebar_postcategory ul li"),$("#sb-classify"),t.__timeIds.classifyTId)}),e),t.__timeIds.articleCategoryTId=window.setInterval((()=>{i($("#sidebar_articlecategory ul li"),$("#sb-ArticleCategory"),t.__timeIds.articleCategoryTId)}),e),t.__timeIds.recordTId=window.setInterval((()=>{i($("#sidebar_postarchive ul li"),$("#sb-record"),"icon-task_fill",t.__timeIds.recordTId)}),e),t.__timeIds.articleTId=window.setInterval((()=>{i($("#sidebar_articlearchive ul li"),$("#sb-articlearchive"),"icon-document_fill",t.__timeIds.articleTId)}),e),t.__timeIds.topViewTId=window.setInterval((()=>{i($("#TopViewPostsBlock ul li"),$("#sb-topview"),t.__timeIds.topViewTId)}),e),t.__timeIds.topDiggPostsTId=window.setInterval((()=>{i($("#TopDiggPostsBlock ul li"),$("#sb-topDiggPosts"),t.__timeIds.topDiggPostsTId)}),e),t.__timeIds.commentsTId=window.setInterval((()=>{let e=$("#sidebar_recentcomments ul"),i=$("#sb-recentComments");e.length>0&&""===i.html()&&(i.html((t=>{let e,i,s,n="
    ",r=/^[1-9]+[0-9]*$/;if(t.find("li").length>2){if(e=t.find("li.recent_comment_title"),i=t.find("li.recent_comment_body"),s=t.find("li.recent_comment_author"),e.length!==i.length||e.length!==s.length)return;e.each((t=>{let a=$(e[t]),o=a.text()===a.html()?{}:$(a.html()),l=$.trim(a.text()).split(".");r.test(l[0])&&l.splice(0,1);let c=$.trim(l.join("."));o.length>0&&o.html(c),n+="
  • "+(o.length>0?o.prop("outerHTML"):""+c+"")+'
    '+$(i[t]).text()+'
    '+$(s[t]).text()+"
  • "}))}return n+="
",n})(e)),i.parent(".sidebar-dropdown").show(),t.__tools.clearIntervalTimeId(t.__timeIds.commentsTId))}),e),(()=>{let e=t.__config.sidebar.navList,i="";e.length>0&&(i="
    ",$.each(e,(function(t){let s=e[t].length>2?e[t][2]:"icon-qianzishenhe";i+='
  • '+e[t][0]+"
  • "})),i+="
",$(".customize-nav").append(i).show())})(),(()=>{let e=t.__config.sidebar.customList;Object.keys(e).length>0&&($.each(e,((t,e)=>{let i='",$("#customize-sidebar-menu > ul").append(i)})),$("#customize-sidebar-menu").show(),$("#customize-sidebar-menu .sidebar-dropdown").show())})()})(),$(".sidebar-menu a.sidebar-dropdown-box").on("click",(function(){let t=$(this).parent("li.sidebar-dropdown"),i=t.find(".sidebar-submenu");i.length>0&&(t.hasClass("active")?(t.removeClass("active"),i.slideUp(300)):(t.addClass("active"),i.slideDown(300)),setTimeout((function(){e&&void 0!==e.myOptiscrollInstance&&e.myOptiscrollInstance.update()}),300))})),t.__event.resize.handle.push((()=>{setTimeout((function(){$("body").hasClass("show-menu")&&e&&void 0!==e.myOptiscrollInstance&&e.myOptiscrollInstance.update()}),300)})),(()=>{let e=t=>{t.show().parent("li.sidebar-dropdown").addClass("active")};t.__config.sidebar.submenu.pointsRank&&e($("#sb-sidebarScorerank")),t.__config.sidebar.submenu.latestPosts&&e($("#sb-sidebarRecentposts")),t.__config.sidebar.submenu.myTags&&e($("#sb-toptags")),t.__config.sidebar.submenu.postsClassify&&e($("#sb-classify")),t.__config.sidebar.submenu.articleClassify&&e($("#sb-ArticleCategory")),t.__config.sidebar.submenu.readRank&&e($("#sb-topview")),t.__config.sidebar.submenu.recommendRank&&e($("#sb-topDiggPosts")),t.__config.sidebar.submenu.postsArchive&&e($("#sb-record")),t.__config.sidebar.submenu.articleArchive&&e($("#sb-articlearchive")),t.__config.sidebar.submenu.latestComment&&e($("#sb-recentComments")),t.__config.sidebar.submenu.customList&&e($("#customize-sidebar-menu .sidebar-submenu"))})()}var v='',b=i.p+"images/e58d9f9d0eee6d9b9add.webp",y=i.p+"images/6d995b207bae4175ff28.webp";var w=i(434);i.p,i(9258);function S(t){i.e(3353).then(i.bind(i,8871)),i.e(7732).then(i.bind(i,8860));const e=t.__tools.getFormattedDate();("12-13"==e||t.__config.memorialDays.includes(e))&&$("html").css("filter","grayscale(100%)");let n=function(t){return new function(){let e=this;this.config=t.__config.loading,this.spring=null,this.spinner=null,this.initRebound=()=>{let t=e.config.rebound,i=new s.SpringSystem;e.spring=i.createSpring(t.tension,t.friction)},this.initSpinner=()=>{let t=e.config.spinner;e.spinner=new o(t)},this.start=()=>{!function(t){"function"==typeof t.__config.hooks.beforeLoading&&t.__config.hooks.beforeLoading(t)}(t),$("#blog-news").prepend('
'),e.initRebound(),e.initSpinner(),e.spinner.init(e.spring,!0)},this.stop=()=>{$("body").css("overflow","auto"),e.spinner.setComplete(),$("div#loading").hide(),$('a[name="top"]').hide(),function(t){"function"==typeof t.__config.hooks.afterLoading&&t.__config.hooks.afterLoading(t)}(t)}}}(t);n.start(),setTimeout((()=>{$.each(t.__timeIds,(e=>{null!=t.__timeIds[e]&&window.clearInterval(t.__timeIds[e])}))}),3e4),(0,w.Z)(t).init(),f(t),function(t){$("#sidebar_news").prepend(v),(()=>{let e,s,n,r=$("#main-header");"home"===t.__status.pageType?e=t.__config.banner.home.background.length>0?t.__config.banner.home.background:[b]:(e=t.__config.banner.article.background.length>0?t.__config.banner.article.background:[y],n="40vh",$("#homeTopTitle").hide(),$(".scroll-down").hide(),$("#home").css("margin-top","40vh"),$("#cb_post_title_url").addClass("post-del-title")),n&&r.css("height",n),t.__config.animate.bannerImages.enable?Promise.all([i.e(1606),i.e(1761)]).then(i.bind(i,9830)).then((i=>{(0,i.default)("main-header",e,t.__config.animate.bannerImages.options.itemNum,t.__config.animate.bannerImages.options.time,t.__config.animate.bannerImages.options.sort,t.__config.animate.bannerImages.options.current<0?t.__tools.randomNum(0,e.length-1):t.__config.animate.bannerImages.options.current)})):(s=e.length>0?e.length>1?e[t.__tools.randomNum(0,e.length-1)]:e[0]:"",r.css({background:"#222 url('"+encodeURI(s)+"') center center no-repeat","background-size":"cover"}))})(),t.__config.animate.homeBannerTitle.enable&&$("#main-header h1.page-title").addClass("page-title-hover"),t.__event.scroll.handle.push((()=>{let e=$("#open-button");t.__event.scroll.temScroll=t.__event.scroll.docScroll&&e.hasClass("menu-button-scroll")&&(e.removeClass("menu-button-scroll"),e.text("MENU"))}))}(t),""!==t.__config.fontIconExtend&&t.__tools.dynamicLoadingCss(t.__config.fontIconExtend),n.stop()}},9258:function(){(function(k){for(var d,f,l=document.getElementsByTagName("head")[0].style,h=["transformProperty","WebkitTransform","OTransform","msTransform","MozTransform"],g=0;gthis._parameters.duration;if(e&&!this._parameters.animatedGif)clearTimeout(this._timer);else{(this._canvas||this._vimage||this._img)&&(t=this._parameters.easing(0,t-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration),this._rotate(~~(10*t)/10)),this._parameters.step&&this._parameters.step(this._angle);var i=this;this._timer=setTimeout((function(){i._animate.call(i)}),10)}this._parameters.callback&&e&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:(a=Math.PI/180,IE?function(t){this._angle=t,this._container.style.rotation=t%360+"deg",this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px",this._vimage.style.left=-(this._rotationCenterX-this._imgWidth/2)+"px",this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px",this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:d?function(t){this._angle=t,this._img.style[d]="rotate("+t%360+"deg)",this._img.style[f]=this._parameters.center.join(" ")}:function(t){this._angle=t,t=t%360*a,this._canvas.width=this._width,this._canvas.height=this._height,this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH),this._cnv.translate(this._rotationCenterX,this._rotationCenterY),this._cnv.rotate(t),this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY),this._cnv.scale(this._aspectW,this._aspectH),this._cnv.drawImage(this._img,0,0)})},IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())})(jQuery)},2928:function(t,e,i){"use strict";t.exports=i.p+"images/53abc64338825f4038d6.webp"}}]); \ No newline at end of file diff --git a/dist/script/comBefore.f9966144.js.gz b/dist/script/comBefore.f9966144.js.gz new file mode 100644 index 00000000..fd5db7b4 Binary files /dev/null and b/dist/script/comBefore.f9966144.js.gz differ diff --git a/dist/simpleMemory.t6xjty8m.js b/dist/simpleMemory.5dtdzzsp.js similarity index 85% rename from dist/simpleMemory.t6xjty8m.js rename to dist/simpleMemory.5dtdzzsp.js index 2d9f59c4..c0898fb7 100644 --- a/dist/simpleMemory.t6xjty8m.js +++ b/dist/simpleMemory.5dtdzzsp.js @@ -1 +1 @@ -!function(){var e,s,a,t,o,l,n={434:function(e,s,a){"use strict";function t(e){let s={init:()=>{e.__event.scroll={},e.__event.scroll.handle=[],e.__event.scroll.temScroll=0,e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,s.handle.scroll(),e.__event.scroll.temScroll=e.__event.scroll.docScroll})),e.__event.resize={},e.__event.resize.handle=[],$(window).resize((()=>{s.handle.resize()}))},handle:{scroll:()=>{for(let s=0;s{for(let s=0;s-1&&!e;)e=a[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),o=function(e){return new Promise((function(s,a){var t=i.miniCssF(e),o=i.p+t;if(function(e,s){for(var a=document.getElementsByTagName("link"),t=0;t{let t=new RegExp("##"+s+"##","g");return e.replace(t,a)},batchTempReplacement:(e,s)=>{let a=e;return $.each(s,(function(e){let t=s[e];a=a.replaceAll(`##${t[0]}##`,t[1])})),a},dynamicLoadingCss:e=>{if(!e||0===e.length)throw new Error('argument "path" is required !');let s=document.getElementsByTagName("head")[0],a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",s.appendChild(a)},dynamicLoadingJs:e=>new Promise(((s,a)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){s(e)},error:function(e){a(e)}})})),htmlFiltrationScript:e=>{let s=new RegExp("","ig");return e.replace(s,"")},clearIntervalTimeId:e=>{null!=e&&window.clearInterval(e)},actScroll:(e,s)=>{$("html,body").stop().animate({scrollTop:e},s)},getScrollPercent:()=>($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0),randomNum:function(e,s){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(s-e+1)+e);default:return 0}},setDomHomePosition:()=>{$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getNowFormatDate:()=>{let e=new Date,s=e.getFullYear(),a=e.getMonth()+1,t=e.getDate();return a>=1&&a<=9&&(a="0"+a),t>=0&&t<=9&&(t="0"+t),s+"-"+a+"-"+t},getRunDate:e=>{e=e.toString().split("-");let s=new Date;s.setUTCFullYear(e[0],e[1]-1,e[2]),s.setUTCHours(0,0,0,0);let a=s,t=(new Date).getTime()-a.getTime(),o=t/1e3,l=(Math.floor(o),t/864e5),n=Math.floor(l),r=-24*(n-l),i=Math.floor(r),c=-60*(i-r),h=Math.floor(-60*(i-r));return{daysold:n,hrsold:i,minsold:h,seconds:Math.floor(-60*(h-c)).toString()}},setCookie:(e,s,a)=>{let t=new Date;t.setTime(t.getTime()+1e3*a),document.cookie=e+"="+escape(s)+"; expires="+t.toGMTString()+"; path=/"},getCookie:e=>{let s,a=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return s=document.cookie.match(a),s?unescape(s[2]):null},randomString:e=>{e=e||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="";for(let t=0;t{let s=parseInt(e),a=parseInt(60*(e-s));return a=1===(""+a).length?"0"+a:a,`${s}:${a}`},htmlReplace:(e,s,a)=>{$(e).html($(e).html().replace(s,a))},articleInfo:(e,s)=>{let a=1===s?"simple-memory-icon-marketing_fill":"simple-memory-icon-label-fill",t=1===s?"article-tag-class-color":"article-tag-color";$.each(e,(s=>{let o=$(e[s]);o.prepend(``),$("#articleInfo").append(``)}))}},o.__timeIds={},o.__event={},""===o.__config.info.name&&(o.__config.info.name=o.__status.user),i(6063)(`./${o.__status.pageType}`).then((e=>{const s=e.default;Promise.all([i.e(9509),i.e(3304)]).then(i.bind(i,7157)).then((e=>{(0,e.default)(o),s(o),i.e(3258).then(i.bind(i,9450)).then((e=>{(0,e.default)(o),o.__tools.setDomHomePosition(),(0,t.Z)(o).handle.scroll(),(0,t.Z)(o).handle.resize()}))}))}))}))}()}(); \ No newline at end of file +!function(){var e,s,a,t,o,l,n={434:function(e,s,a){"use strict";function t(e){let s={init:()=>{e.__event.scroll={},e.__event.scroll.handle=[],e.__event.scroll.temScroll=0,e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,s.handle.scroll(),e.__event.scroll.temScroll=e.__event.scroll.docScroll})),e.__event.resize={},e.__event.resize.handle=[],$(window).resize((()=>{s.handle.resize()}))},handle:{scroll:()=>{for(let s=0;s{for(let s=0;s-1&&!e;)e=a[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),o=function(e){return new Promise((function(s,a){var t=i.miniCssF(e),o=i.p+t;if(function(e,s){for(var a=document.getElementsByTagName("link"),t=0;t{let t=new RegExp("##"+s+"##","g");return e.replace(t,a)},batchTempReplacement:(e,s)=>{let a=e;return $.each(s,(function(e){let t=s[e];a=a.replaceAll(`##${t[0]}##`,t[1])})),a},dynamicLoadingCss:e=>{if(!e||0===e.length)throw new Error('argument "path" is required !');let s=document.getElementsByTagName("head")[0],a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",s.appendChild(a)},dynamicLoadingJs:e=>new Promise(((s,a)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){s(e)},error:function(e){a(e)}})})),htmlFiltrationScript:e=>{let s=new RegExp("","ig");return e.replace(s,"")},clearIntervalTimeId:e=>{null!=e&&window.clearInterval(e)},actScroll:(e,s)=>{$("html,body").stop().animate({scrollTop:e},s)},getScrollPercent:()=>($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0),randomNum:function(e,s){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(s-e+1)+e);default:return 0}},setDomHomePosition:()=>{$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getNowFormatDate:()=>{let e=new Date,s=e.getFullYear(),a=e.getMonth()+1,t=e.getDate();return a>=1&&a<=9&&(a="0"+a),t>=0&&t<=9&&(t="0"+t),s+"-"+a+"-"+t},getRunDate:e=>{e=e.toString().split("-");let s=new Date;s.setUTCFullYear(e[0],e[1]-1,e[2]),s.setUTCHours(0,0,0,0);let a=s,t=(new Date).getTime()-a.getTime(),o=t/1e3,l=(Math.floor(o),t/864e5),n=Math.floor(l),r=-24*(n-l),i=Math.floor(r),c=-60*(i-r),h=Math.floor(-60*(i-r));return{daysold:n,hrsold:i,minsold:h,seconds:Math.floor(-60*(h-c)).toString()}},setCookie:(e,s,a)=>{let t=new Date;t.setTime(t.getTime()+1e3*a),document.cookie=e+"="+escape(s)+"; expires="+t.toGMTString()+"; path=/"},getCookie:e=>{let s,a=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return s=document.cookie.match(a),s?unescape(s[2]):null},randomString:e=>{e=e||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="";for(let t=0;t{let s=parseInt(e),a=parseInt(60*(e-s));return a=1===(""+a).length?"0"+a:a,`${s}:${a}`},htmlReplace:(e,s,a)=>{$(e).html($(e).html().replace(s,a))},articleInfo:(e,s)=>{let a=1===s?"simple-memory-icon-marketing_fill":"simple-memory-icon-label-fill",t=1===s?"article-tag-class-color":"article-tag-color";$.each(e,(s=>{let o=$(e[s]);o.prepend(``),$("#articleInfo").append(``)}))},getFormattedDate:()=>{const e=new Date,s=e.getMonth()+1,a=e.getDate();return("0"+s).slice(-2)+"-"+("0"+a).slice(-2)}},o.__timeIds={},o.__event={},""===o.__config.info.name&&(o.__config.info.name=o.__status.user),i(6063)(`./${o.__status.pageType}`).then((e=>{const s=e.default;Promise.all([i.e(9509),i.e(3304)]).then(i.bind(i,7157)).then((e=>{(0,e.default)(o),s(o),i.e(3258).then(i.bind(i,9450)).then((e=>{(0,e.default)(o),o.__tools.setDomHomePosition(),(0,t.Z)(o).handle.scroll(),(0,t.Z)(o).handle.resize()}))}))}))}))}()}(); \ No newline at end of file diff --git a/dist/simpleMemory.js b/dist/simpleMemory.js index 2d9f59c4..c0898fb7 100644 --- a/dist/simpleMemory.js +++ b/dist/simpleMemory.js @@ -1 +1 @@ -!function(){var e,s,a,t,o,l,n={434:function(e,s,a){"use strict";function t(e){let s={init:()=>{e.__event.scroll={},e.__event.scroll.handle=[],e.__event.scroll.temScroll=0,e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,s.handle.scroll(),e.__event.scroll.temScroll=e.__event.scroll.docScroll})),e.__event.resize={},e.__event.resize.handle=[],$(window).resize((()=>{s.handle.resize()}))},handle:{scroll:()=>{for(let s=0;s{for(let s=0;s-1&&!e;)e=a[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),o=function(e){return new Promise((function(s,a){var t=i.miniCssF(e),o=i.p+t;if(function(e,s){for(var a=document.getElementsByTagName("link"),t=0;t{let t=new RegExp("##"+s+"##","g");return e.replace(t,a)},batchTempReplacement:(e,s)=>{let a=e;return $.each(s,(function(e){let t=s[e];a=a.replaceAll(`##${t[0]}##`,t[1])})),a},dynamicLoadingCss:e=>{if(!e||0===e.length)throw new Error('argument "path" is required !');let s=document.getElementsByTagName("head")[0],a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",s.appendChild(a)},dynamicLoadingJs:e=>new Promise(((s,a)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){s(e)},error:function(e){a(e)}})})),htmlFiltrationScript:e=>{let s=new RegExp("","ig");return e.replace(s,"")},clearIntervalTimeId:e=>{null!=e&&window.clearInterval(e)},actScroll:(e,s)=>{$("html,body").stop().animate({scrollTop:e},s)},getScrollPercent:()=>($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0),randomNum:function(e,s){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(s-e+1)+e);default:return 0}},setDomHomePosition:()=>{$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getNowFormatDate:()=>{let e=new Date,s=e.getFullYear(),a=e.getMonth()+1,t=e.getDate();return a>=1&&a<=9&&(a="0"+a),t>=0&&t<=9&&(t="0"+t),s+"-"+a+"-"+t},getRunDate:e=>{e=e.toString().split("-");let s=new Date;s.setUTCFullYear(e[0],e[1]-1,e[2]),s.setUTCHours(0,0,0,0);let a=s,t=(new Date).getTime()-a.getTime(),o=t/1e3,l=(Math.floor(o),t/864e5),n=Math.floor(l),r=-24*(n-l),i=Math.floor(r),c=-60*(i-r),h=Math.floor(-60*(i-r));return{daysold:n,hrsold:i,minsold:h,seconds:Math.floor(-60*(h-c)).toString()}},setCookie:(e,s,a)=>{let t=new Date;t.setTime(t.getTime()+1e3*a),document.cookie=e+"="+escape(s)+"; expires="+t.toGMTString()+"; path=/"},getCookie:e=>{let s,a=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return s=document.cookie.match(a),s?unescape(s[2]):null},randomString:e=>{e=e||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="";for(let t=0;t{let s=parseInt(e),a=parseInt(60*(e-s));return a=1===(""+a).length?"0"+a:a,`${s}:${a}`},htmlReplace:(e,s,a)=>{$(e).html($(e).html().replace(s,a))},articleInfo:(e,s)=>{let a=1===s?"simple-memory-icon-marketing_fill":"simple-memory-icon-label-fill",t=1===s?"article-tag-class-color":"article-tag-color";$.each(e,(s=>{let o=$(e[s]);o.prepend(``),$("#articleInfo").append(``)}))}},o.__timeIds={},o.__event={},""===o.__config.info.name&&(o.__config.info.name=o.__status.user),i(6063)(`./${o.__status.pageType}`).then((e=>{const s=e.default;Promise.all([i.e(9509),i.e(3304)]).then(i.bind(i,7157)).then((e=>{(0,e.default)(o),s(o),i.e(3258).then(i.bind(i,9450)).then((e=>{(0,e.default)(o),o.__tools.setDomHomePosition(),(0,t.Z)(o).handle.scroll(),(0,t.Z)(o).handle.resize()}))}))}))}))}()}(); \ No newline at end of file +!function(){var e,s,a,t,o,l,n={434:function(e,s,a){"use strict";function t(e){let s={init:()=>{e.__event.scroll={},e.__event.scroll.handle=[],e.__event.scroll.temScroll=0,e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{e.__event.scroll.docScroll=$(document).scrollTop(),e.__event.scroll.homeScroll=$("#home").offset().top-40,s.handle.scroll(),e.__event.scroll.temScroll=e.__event.scroll.docScroll})),e.__event.resize={},e.__event.resize.handle=[],$(window).resize((()=>{s.handle.resize()}))},handle:{scroll:()=>{for(let s=0;s{for(let s=0;s-1&&!e;)e=a[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),o=function(e){return new Promise((function(s,a){var t=i.miniCssF(e),o=i.p+t;if(function(e,s){for(var a=document.getElementsByTagName("link"),t=0;t{let t=new RegExp("##"+s+"##","g");return e.replace(t,a)},batchTempReplacement:(e,s)=>{let a=e;return $.each(s,(function(e){let t=s[e];a=a.replaceAll(`##${t[0]}##`,t[1])})),a},dynamicLoadingCss:e=>{if(!e||0===e.length)throw new Error('argument "path" is required !');let s=document.getElementsByTagName("head")[0],a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",s.appendChild(a)},dynamicLoadingJs:e=>new Promise(((s,a)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){s(e)},error:function(e){a(e)}})})),htmlFiltrationScript:e=>{let s=new RegExp("","ig");return e.replace(s,"")},clearIntervalTimeId:e=>{null!=e&&window.clearInterval(e)},actScroll:(e,s)=>{$("html,body").stop().animate({scrollTop:e},s)},getScrollPercent:()=>($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0),randomNum:function(e,s){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(s-e+1)+e);default:return 0}},setDomHomePosition:()=>{$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getNowFormatDate:()=>{let e=new Date,s=e.getFullYear(),a=e.getMonth()+1,t=e.getDate();return a>=1&&a<=9&&(a="0"+a),t>=0&&t<=9&&(t="0"+t),s+"-"+a+"-"+t},getRunDate:e=>{e=e.toString().split("-");let s=new Date;s.setUTCFullYear(e[0],e[1]-1,e[2]),s.setUTCHours(0,0,0,0);let a=s,t=(new Date).getTime()-a.getTime(),o=t/1e3,l=(Math.floor(o),t/864e5),n=Math.floor(l),r=-24*(n-l),i=Math.floor(r),c=-60*(i-r),h=Math.floor(-60*(i-r));return{daysold:n,hrsold:i,minsold:h,seconds:Math.floor(-60*(h-c)).toString()}},setCookie:(e,s,a)=>{let t=new Date;t.setTime(t.getTime()+1e3*a),document.cookie=e+"="+escape(s)+"; expires="+t.toGMTString()+"; path=/"},getCookie:e=>{let s,a=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return s=document.cookie.match(a),s?unescape(s[2]):null},randomString:e=>{e=e||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="";for(let t=0;t{let s=parseInt(e),a=parseInt(60*(e-s));return a=1===(""+a).length?"0"+a:a,`${s}:${a}`},htmlReplace:(e,s,a)=>{$(e).html($(e).html().replace(s,a))},articleInfo:(e,s)=>{let a=1===s?"simple-memory-icon-marketing_fill":"simple-memory-icon-label-fill",t=1===s?"article-tag-class-color":"article-tag-color";$.each(e,(s=>{let o=$(e[s]);o.prepend(``),$("#articleInfo").append(``)}))},getFormattedDate:()=>{const e=new Date,s=e.getMonth()+1,a=e.getDate();return("0"+s).slice(-2)+"-"+("0"+a).slice(-2)}},o.__timeIds={},o.__event={},""===o.__config.info.name&&(o.__config.info.name=o.__status.user),i(6063)(`./${o.__status.pageType}`).then((e=>{const s=e.default;Promise.all([i.e(9509),i.e(3304)]).then(i.bind(i,7157)).then((e=>{(0,e.default)(o),s(o),i.e(3258).then(i.bind(i,9450)).then((e=>{(0,e.default)(o),o.__tools.setDomHomePosition(),(0,t.Z)(o).handle.scroll(),(0,t.Z)(o).handle.resize()}))}))}))}))}()}(); \ No newline at end of file diff --git a/dist/simpleMemory.js.gz b/dist/simpleMemory.js.gz index 0ca714e8..7feda374 100644 Binary files a/dist/simpleMemory.js.gz and b/dist/simpleMemory.js.gz differ diff --git a/docs/v2.1/docs/src/changelog/index.md b/docs/v2.1/docs/src/changelog/index.md index 895c56d3..1a7ddbb8 100644 --- a/docs/v2.1/docs/src/changelog/index.md +++ b/docs/v2.1/docs/src/changelog/index.md @@ -4,6 +4,7 @@ * 文章页复制内容携带版权信息 [(#429)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/429) * 文章页评论框打字动效 [(#431)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/431) * 友链页增加配置 [(#435)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/435) +* 修复拓展图标展示异常 [(#436)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/436) ## 2024.01.02 - v2.1.4 * 修改了博客运行时间的文字描述 diff --git a/src/components/config/config.json5 b/src/components/config/config.json5 index 9a3076ce..59fc87a8 100644 --- a/src/components/config/config.json5 +++ b/src/components/config/config.json5 @@ -446,13 +446,12 @@ }, }, }, + // -- 纪念日 -- + memorialDays: [], // -- 控制台输出 -- consoleList: [], // -- 书单信息 -- bookList: [], // -- 钩子 -- hooks: {}, - - // -- 纪念日 -- - memorialDays: [], }