diff --git a/dist/simple-memory.js b/dist/simple-memory.js index 9a00d32..737c6a3 100644 --- a/dist/simple-memory.js +++ b/dist/simple-memory.js @@ -1 +1 @@ -!function(){var e,t,n,o,a,r,i,l,s,c,u,f,m={434:function(e,t){"use strict";t.Z={init(){$.__event.scroll={},$.__event.scroll.handle=[],$.__event.scroll.temScroll=0,$.__event.scroll.docScroll=$(document).scrollTop(),$.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{$.__event.scroll.docScroll=$(document).scrollTop(),$.__event.scroll.homeScroll=$("#home").offset().top-40,this.handle.scroll(),$.__event.scroll.temScroll=$.__event.scroll.docScroll})),$.__event.resize={},$.__event.resize.handle=[],$(window).resize((()=>{this.handle.resize()}))},handle:{scroll:()=>{for(let e=0;e<$.__event.scroll.handle.length;e++)$.__event.scroll.handle[e]()},resize:()=>{for(let e=0;e<$.__event.resize.handle.length;e++)$.__event.resize.handle[e]();$.__tools.setDomHomePosition()}}}},2258:function(e,t,n){var o={"./article":[330,164,269],"./article.js":[330,164,269],"./books":[2898,164,463],"./books.js":[2898,164,463],"./common/com-article":[3515,164,148],"./common/com-article.js":[3515,164,148],"./common/comArticle":[7784,164,361],"./common/comArticle.js":[7784,164,361],"./home":[565,628],"./home.js":[565,628],"./links":[3480,164,583],"./links.js":[3480,164,583]};function a(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],a=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(a)}))}a.keys=function(){return Object.keys(o)},a.id=2258,e.exports=a},5299:function(e,t,n){"use strict";async function o(e="",t="GET",n={}){let o={method:t,mode:"cors",redirect:"follow",referrerPolicy:"no-referrer"};Object.keys(n).length&&(o.body=JSON.stringify(n));return(await fetch(e,o)).json()}n.d(t,{W:function(){return o}})}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return m[e](n,n.exports,p),n.exports}p.m=m,e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=function(e){e&&!e.d&&(e.d=1,e.forEach((function(e){e.r--})),e.forEach((function(e){e.r--?e.r++:e()})))},p.a=function(a,r,i){var l;i&&((l=[]).d=1);var s,c,u,f=new Set,m=a.exports,d=new Promise((function(e,t){u=t,c=e}));d[t]=m,d[e]=function(e){l&&e(l),f.forEach(e),d.catch((function(){}))},a.exports=d,r((function(a){var r;s=function(a){return a.map((function(a){if(null!==a&&"object"==typeof a){if(a[e])return a;if(a.then){var r=[];r.d=0,a.then((function(e){i[t]=e,o(r)}),(function(e){i[n]=e,o(r)}));var i={};return i[e]=function(e){e(r)},i}}var l={};return l[e]=function(){},l[t]=a,l}))}(a);var i=function(){return s.map((function(e){if(e[n])throw e[n];return e[t]}))},c=new Promise((function(t){(r=function(){t(i)}).r=0;var n=function(e){e!==l&&!f.has(e)&&(f.add(e),e&&!e.d&&(r.r++,e.push(r)))};s.map((function(t){t[e](n)}))}));return r.r?c:i()}),(function(e){e?u(d[n]=e):c(m),o(l)})),l&&(l.d=0)},a=[],p.O=function(e,t,n,o){if(!t){var r=1/0;for(c=0;c=o)&&Object.keys(p.O).every((function(e){return p.O[e](t[l])}))?t.splice(l--,1):(i=!1,o0&&a[c-1][2]>o;c--)a[c]=a[c-1];a[c]=[t,n,o]},p.F={},p.E=function(e){Object.keys(p.F).map((function(t){p.F[t](e)}))},p.H={},p.G=function(e){Object.keys(p.H).map((function(t){p.H[t](e)}))},i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},p.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);p.r(n);var o={};r=r||[null,i({}),i([]),i(i)];for(var a=2&t&&e;"object"==typeof a&&!~r.indexOf(a);a=i(a))Object.getOwnPropertyNames(a).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},p.d(n,o),n},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce((function(t,n){return p.f[n](e,t),t}),[]))},p.u=function(e){return"script/"+({14:"iconfont",77:"background-season",86:"circle-magic",87:"mouse-click",148:"page-common-com-article",170:"mouse-mo",191:"article-code",269:"page-article",289:"com-after",290:"background-particles",297:"gf-blink",315:"banner-images",361:"page-common-comArticle",379:"mouse-mouse",463:"page-books",545:"mouse-bubble",561:"nhBannerAnimation",578:"font-awesome",583:"page-links",586:"code-hljs",628:"page-home",634:"BNTang",663:"background-ribbons",732:"google-fonts",910:"com-before",984:"day-night"}[e]||e)+"."+{14:"f943b743",77:"2e3a14bb",86:"195c8c3f",87:"e4856272",148:"8e56c14a",164:"e945eda4",170:"a9496f79",191:"51aa859e",269:"8ddbd3ca",289:"d6d657f3",290:"228119da",297:"0f1415c2",315:"fc994377",361:"28f77a3a",379:"6fe6ca76",463:"4d1cd108",545:"277d76af",561:"b2f2b053",578:"a1b7f80d",583:"82b49823",586:"dfd41010",628:"5b7eda65",634:"99ce5b67",663:"b7fd199f",732:"e583fe74",910:"2d356c81",984:"afb6ecc0"}[e]+".js"},p.miniCssF=function(e){return"style/"+({14:"iconfont",290:"background-particles",297:"gf-blink",379:"mouse-mouse",463:"page-books",561:"nhBannerAnimation",578:"font-awesome",583:"page-links",634:"BNTang",732:"google-fonts",910:"com-before",984:"day-night"}[e]||e)+"."+{14:"ea5cf129",164:"17bd3856",290:"070a36d4",297:"0cc7f6e2",379:"6f5882cf",463:"544fc434",561:"7ff7a955",578:"c400bc10",583:"a0f562ae",634:"02c669c0",732:"66c39700",910:"c9da3625",984:"42c4078a"}[e]+".css"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l={},s="cnblogs-theme-simplememory:",p.l=function(e,t,n,o){if(l[e])l[e].push(t);else{var a,r;if(void 0!==n)for(var i=document.getElementsByTagName("script"),c=0;ct)return 1;if(e{let a=$(e[t]);a.prepend(''),$("#articleInfo").append('")}))},tempReplacement:function(e,t,n){let o=new RegExp("##"+t+"##","g");return e.replace(o,n)},batchTempReplacement:function(e,t){let n=e;return $.each(t,(function(e){let o=t[e],a=new RegExp("##"+o[0]+"##","g");n=n.replace(a,o[1])})),n},dynamicLoadingCss:function(e){$("head").append(""),$("head").children(":last").attr({rel:"stylesheet",type:"text/css",href:e})},dynamicLoadingJs:function(e){return new Promise(((t,n)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){t(e)},error:function(e){n(e)}})}))},htmlFiltrationScript:function(e){let t=new RegExp("","ig");return e.replace(t,"")},clearIntervalTimeId:function(e){null!=e&&window.clearInterval(e)},actScroll:function(e,t){$("html,body").stop().animate({scrollTop:e},t)},getScrollPercent:function(){return($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0)},randomNum:function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(t-e+1)+e);default:return 0}},setDomHomePosition:function(){$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getRunDate:function(e){let t=e.split("-"),n=new Date;n.setUTCFullYear(t[0],t[1]-1,t[2]),n.setUTCHours(0,0,0,0);let o=n,a=((new Date).getTime()-o.getTime())/864e5,r=Math.floor(a),i=-24*(r-a),l=Math.floor(i),s=-60*(l-i),c=Math.floor(-60*(l-i));return{daysold:r,hrsold:l,minsold:c,seconds:Math.floor(-60*(c-s)).toString()}},setCookie:function(e,t,n){let o=new Date;o.setTime(o.getTime()+1e3*n),document.cookie=e+"="+escape(t)+"; expires="+o.toGMTString()+"; path=/"},getCookie:function(e){let t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return t=document.cookie.match(n),t?unescape(t[2]):null},randomString:function(e){e=e||32;let t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length,o="";for(let a=0;a{localStorage.setItem("version",e.tag_name),localStorage.setItem("repoUrl",e.html_url)})),i(localStorage.getItem("version"),$.__config.default.version)}},s=p(434);$(document).ready((function(){$.__config=$.extend(!0,e,window?.cnblogsConfig||{}),$.__status=a,$.__tools=l,$.__timeIds={},$.__event={},$.__config.info.name||=$.__status.user,$.__tools.dynamicLoadingJs($.__config.default.moment).then((e=>{p(2258)(`./${$.__status.pageType}`).then((e=>{const t=e.default;p.e(910).then(p.bind(p,6361)).then((e=>{(0,e.default)(),t(),p.e(289).then(p.bind(p,7987)).then((e=>{(0,e.default)(),$.__tools.setDomHomePosition(),s.Z.handle.scroll(),s.Z.handle.resize()}))}))}))})).catch((e=>console.error("moment.js",e)))}))}(),h=p.O(h)}(); \ No newline at end of file +!function(){var e,t,n,o,a,r,i,l,c,s,u,f,m={434:function(e,t){"use strict";t.Z={init(){$.__event.scroll={},$.__event.scroll.handle=[],$.__event.scroll.temScroll=0,$.__event.scroll.docScroll=$(document).scrollTop(),$.__event.scroll.homeScroll=$("#home").offset().top-40,$(window).scroll((()=>{$.__event.scroll.docScroll=$(document).scrollTop(),$.__event.scroll.homeScroll=$("#home").offset().top-40,this.handle.scroll(),$.__event.scroll.temScroll=$.__event.scroll.docScroll})),$.__event.resize={},$.__event.resize.handle=[],$(window).resize((()=>{this.handle.resize()}))},handle:{scroll:()=>{for(let e=0;e<$.__event.scroll.handle.length;e++)$.__event.scroll.handle[e]()},resize:()=>{for(let e=0;e<$.__event.resize.handle.length;e++)$.__event.resize.handle[e]();$.__tools.setDomHomePosition()}}}},2258:function(e,t,n){var o={"./article":[330,164,269],"./article.js":[330,164,269],"./books":[2898,164,463],"./books.js":[2898,164,463],"./common/com-article":[3515,164,148],"./common/com-article.js":[3515,164,148],"./common/comArticle":[7784,164,361],"./common/comArticle.js":[7784,164,361],"./home":[565,628],"./home.js":[565,628],"./links":[3480,164,583],"./links.js":[3480,164,583]};function a(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],a=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(a)}))}a.keys=function(){return Object.keys(o)},a.id=2258,e.exports=a},5299:function(e,t,n){"use strict";async function o(e="",t="GET",n={}){let o={method:t,mode:"cors",redirect:"follow",referrerPolicy:"no-referrer"};Object.keys(n).length&&(o.body=JSON.stringify(n));return(await fetch(e,o)).json()}n.d(t,{W:function(){return o}})}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return m[e](n,n.exports,p),n.exports}p.m=m,e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=function(e){e&&!e.d&&(e.d=1,e.forEach((function(e){e.r--})),e.forEach((function(e){e.r--?e.r++:e()})))},p.a=function(a,r,i){var l;i&&((l=[]).d=1);var c,s,u,f=new Set,m=a.exports,d=new Promise((function(e,t){u=t,s=e}));d[t]=m,d[e]=function(e){l&&e(l),f.forEach(e),d.catch((function(){}))},a.exports=d,r((function(a){var r;c=function(a){return a.map((function(a){if(null!==a&&"object"==typeof a){if(a[e])return a;if(a.then){var r=[];r.d=0,a.then((function(e){i[t]=e,o(r)}),(function(e){i[n]=e,o(r)}));var i={};return i[e]=function(e){e(r)},i}}var l={};return l[e]=function(){},l[t]=a,l}))}(a);var i=function(){return c.map((function(e){if(e[n])throw e[n];return e[t]}))},s=new Promise((function(t){(r=function(){t(i)}).r=0;var n=function(e){e!==l&&!f.has(e)&&(f.add(e),e&&!e.d&&(r.r++,e.push(r)))};c.map((function(t){t[e](n)}))}));return r.r?s:i()}),(function(e){e?u(d[n]=e):s(m),o(l)})),l&&(l.d=0)},a=[],p.O=function(e,t,n,o){if(!t){var r=1/0;for(s=0;s=o)&&Object.keys(p.O).every((function(e){return p.O[e](t[l])}))?t.splice(l--,1):(i=!1,o0&&a[s-1][2]>o;s--)a[s]=a[s-1];a[s]=[t,n,o]},p.F={},p.E=function(e){Object.keys(p.F).map((function(t){p.F[t](e)}))},p.H={},p.G=function(e){Object.keys(p.H).map((function(t){p.H[t](e)}))},i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},p.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);p.r(n);var o={};r=r||[null,i({}),i([]),i(i)];for(var a=2&t&&e;"object"==typeof a&&!~r.indexOf(a);a=i(a))Object.getOwnPropertyNames(a).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},p.d(n,o),n},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce((function(t,n){return p.f[n](e,t),t}),[]))},p.u=function(e){return"script/"+({14:"iconfont",77:"background-season",86:"circle-magic",87:"mouse-click",148:"page-common-com-article",170:"mouse-mo",191:"article-code",269:"page-article",289:"com-after",290:"background-particles",297:"gf-blink",315:"banner-images",361:"page-common-comArticle",379:"mouse-mouse",463:"page-books",545:"mouse-bubble",561:"nhBannerAnimation",578:"font-awesome",583:"page-links",586:"code-hljs",628:"page-home",634:"BNTang",663:"background-ribbons",732:"google-fonts",910:"com-before",984:"day-night"}[e]||e)+"."+{14:"f943b743",77:"2e3a14bb",86:"195c8c3f",87:"e4856272",148:"8e56c14a",164:"e945eda4",170:"a9496f79",191:"51aa859e",269:"8ddbd3ca",289:"d6d657f3",290:"228119da",297:"0f1415c2",315:"fc994377",361:"28f77a3a",379:"6fe6ca76",463:"4d1cd108",545:"277d76af",561:"b2f2b053",578:"a1b7f80d",583:"82b49823",586:"dfd41010",628:"5b7eda65",634:"99ce5b67",663:"b7fd199f",732:"e583fe74",910:"2d356c81",984:"afb6ecc0"}[e]+".js"},p.miniCssF=function(e){return"style/"+({14:"iconfont",290:"background-particles",297:"gf-blink",379:"mouse-mouse",463:"page-books",561:"nhBannerAnimation",578:"font-awesome",583:"page-links",634:"BNTang",732:"google-fonts",910:"com-before",984:"day-night"}[e]||e)+"."+{14:"ea5cf129",164:"17bd3856",290:"070a36d4",297:"0cc7f6e2",379:"6f5882cf",463:"544fc434",561:"7ff7a955",578:"c400bc10",583:"a0f562ae",634:"02c669c0",732:"66c39700",910:"c9da3625",984:"42c4078a"}[e]+".css"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l={},c="cnblogs-theme-simplememory:",p.l=function(e,t,n,o){if(l[e])l[e].push(t);else{var a,r;if(void 0!==n)for(var i=document.getElementsByTagName("script"),s=0;st)return 1;if(e{let a=$(e[t]);a.prepend(''),$("#articleInfo").append('")}))},tempReplacement:function(e,t,n){let o=new RegExp("##"+t+"##","g");return e.replace(o,n)},batchTempReplacement:function(e,t){let n=e;return $.each(t,(function(e){let o=t[e],a=new RegExp("##"+o[0]+"##","g");n=n.replace(a,o[1])})),n},dynamicLoadingCss:function(e){$("head").append(""),$("head").children(":last").attr({rel:"stylesheet",type:"text/css",href:e})},dynamicLoadingJs:function(e){return new Promise(((t,n)=>{$.ajax({type:"GET",dataType:"script",cache:!0,url:e,success:function(e){t(e)},error:function(e){n(e)}})}))},htmlFiltrationScript:function(e){let t=new RegExp("","ig");return e.replace(t,"")},clearIntervalTimeId:function(e){null!=e&&window.clearInterval(e)},actScroll:function(e,t){$("html,body").stop().animate({scrollTop:e},t)},getScrollPercent:function(){return($(window).scrollTop()/($(document).height()-$(window).height())*100).toFixed(0)},randomNum:function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(t-e+1)+e);default:return 0}},setDomHomePosition:function(){$("#home").css("margin-top",$(".main-header").outerHeight()+"px")},getRunDate:function(e){let t=e.split("-"),n=new Date;n.setUTCFullYear(t[0],t[1]-1,t[2]),n.setUTCHours(0,0,0,0);let o=n,a=((new Date).getTime()-o.getTime())/864e5,r=Math.floor(a),i=-24*(r-a),l=Math.floor(i),c=-60*(l-i),s=Math.floor(-60*(l-i));return{daysold:r,hrsold:l,minsold:s,seconds:Math.floor(-60*(s-c)).toString()}},setCookie:function(e,t,n){let o=new Date;o.setTime(o.getTime()+1e3*n),document.cookie=e+"="+escape(t)+"; expires="+o.toGMTString()+"; path=/"},getCookie:function(e){let t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return t=document.cookie.match(n),t?unescape(t[2]):null},randomString:function(e){e=e||32;let t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length,o="";for(let a=0;a{localStorage.setItem("version",e.tag_name),localStorage.setItem("repoUrl",e.html_url)})),i(localStorage.getItem("version"),$.__config.default.version)}},c=p(434);$(document).ready((function(){$.__config=$.extend(!0,e,window?.cnblogsConfig||{}),$.__status=a,$.__tools=l,$.__timeIds={},$.__event={},$.__config.info.name||=$.__status.user,$.__tools.dynamicLoadingJs($.__config.default.moment).then((e=>{p(2258)(`./${$.__status.pageType}`).then((e=>{const t=e.default;p.e(910).then(p.bind(p,6361)).then((e=>{(0,e.default)(),t(),p.e(289).then(p.bind(p,7987)).then((e=>{(0,e.default)(),$.__tools.setDomHomePosition(),c.Z.handle.scroll(),c.Z.handle.resize()}))}))}))})).catch((e=>console.error("moment.js",e)))}))}(),g=p.O(g)}(); \ No newline at end of file diff --git a/dist/simple-memory.js.gz b/dist/simple-memory.js.gz index 076e33a..8836111 100644 Binary files a/dist/simple-memory.js.gz and b/dist/simple-memory.js.gz differ diff --git a/package.json b/package.json index 8a5857d..9ec0cb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cnblogs-theme-simplememory", - "version": "3.0.1", + "version": "3.0.2", "description": "
", "main": "index.js", "directories": { diff --git a/src/components/config/config.json5 b/src/components/config/config.json5 index 25ca813..1d59bff 100644 --- a/src/components/config/config.json5 +++ b/src/components/config/config.json5 @@ -19,7 +19,7 @@ sidebar: { navList: [], customList: {}, - infoBackground: '', + infoBackground: 'https://img2023.cnblogs.com/blog/2105804/202307/2105804-20230720224315494-1601510076.webp', titleMsg: '欢迎访问本博客~', blogStatus: true, submenu: {