diff --git a/dist/public/main.css b/dist/public/main.css index 00a0027..4bff0cd 100644 --- a/dist/public/main.css +++ b/dist/public/main.css @@ -1 +1 @@ -@import url(//fonts.googleapis.com/css?family=Oxygen&display=swap);body{margin:0}a,div,em,h1,h2,h3,h4,h5,p,span{font-family:Oxygen,sans-serif;font-weight:400}h1{font-size:2.4em}h2{font-size:1.25em}h3{font-size:1.125em}a,p,span{font-size:.875em}@media only screen and (min-width:768px) and (max-width:1024px){h1{font-size:1.6em}}@media (max-width:768px){h1{font-size:1.3em}h2{font-size:1em}h3{font-size:.875em}a,p,span{font-size:.75em}}.typed-cursor{font-size:1.4em}@media (max-width:768px){.typed-cursor{font-size:1.3em}}._3zRib{margin:25px 0}._3zRib>div{margin:0 auto}._3zRib>div img{height:20px;width:20px}._3zKm-{background:#2be095}.PsTLU{padding:0;border-top:1px solid #ddd}.PsTLU div{padding-top:10px;text-align:center;color:#7c7c7c}.PsTLU div:last-child{padding-bottom:10px}.PsTLU a{color:#4185f4;text-decoration:none;font-size:inherit}._306MB{position:absolute;top:0;right:0}._306MB>path:first-child{fill:#2d4570}._222UC:hover ._306MB>path:first-child{fill:#252a2e}._306MB>path:nth-child(2),._306MB>path:nth-child(3){fill:#fff}._1W8MA{-webkit-transform-origin:130px 106px;-moz-transform-origin:130px 106px;-ms-transform-origin:130px 106px;-o-transform-origin:130px 106px;transform-origin:130px 106px}._222UC:hover ._1W8MA{-webkit-animation:_1SnV- .56s ease-in-out;-moz-animation:_1SnV- .56s ease-in-out;-o-animation:_1SnV- .56s ease-in-out;animation:_1SnV- .56s ease-in-out}@-webkit-keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@-moz-keyframes _1SnV-{0%,to{-moz-transform:rotate(0);transform:rotate(0)}20%,60%{-moz-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-moz-transform:rotate(10deg);transform:rotate(10deg)}}@-o-keyframes _1SnV-{0%,to{-o-transform:rotate(0);transform:rotate(0)}20%,60%{-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-o-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);-moz-transform:rotate(-25deg);-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);-moz-transform:rotate(10deg);-o-transform:rotate(10deg);transform:rotate(10deg)}}@media (max-width:768px){._222UC{display:none}}._39cf6{background-color:#2d4570}._1UspK{padding-top:0;background-color:#fff}@media (max-width:768px){._39cf6{position:fixed}._1UspK{padding-top:45px}}._13D9u{color:#2d4570}._2J_Pw{color:#eb586f}._18Za6{margin:16px 0 9px}._18Za6>a{display:none}._18Za6>a>img{width:15px;height:15px;margin-right:5px}._18Za6:hover>a{display:inline}.SuvIl{padding:0 0 30px 30px}@media (max-width:768px){.SuvIl{padding:0 0 5px 20px}}._1l6ve{position:fixed;width:20%;top:20%;text-align:center}._1l6ve h1{color:#fff;margin:0}._1l6ve h1:first-child{font-weight:700}._1l6ve h1:nth-child(2){-webkit-transition:color .5s;-o-transition:color .5s;-moz-transition:color .5s;transition:color .5s}.PnrWH{font-size:1.4em;display:inline-block}@media only screen and (min-width:768px) and (max-width:1024px){._1l6ve{width:16.67%}}@media (max-width:768px){._1l6ve{position:relative;width:100%;top:0;text-align:left;padding:8px 15px}._1l6ve h1{display:inline-block;margin-right:5px}.PnrWH{font-size:1.3em}}._2-RUO{border-top:1px solid #ddd;padding:6px;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:-moz-box;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}._2-RUO img{height:48px;width:48px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;margin-right:10px}._2-RUO ._1qEkE{overflow:hidden}._2-RUO ._1qEkE h3{margin:0 0 3px;color:#2d4570;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}._2-RUO ._1qEkE a{text-decoration:none;color:#6d6d6d}._2-RUO ._1qEkE a:hover{color:#2be095}@media (max-width:768px){._2-RUO img{margin-right:8px}}._39Ujn{text-align:center;color:#19ae00} \ No newline at end of file +@import url(//fonts.googleapis.com/css?family=Oxygen&display=swap);body{margin:0}a,div,em,h1,h2,h3,h4,h5,p,span{font-family:Oxygen,sans-serif;font-weight:400}h1{font-size:2.4em}h2{font-size:1.25em}h3{font-size:1.125em}a,p,span{font-size:.875em}@media only screen and (min-width:768px) and (max-width:1024px){h1{font-size:1.6em}}@media (max-width:768px){h1{font-size:1.3em}h2{font-size:1em}h3{font-size:.875em}a,p,span{font-size:.75em}}.typed-cursor{font-size:1.4em}@media (max-width:768px){.typed-cursor{font-size:1.3em}}._3zRib{margin:25px 0}._3zRib>div{margin:0 auto}._3zRib>div img{height:20px;width:20px}._3zKm-{background:#2be095}.PsTLU{padding:0;border-top:1px solid #ddd}.PsTLU div{padding-top:10px;text-align:center;color:#7c7c7c}.PsTLU div:last-child{padding-bottom:10px}.PsTLU a{color:#4185f4;text-decoration:none;font-size:inherit}._306MB{position:absolute;top:0;right:0}._306MB>path:first-child{fill:#2d4570}._222UC:hover ._306MB>path:first-child{fill:#252a2e}._306MB>path:nth-child(2),._306MB>path:nth-child(3){fill:#fff}._1W8MA{-webkit-transform-origin:130px 106px;-moz-transform-origin:130px 106px;-ms-transform-origin:130px 106px;-o-transform-origin:130px 106px;transform-origin:130px 106px}._222UC:hover ._1W8MA{-webkit-animation:_1SnV- .56s ease-in-out;-moz-animation:_1SnV- .56s ease-in-out;animation:_1SnV- .56s ease-in-out}@-webkit-keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@-moz-keyframes _1SnV-{0%,to{-moz-transform:rotate(0);transform:rotate(0)}20%,60%{-moz-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-moz-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);-moz-transform:rotate(-25deg);-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);-moz-transform:rotate(10deg);-o-transform:rotate(10deg);transform:rotate(10deg)}}@media (max-width:768px){._222UC{display:none}}._39cf6{background-color:#2d4570}._1UspK{padding-top:0;background-color:#fff}@media (max-width:768px){._39cf6{position:fixed}._1UspK{padding-top:45px}}._13D9u{color:#2d4570}._2J_Pw{color:#eb586f}._18Za6{margin:16px 0 9px}._18Za6>a{display:none}._18Za6>a>img{width:15px;height:15px;margin-right:5px}._18Za6:hover>a{display:inline}.SuvIl{padding:0 0 30px 30px}@media (max-width:768px){.SuvIl{padding:0 0 5px 20px}}._1l6ve{position:fixed;width:20%;top:20%;text-align:center}._1l6ve h1{color:#fff;margin:0}._1l6ve h1:first-child{font-weight:700}._1l6ve h1:nth-child(2){-webkit-transition:color .5s;-o-transition:color .5s;-moz-transition:color .5s;transition:color .5s}.PnrWH{font-size:1.4em;display:inline-block}@media only screen and (min-width:768px) and (max-width:1024px){._1l6ve{width:16.67%}}@media (max-width:768px){._1l6ve{position:relative;width:100%;top:0;text-align:left;padding:8px 15px}._1l6ve h1{display:inline-block;margin-right:5px}.PnrWH{font-size:1.3em}}._2-RUO{border-top:1px solid #ddd;padding:6px;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:-moz-box;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}._2-RUO img{height:48px;width:48px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;margin-right:10px}._2-RUO ._1qEkE{overflow:hidden}._2-RUO ._1qEkE h3{margin:0 0 3px;color:#2d4570;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}._2-RUO ._1qEkE a{text-decoration:none;color:#6d6d6d}._2-RUO ._1qEkE a:hover{color:#2be095}@media (max-width:768px){._2-RUO img{margin-right:8px}}._39Ujn{text-align:center;color:#19ae00} \ No newline at end of file diff --git a/dist/public/main.js b/dist/public/main.js index adb444c..efcc4dc 100644 --- a/dist/public/main.js +++ b/dist/public/main.js @@ -1,4 +1,4 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(r,s,function(e){return t[e]}.bind(null,s));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=17)}([function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n(1),s="".concat(r.a,"/").concat(r.b),i=(t.env.PORT,"https://cdn.jsdelivr.net/gh/".concat(s,"@v").concat(r.c,"/").concat("dist/public"),"//dkny.oss-cn-hangzhou.aliyuncs.com/1/icons"),o=("".concat(i,"/deno.svg"),"".concat(i,"/deno-fav.png"),"".concat("https://github.com","/").concat(s)),a="github2.svg",u=[((new Date).getFullYear()+((new Date).getMonth()<11?0:1)).toString(),"Developer","Designer","Architect","Beginner","Fun!"],c=[["#7bd0ff","#F38181"],["#e8ec8b","#57cc9d"],["#EAFFD0","#a7e5e4"],["#ffb077","#b0cadb"]];[{to:"/",img:"vue.svg",title:"Front End",alt:"framework",asset:"main"},{to:"/node/",img:"deno.svg",title:"Node.js",alt:"node",asset:"main"},{to:"/library/",img:"vscode.svg",title:"Miscellaneous",alt:"library",asset:"main"},{to:"/site/",img:"javascript.svg",title:"Website",alt:"site",asset:"site"},{to:"".concat(o,"/issues/5"),img:"fa-plus-wht.svg",title:"Submit Github Link",alt:"add"}].reduce((function(t,e,n){return t[e.to]=e,t[e.to].link=n+1,t}),{}),"".concat("dist/public","/main.css"),"".concat("dist/public","/site.css")}).call(this,n(11))},function(t){t.exports=JSON.parse('{"b":"javascript-fun","c":"1.3.2","a":"im6"}')},function(t,e,n){t.exports={header:"_1l6ve",type:"PnrWH"}},function(t,e,n){ +!function(){var t={637:function(t){t.exports={footer:"PsTLU"}},23:function(t){t.exports={corner:"_306MB",link:"_222UC",octoArm:"_1W8MA","octocat-wave":"_1SnV-"}},954:function(t){t.exports={header:"_1l6ve",type:"PnrWH"}},14:function(t){t.exports={menubar:"_3zRib",success:"_3zKm-"}},86:function(t){t.exports={left:"_39cf6",right:"_1UspK"}},126:function(t){t.exports={gitColor:"_13D9u",webColor:"_2J_Pw",title:"_18Za6"}},834:function(t){t.exports={box:"_2-RUO",rightText:"_1qEkE"}},722:function(t){t.exports={updateTime:"_39Ujn"}},818:function(t){t.exports={main:"SuvIl"}},614:function(t){ /*! * * typed.js - A JavaScript Typing Animation Library @@ -8,4 +8,4 @@ * License(s): MIT * */ -var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nt.length)););var u=t.substring(0,e),c=t.substring(u.length+1,e+s),l=t.substring(e+s+1);t=u+c+l,s--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,s),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var r=t.substr(0,e);this.replaceText(r),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=i.htmlParser.backSpaceHtmlChars(t,e,n);var r=t.substr(0,e);if(n.replaceText(r),n.smartBackspace){var s=n.strings[n.arrayPos+1];s&&r===s.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,s=Object.assign||function(t){for(var e=1;e":";";t.substr(e+1).charAt(0)!==s&&!(1+ ++e>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if(">"===r||";"===r){var s="";for(s=">"===r?"<":"&";t.substr(e-1).charAt(0)!==s&&!(--e<0););e--}return e}}]),t}();e.default=r;var s=new r;e.htmlParser=s}])},t.exports=r()},function(t,e,n){},function(t,e,n){t.exports={menubar:"_3zRib",success:"_3zKm-"}},function(t,e,n){t.exports={footer:"PsTLU"}},function(t,e,n){t.exports={corner:"_306MB",link:"_222UC",octoArm:"_1W8MA","octocat-wave":"_1SnV-"}},function(t,e,n){t.exports={left:"_39cf6",right:"_1UspK"}},function(t,e,n){t.exports={gitColor:"_13D9u",webColor:"_2J_Pw",title:"_18Za6"}},function(t,e,n){t.exports={main:"SuvIl"}},function(t,e){var n,r,s=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,c=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&h())}function h(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++p1)for(var n=1;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)););var u=t.substring(0,e),c=t.substring(u.length+1,e+r),l=t.substring(e+r+1);t=u+c+l,r--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,r),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),s)}),s):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var s=t.substr(0,e);this.replaceText(s),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var s=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=i.htmlParser.backSpaceHtmlChars(t,e,n);var s=t.substr(0,e);if(n.replaceText(s),n.smartBackspace){var r=n.strings[n.arrayPos+1];r&&s===r.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),s)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,r=Object.assign||function(t){for(var e=1;e":";";t.substr(e+1).charAt(0)!==r&&!(1+ ++e>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var s=t.substr(e).charAt(0);if(">"===s||";"===s){var r="";for(r=">"===s?"<":"&";t.substr(e-1).charAt(0)!==r&&!(--e<0););e--}return e}}]),t}();e.default=s;var r=new s;e.htmlParser=r}])},t.exports=e()},306:function(t){"use strict";t.exports=JSON.parse('{"name":"javascript-fun","version":"1.4.0","description":"source code generator for javascript.fun","scripts":{"daily":"yarn collect && yarn render && yarn cp","lint":"eslint ./webpack ./src","test":"jest --coverage","dev":"webpack --config ./webpack/develop.js","build":"webpack --config ./webpack/production.js","web":"node ./dist/node/server.js","render":"node ./dist/node/render.js","collect":"node -r dotenv/config dist/node/collect.js","cp":". ./cp.sh"},"repository":"git+https://github.com/im6/javascript-fun.git","author":"im6","license":"ISC","bugs":{"url":"https://github.com/im6/javascript-fun/issues"},"homepage":"https://github.com/im6/javascript-fun#readme","dependencies":{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.5","@testing-library/react":"^11.2.1","async":"^3.2.0","autoprefixer":"^10.0.2","babel-loader":"^8.2.1","cheerio":"^1.0.0-rc.3","classnames":"^2.2.6","clean-webpack-plugin":"^3.0.0","css-loader":"^5.0.1","dotenv":"^8.2.0","eslint":"^7.13.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.3","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.21.5","express":"^4.17.1","jest":"^26.6.3","less":"^3.12.2","less-loader":"^7.1.0","lodash.groupby":"^4.6.0","lodash.orderby":"^4.6.0","mini-css-extract-plugin":"^1.3.1","mysql":"^2.18.1","node-fetch":"^2.6.1","numeral":"^2.0.6","optimize-css-assets-webpack-plugin":"^5.0.4","postcss":"^8.1.8","postcss-loader":"^4.1.0","prettier":"^2.1.2","progress":"^2.0.3","purecss":"^2.0.3","react":"^17.0.1","react-dom":"^17.0.1","typed.js":"^2.0.11","webpack":"^5.6.0","webpack-cli":"^4.2.0","webpack-node-externals":"^2.5.2"},"browserslist":["defaults","cover 99.5%"],"prettier":{"endOfLine":"auto","trailingComma":"es5","tabWidth":2,"semi":true,"singleQuote":true},"eslintConfig":{"extends":["airbnb","prettier"],"plugins":["react","jsx-a11y","import","prettier","jest"],"env":{"browser":true,"jest/globals":true}},"babel":{"presets":["@babel/preset-env",["@babel/preset-react",{"runtime":"automatic"}]]},"jest":{"verbose":false,"clearMocks":true,"moduleDirectories":["node_modules"],"moduleNameMapper":{"\\\\.(css|less)$":"/src/testing/styleMock.js"},"coverageDirectory":"coverage","coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":-10}}}}')}},e={};function n(s){if(e[s])return e[s].exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,n),r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=n(614),e=n.n(t),s=(n(14),n(637),n(23),n(86),n(126),n(818),n(306)),r=s.name,i=s.author,o=s.version,a="".concat(i,"/").concat(r),u="dist/public",c=("https://cdn.jsdelivr.net/gh/".concat(a,"@v").concat(o,"/").concat(u),"//dkny.oss-cn-hangzhou.aliyuncs.com/1/icons"),l=("".concat(c,"/deno.svg"),"".concat(c,"/deno-fav.png"),"".concat("https://github.com","/").concat(a)),p=[((new Date).getFullYear()+((new Date).getMonth()<11?0:1)).toString(),"Developer","Designer","Architect","Beginner","Fun!"],h=[["#7bd0ff","#F38181"],["#e8ec8b","#57cc9d"],["#EAFFD0","#a7e5e4"],["#ffb077","#b0cadb"]],f=([{to:"/",img:"vue.svg",title:"Front End",alt:"framework",asset:"main"},{to:"/node/",img:"deno.svg",title:"Node.js",alt:"node",asset:"main"},{to:"/library/",img:"vscode.svg",title:"Miscellaneous",alt:"library",asset:"main"},{to:"/site/",img:"javascript.svg",title:"Website",alt:"site",asset:"site"},{to:"".concat(l,"/issues/5"),img:"fa-plus-wht.svg",title:"Submit Github Link",alt:"add"}].reduce((function(t,e,n){return t[e.to]=e,t[e.to].link=n+1,t}),{}),"".concat(u,"/main.css"),"".concat(u,"/site.css"),n(954));function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],s=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(n.push(o.value),!e||n.length!==e);s=!0);}catch(t){r=!0,i=t}finally{try{s||null==a.return||a.return()}finally{if(r)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,s=new Array(e);ndiv{margin:0 auto}._3zRib>div img{height:20px;width:20px}._3zKm-{background:#2be095}.PsTLU{padding:0;border-top:1px solid #ddd}.PsTLU div{padding-top:10px;text-align:center;color:#7c7c7c}.PsTLU div:last-child{padding-bottom:10px}.PsTLU a{color:#4185f4;text-decoration:none;font-size:inherit}._306MB{position:absolute;top:0;right:0}._306MB>path:first-child{fill:#2d4570}._222UC:hover ._306MB>path:first-child{fill:#252a2e}._306MB>path:nth-child(2),._306MB>path:nth-child(3){fill:#fff}._1W8MA{-webkit-transform-origin:130px 106px;-moz-transform-origin:130px 106px;-ms-transform-origin:130px 106px;-o-transform-origin:130px 106px;transform-origin:130px 106px}._222UC:hover ._1W8MA{-webkit-animation:_1SnV- .56s ease-in-out;-moz-animation:_1SnV- .56s ease-in-out;-o-animation:_1SnV- .56s ease-in-out;animation:_1SnV- .56s ease-in-out}@-webkit-keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@-moz-keyframes _1SnV-{0%,to{-moz-transform:rotate(0);transform:rotate(0)}20%,60%{-moz-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-moz-transform:rotate(10deg);transform:rotate(10deg)}}@-o-keyframes _1SnV-{0%,to{-o-transform:rotate(0);transform:rotate(0)}20%,60%{-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-o-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);-moz-transform:rotate(-25deg);-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);-moz-transform:rotate(10deg);-o-transform:rotate(10deg);transform:rotate(10deg)}}@media (max-width:768px){._222UC{display:none}}._39cf6{background-color:#2d4570}._1UspK{padding-top:0;background-color:#fff}@media (max-width:768px){._39cf6{position:fixed}._1UspK{padding-top:45px}}._13D9u{color:#2d4570}._2J_Pw{color:#eb586f}._18Za6{margin:16px 0 9px}._18Za6>a{display:none}._18Za6>a>img{width:15px;height:15px;margin-right:5px}._18Za6:hover>a{display:inline}.SuvIl{padding:0 0 30px 30px}@media (max-width:768px){.SuvIl{padding:0 0 5px 20px}}._1l6ve{position:fixed;width:20%;top:20%;text-align:center}._1l6ve h1{color:#fff;margin:0}._1l6ve h1:first-child{font-weight:700}._1l6ve h1:nth-child(2){-webkit-transition:color .5s;-o-transition:color .5s;-moz-transition:color .5s;transition:color .5s}.PnrWH{font-size:1.4em;display:inline-block}@media only screen and (min-width:768px) and (max-width:1024px){._1l6ve{width:16.67%}}@media (max-width:768px){._1l6ve{position:relative;width:100%;top:0;text-align:left;padding:8px 15px}._1l6ve h1{display:inline-block;margin-right:5px}.PnrWH{font-size:1.3em}}._2MA6B{border-bottom:1px dashed #ddd;padding:5px 0}._2MA6B h4{margin:0 0 2px}._2MA6B h4 a{font-size:inherit;color:#4aa0d5;text-decoration:none;-webkit-transition:color .4s;-o-transition:color .4s;-moz-transition:color .4s;transition:color .4s}._2MA6B h4 a:hover{color:#eb586f}._2MA6B p{margin:0;color:#454553;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}@media (max-width:768px){._2MA6B{padding:8px 2px}} \ No newline at end of file +@import url(//fonts.googleapis.com/css?family=Oxygen&display=swap);body{margin:0}a,div,em,h1,h2,h3,h4,h5,p,span{font-family:Oxygen,sans-serif;font-weight:400}h1{font-size:2.4em}h2{font-size:1.25em}h3{font-size:1.125em}a,p,span{font-size:.875em}@media only screen and (min-width:768px) and (max-width:1024px){h1{font-size:1.6em}}@media (max-width:768px){h1{font-size:1.3em}h2{font-size:1em}h3{font-size:.875em}a,p,span{font-size:.75em}}.typed-cursor{font-size:1.4em}@media (max-width:768px){.typed-cursor{font-size:1.3em}}._3zRib{margin:25px 0}._3zRib>div{margin:0 auto}._3zRib>div img{height:20px;width:20px}._3zKm-{background:#2be095}.PsTLU{padding:0;border-top:1px solid #ddd}.PsTLU div{padding-top:10px;text-align:center;color:#7c7c7c}.PsTLU div:last-child{padding-bottom:10px}.PsTLU a{color:#4185f4;text-decoration:none;font-size:inherit}._306MB{position:absolute;top:0;right:0}._306MB>path:first-child{fill:#2d4570}._222UC:hover ._306MB>path:first-child{fill:#252a2e}._306MB>path:nth-child(2),._306MB>path:nth-child(3){fill:#fff}._1W8MA{-webkit-transform-origin:130px 106px;-moz-transform-origin:130px 106px;-ms-transform-origin:130px 106px;-o-transform-origin:130px 106px;transform-origin:130px 106px}._222UC:hover ._1W8MA{-webkit-animation:_1SnV- .56s ease-in-out;-moz-animation:_1SnV- .56s ease-in-out;animation:_1SnV- .56s ease-in-out}@-webkit-keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@-moz-keyframes _1SnV-{0%,to{-moz-transform:rotate(0);transform:rotate(0)}20%,60%{-moz-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-moz-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes _1SnV-{0%,to{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);-moz-transform:rotate(-25deg);-o-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);-moz-transform:rotate(10deg);-o-transform:rotate(10deg);transform:rotate(10deg)}}@media (max-width:768px){._222UC{display:none}}._39cf6{background-color:#2d4570}._1UspK{padding-top:0;background-color:#fff}@media (max-width:768px){._39cf6{position:fixed}._1UspK{padding-top:45px}}._13D9u{color:#2d4570}._2J_Pw{color:#eb586f}._18Za6{margin:16px 0 9px}._18Za6>a{display:none}._18Za6>a>img{width:15px;height:15px;margin-right:5px}._18Za6:hover>a{display:inline}.SuvIl{padding:0 0 30px 30px}@media (max-width:768px){.SuvIl{padding:0 0 5px 20px}}._1l6ve{position:fixed;width:20%;top:20%;text-align:center}._1l6ve h1{color:#fff;margin:0}._1l6ve h1:first-child{font-weight:700}._1l6ve h1:nth-child(2){-webkit-transition:color .5s;-o-transition:color .5s;-moz-transition:color .5s;transition:color .5s}.PnrWH{font-size:1.4em;display:inline-block}@media only screen and (min-width:768px) and (max-width:1024px){._1l6ve{width:16.67%}}@media (max-width:768px){._1l6ve{position:relative;width:100%;top:0;text-align:left;padding:8px 15px}._1l6ve h1{display:inline-block;margin-right:5px}.PnrWH{font-size:1.3em}}._2MA6B{border-bottom:1px dashed #ddd;padding:5px 0}._2MA6B h4{margin:0 0 2px}._2MA6B h4 a{font-size:inherit;color:#4aa0d5;text-decoration:none;-webkit-transition:color .4s;-o-transition:color .4s;-moz-transition:color .4s;transition:color .4s}._2MA6B h4 a:hover{color:#eb586f}._2MA6B p{margin:0;color:#454553;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}@media (max-width:768px){._2MA6B{padding:8px 2px}} \ No newline at end of file diff --git a/dist/public/site.js b/dist/public/site.js index 9819943..ffb854e 100644 --- a/dist/public/site.js +++ b/dist/public/site.js @@ -1,4 +1,4 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(r,s,function(e){return t[e]}.bind(null,s));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n(1),s="".concat(r.a,"/").concat(r.b),i=(t.env.PORT,"https://cdn.jsdelivr.net/gh/".concat(s,"@v").concat(r.c,"/").concat("dist/public"),"//dkny.oss-cn-hangzhou.aliyuncs.com/1/icons"),o=("".concat(i,"/deno.svg"),"".concat(i,"/deno-fav.png"),"".concat("https://github.com","/").concat(s)),a="github2.svg",u=[((new Date).getFullYear()+((new Date).getMonth()<11?0:1)).toString(),"Developer","Designer","Architect","Beginner","Fun!"],c=[["#7bd0ff","#F38181"],["#e8ec8b","#57cc9d"],["#EAFFD0","#a7e5e4"],["#ffb077","#b0cadb"]];[{to:"/",img:"vue.svg",title:"Front End",alt:"framework",asset:"main"},{to:"/node/",img:"deno.svg",title:"Node.js",alt:"node",asset:"main"},{to:"/library/",img:"vscode.svg",title:"Miscellaneous",alt:"library",asset:"main"},{to:"/site/",img:"javascript.svg",title:"Website",alt:"site",asset:"site"},{to:"".concat(o,"/issues/5"),img:"fa-plus-wht.svg",title:"Submit Github Link",alt:"add"}].reduce((function(t,e,n){return t[e.to]=e,t[e.to].link=n+1,t}),{}),"".concat("dist/public","/main.css"),"".concat("dist/public","/site.css")}).call(this,n(11))},function(t){t.exports=JSON.parse('{"b":"javascript-fun","c":"1.3.2","a":"im6"}')},function(t,e,n){t.exports={header:"_1l6ve",type:"PnrWH"}},function(t,e,n){ +!function(){var t={637:function(t){t.exports={footer:"PsTLU"}},23:function(t){t.exports={corner:"_306MB",link:"_222UC",octoArm:"_1W8MA","octocat-wave":"_1SnV-"}},954:function(t){t.exports={header:"_1l6ve",type:"PnrWH"}},14:function(t){t.exports={menubar:"_3zRib",success:"_3zKm-"}},86:function(t){t.exports={left:"_39cf6",right:"_1UspK"}},126:function(t){t.exports={gitColor:"_13D9u",webColor:"_2J_Pw",title:"_18Za6"}},8:function(t){t.exports={box:"_2MA6B"}},818:function(t){t.exports={main:"SuvIl"}},614:function(t){ /*! * * typed.js - A JavaScript Typing Animation Library @@ -8,4 +8,4 @@ * License(s): MIT * */ -var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nt.length)););var u=t.substring(0,e),c=t.substring(u.length+1,e+s),l=t.substring(e+s+1);t=u+c+l,s--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,s),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var r=t.substr(0,e);this.replaceText(r),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=i.htmlParser.backSpaceHtmlChars(t,e,n);var r=t.substr(0,e);if(n.replaceText(r),n.smartBackspace){var s=n.strings[n.arrayPos+1];s&&r===s.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,s=Object.assign||function(t){for(var e=1;e":";";t.substr(e+1).charAt(0)!==s&&!(1+ ++e>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if(">"===r||";"===r){var s="";for(s=">"===r?"<":"&";t.substr(e-1).charAt(0)!==s&&!(--e<0););e--}return e}}]),t}();e.default=r;var s=new r;e.htmlParser=s}])},t.exports=r()},function(t,e,n){},function(t,e,n){t.exports={menubar:"_3zRib",success:"_3zKm-"}},function(t,e,n){t.exports={footer:"PsTLU"}},function(t,e,n){t.exports={corner:"_306MB",link:"_222UC",octoArm:"_1W8MA","octocat-wave":"_1SnV-"}},function(t,e,n){t.exports={left:"_39cf6",right:"_1UspK"}},function(t,e,n){t.exports={gitColor:"_13D9u",webColor:"_2J_Pw",title:"_18Za6"}},function(t,e,n){t.exports={main:"SuvIl"}},function(t,e){var n,r,s=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,c=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&h())}function h(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++p1)for(var n=1;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)););var u=t.substring(0,e),c=t.substring(u.length+1,e+r),l=t.substring(e+r+1);t=u+c+l,r--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,r),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),s)}),s):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var s=t.substr(0,e);this.replaceText(s),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var s=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=i.htmlParser.backSpaceHtmlChars(t,e,n);var s=t.substr(0,e);if(n.replaceText(s),n.smartBackspace){var r=n.strings[n.arrayPos+1];r&&s===r.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),s)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,r=Object.assign||function(t){for(var e=1;e":";";t.substr(e+1).charAt(0)!==r&&!(1+ ++e>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var s=t.substr(e).charAt(0);if(">"===s||";"===s){var r="";for(r=">"===s?"<":"&";t.substr(e-1).charAt(0)!==r&&!(--e<0););e--}return e}}]),t}();e.default=s;var r=new s;e.htmlParser=r}])},t.exports=e()},306:function(t){"use strict";t.exports=JSON.parse('{"name":"javascript-fun","version":"1.4.0","description":"source code generator for javascript.fun","scripts":{"daily":"yarn collect && yarn render && yarn cp","lint":"eslint ./webpack ./src","test":"jest --coverage","dev":"webpack --config ./webpack/develop.js","build":"webpack --config ./webpack/production.js","web":"node ./dist/node/server.js","render":"node ./dist/node/render.js","collect":"node -r dotenv/config dist/node/collect.js","cp":". ./cp.sh"},"repository":"git+https://github.com/im6/javascript-fun.git","author":"im6","license":"ISC","bugs":{"url":"https://github.com/im6/javascript-fun/issues"},"homepage":"https://github.com/im6/javascript-fun#readme","dependencies":{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.5","@testing-library/react":"^11.2.1","async":"^3.2.0","autoprefixer":"^10.0.2","babel-loader":"^8.2.1","cheerio":"^1.0.0-rc.3","classnames":"^2.2.6","clean-webpack-plugin":"^3.0.0","css-loader":"^5.0.1","dotenv":"^8.2.0","eslint":"^7.13.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.3","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.21.5","express":"^4.17.1","jest":"^26.6.3","less":"^3.12.2","less-loader":"^7.1.0","lodash.groupby":"^4.6.0","lodash.orderby":"^4.6.0","mini-css-extract-plugin":"^1.3.1","mysql":"^2.18.1","node-fetch":"^2.6.1","numeral":"^2.0.6","optimize-css-assets-webpack-plugin":"^5.0.4","postcss":"^8.1.8","postcss-loader":"^4.1.0","prettier":"^2.1.2","progress":"^2.0.3","purecss":"^2.0.3","react":"^17.0.1","react-dom":"^17.0.1","typed.js":"^2.0.11","webpack":"^5.6.0","webpack-cli":"^4.2.0","webpack-node-externals":"^2.5.2"},"browserslist":["defaults","cover 99.5%"],"prettier":{"endOfLine":"auto","trailingComma":"es5","tabWidth":2,"semi":true,"singleQuote":true},"eslintConfig":{"extends":["airbnb","prettier"],"plugins":["react","jsx-a11y","import","prettier","jest"],"env":{"browser":true,"jest/globals":true}},"babel":{"presets":["@babel/preset-env",["@babel/preset-react",{"runtime":"automatic"}]]},"jest":{"verbose":false,"clearMocks":true,"moduleDirectories":["node_modules"],"moduleNameMapper":{"\\\\.(css|less)$":"/src/testing/styleMock.js"},"coverageDirectory":"coverage","coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":-10}}}}')}},e={};function n(s){if(e[s])return e[s].exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,n),r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=n(614),e=n.n(t),s=(n(14),n(637),n(23),n(86),n(126),n(818),n(306)),r=s.name,i=s.author,o=s.version,a="".concat(i,"/").concat(r),u="dist/public",c=("https://cdn.jsdelivr.net/gh/".concat(a,"@v").concat(o,"/").concat(u),"//dkny.oss-cn-hangzhou.aliyuncs.com/1/icons"),l=("".concat(c,"/deno.svg"),"".concat(c,"/deno-fav.png"),"".concat("https://github.com","/").concat(a)),p=[((new Date).getFullYear()+((new Date).getMonth()<11?0:1)).toString(),"Developer","Designer","Architect","Beginner","Fun!"],h=[["#7bd0ff","#F38181"],["#e8ec8b","#57cc9d"],["#EAFFD0","#a7e5e4"],["#ffb077","#b0cadb"]],f=([{to:"/",img:"vue.svg",title:"Front End",alt:"framework",asset:"main"},{to:"/node/",img:"deno.svg",title:"Node.js",alt:"node",asset:"main"},{to:"/library/",img:"vscode.svg",title:"Miscellaneous",alt:"library",asset:"main"},{to:"/site/",img:"javascript.svg",title:"Website",alt:"site",asset:"site"},{to:"".concat(l,"/issues/5"),img:"fa-plus-wht.svg",title:"Submit Github Link",alt:"add"}].reduce((function(t,e,n){return t[e.to]=e,t[e.to].link=n+1,t}),{}),"".concat(u,"/main.css"),"".concat(u,"/site.css"),n(954));function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],s=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(n.push(o.value),!e||n.length!==e);s=!0);}catch(t){r=!0,i=t}finally{try{s||null==a.return||a.return()}finally{if(r)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,s=new Array(e);n