-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
1 lines (1 loc) · 31 KB
/
index.html
1
<!DOCTYPE html><html><head><title>C-Tone Homepage</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="about,homepage"><meta name="keywords" content="junjia.njj,yi.ou,emacs,java,c,c++,js,javascript,node,libuv,jvm,spring"><meta name="apple-mobile-web-app-title" content="C-Tone | Homepage"><link rel="icon" href="/favicon.ico" type="image/x-icon"><link rel="apple-touch-icon-precomposed" href="/static/img/eular_format_128.png"><style>@charset "UTF-8";/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */button{-webkit-appearance:button;text-transform:none;overflow:visible;margin:0;font:inherit}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.disabled,.btn[disabled],fieldset[disabled]{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.form-horizontal{display:block}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.hidden{display:none}/*! * animate.css -http://daneden.me/animate * Version - 3.5.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2016 Daniel Eden */.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.bounceIn,.animated.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn;-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp;-webkit-animation-delay:.1s;animation-delay:.1s}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}body{// background:#fafafa!important;overflow-x:hidden;font-family:BlinkMacSystemFont,"PingFang SC","Segoe UI","Microsoft YaHei",Ubuntu,Roboto,Oxygen,Cantarell,"Open Sans","Helvetica Neue",sans-serif;letter-spacing:0;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on;color:rgba(0,0,0,.8);font-size:16px;line-height:1.4;position:relative;transition:background 1s ease .2s}a{font-size:1.125em;font-family:inherit}nav{text-align:center;width:767px;margin:16px auto}nav a{margin:auto 10px;text-transform:uppercase;font-family:Georgia,Times New Roman,Times,serif}.formula{font-family:Georgia,Times New Roman,Times,serif;font-style:italic}#banner-wrapper img{max-width:424px}#banner-wrapper p{text-align:center;margin:0}#banner-wrapper .lambda{color:rgba(0,0,0,.8);text-decoration:none;cursor:default}.blink-wrapper{text-align:center;font-size:16px;font-size:15em;margin:0;max-height:449px}#question{text-align:center;font-size:16px;margin:20px auto}#question .formula,#question p:not(.play-area-tips){font-size:3em;margin:10px 0}#question p:nth-child(4){font-size:2em}#question .formula a{color:#191919;text-decoration:none;font-family:inherit}#question form button,#question form input{font-size:2em;width:50%;text-align:center}#question form input{padding:12px 10px;margin:10px auto}#about p,nav a span{display:none}nav a{text-decoration:none}nav a svg{width:32px;height:32px}#play-area{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9}.play-area-tips{display:block;text-align:center;margin-top:15%;position:absolute;width:100%;font-size:30px;z-index:-1}#custom-search{width:100%;max-width:960px;margin:0 auto;margin-top:30px}#custom-search .gsc-table-result b{background-color:#ff0}#tags-cloud{background:#fafafa;max-width:700px;margin:0 auto;word-break:break-all;word-break:break-word;padding:10px 0}#tags-cloud .tag-list a{color:#000;text-decoration:none}#tags-cloud .post-list a{color:#000}#links-table{margin:12px auto;width:700px;word-break:break-word}.article-list{list-style-type:none;padding:0}.article-list .title{text-decoration:none;color:rgba(0,0,0,.8);font-size:29px;margin-left:-1.81px;line-height:1.04;letter-spacing:-.028em}.article-list .meta{margin:14px auto;color:rgba(0,0,0,.44);font-size:14px}.article-list .meta p{margin:0;display:inline-block}.article-list .meta p:first-child{margin-right:16px}.article-list li{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.09);border-radius:3px;border-bottom:none;margin-bottom:10px;margin-right:auto;margin-left:auto;padding-right:20px;padding-left:20px;padding-top:10px;padding-bottom:15px;max-width:660px;position:relative}.article-list .year-split{font-size:2em;color:#000;text-align:center;background:#fafafa;border:0;box-shadow:0 0 #fafafa}.article-list .year-split span{border-bottom:4px solid #000}.article-list .article{border-left:4px solid #191919}.article-list .article:after{content:"文";position:absolute;top:4px;right:4px;font-size:16px;color:#dcdcdc}.article-list .translation{border-left:4px solid #ED462F}.article-list .translation:after{content:"譯";position:absolute;top:4px;right:4px;font-size:16px;color:#dcdcdc}.tags{font-size:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;letter-spacing:0;font-weight:400;font-style:normal}.tags a{border:none;color:rgba(0,0,0,.6);background:rgba(0,0,0,.05);font-weight:400;font-style:normal;color:rgba(0,0,0,.44);font-size:13px;letter-spacing:0;line-height:22px;text-decoration:none;background:#fafafa;border-radius:3px;border:1px solid #f0f0f0;padding:5px 10px;display:inline-block;margin-right:8px;margin-bottom:8px}.tags a:hover{background:rgba(0,0,0,.1);color:rgba(0,0,0,.6);border-color:rgba(0,0,0,.15);text-decoration:none;cursor:pointer}#go-tips{display:none;width:100%;height:100%;text-align:center;position:fixed;z-index:12;top:0;left:0;margin:0 auto;padding-top:15%;background:#e6b8b8;word-break:break-word;opacity:.96}#go-tips .close{position:absolute;top:16px;right:20px}.return{position:fixed;right:20px;top:10px;width:32px;height:32px;opacity:.3;cursor:pointer;z-index:9}.return:hover{opacity:1}.return:after,.return:before{position:absolute;left:15px;content:' ';height:24px;width:4px;background-color:#333}.return:before{transform:rotate(45deg)}.return:after{transform:rotate(-45deg)}@media all and (max-width:767px){nav{width:100%}nav a{margin:auto 8px}#banner-wrapper img{width:81%;margin-top:2%}.blink-wrapper{font-size:10em}.play-area-tips{margin-top:30px;font-size:24px}.article-list .meta{margin:10px auto}}</style></head><body><noscript><p style="text-align:center">Oops. Your browser does not support JavaScript! So, there is nothing here.</p></noscript><nav class="nav"><a id="about" href="/static/about.html" title="About" style="color:#ED462F"><div style="font-size:50px;display:inline">♥</div><p style="margin:0">Ab<span style="color:#ED462F;font-size:18px;display:inline">♥</span>ut</p></a><a id="search" href="/search.html" data-src="#!/search" title="Search" style="color:#4285f4"><svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.000000 64.000000"><g transform="translate(0.000000,64.000000) scale(0.100000,-0.100000)" fill="#4285f4" stroke="none"><path d="M171 623 c-94 -33 -171 -145 -171 -248 0 -109 80 -219 181 -249 69 -21 97 -20 171 5 l61 20 73 -78 72 -78 28 15 c16 9 35 28 44 43 15 26 14 27 -63 105 l-78 78 16 43 c33 94 14 196 -49 268 -74 85 -181 113 -285 76z m162 -87 c96 -40 133 -170 73 -259 -95 -141 -316 -72 -316 99 1 126 126 209 243 160z"/></g></svg><span>Search</span></a><a id="rss" href="/static/rss2.xml" title="RSS" style="color:#fbbc05"><svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.000000 64.000000"><g transform="translate(0.000000,64.000000) scale(0.100000,-0.100000)" fill="#fbbc05" stroke="none"><path d="M140 561 l0 -60 38 -6 c58 -10 121 -32 168 -60 82 -48 144 -159 144 -257 l0 -38 60 0 c59 0 60 1 60 28 0 49 -29 151 -61 213 -68 136 -185 213 -356 233 l-53 7 0 -60z"/><path d="M140 322 c0 -59 1 -61 29 -67 38 -8 79 -49 83 -83 3 -25 6 -27 61 -30 55 -3 57 -2 57 21 0 34 -25 101 -50 135 -28 37 -85 69 -138 78 l-42 7 0 -61z"/><path d="M46 174 c-46 -46 -31 -114 29 -140 59 -24 119 17 119 83 0 74 -94 111 -148 57z"/></g></svg><span>RSS</span></a><a id="archive-nav" href="/static/html/archive.html" data-src="#!/archive" title="Archive"><svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.000000 64.000000"><g transform="translate(0.000000,64.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M24 606 c-3 -7 -4 -40 -2 -72 l3 -59 289 -3 c225 -2 291 1 298 10 12 20 9 113 -4 126 -19 19 -577 17 -584 -2z"/><path d="M44 427 c-2 -7 -3 -100 -2 -207 l3 -195 270 0 270 0 3 208 2 207 -270 0 c-211 0 -272 -3 -276 -13z"/></g></svg><span>Archive</span></a><a id="works" href="/static/html/wiki/works.html" title="Works"><svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.000000 64.000000"><g transform="translate(0.000000,64.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M482 628 c-7 -7 -12 -37 -12 -68 l0 -55 -115 -115 c-109 -108 -114 -115 -98 -132 16 -18 22 -14 132 96 l116 115 59 3 c43 2 62 8 70 20 9 15 0 28 -54 83 -67 67 -78 73 -98 53z"/><path d="M77 281 c-86 -88 -90 -103 -64 -205 13 -48 15 -50 63 -63 102 -26 117 -22 205 64 l79 77 -37 38 c-20 21 -41 38 -46 38 -4 0 -29 -14 -53 -31 -25 -17 -48 -29 -51 -26 -3 3 9 26 26 51 17 24 31 49 31 53 0 5 -17 26 -38 46 l-38 37 -77 -79z"/></g></svg><span>Works</span></a><a id="friends" href="/static/html/wiki/friends.html" title="Friends"><svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.000000 64.000000"><g transform="translate(0.000000,64.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M212 624 c-32 -22 -30 -76 3 -102 l25 -20 -31 -12 c-45 -19 -80 -71 -81 -119 -1 -66 22 -107 55 -102 4 0 7 -34 7 -77 l0 -77 -36 -23 c-45 -29 -43 -58 4 -56 23 2 33 -3 38 -18 4 -13 13 -18 27 -16 18 2 23 11 25 46 2 23 7 42 11 42 4 0 20 11 35 25 26 24 26 25 26 170 l0 145 40 0 c51 0 100 24 100 49 0 25 -21 32 -45 15 -24 -18 -93 -17 -125 1 -22 12 -23 14 -7 20 10 4 24 19 32 34 10 18 14 21 15 9 0 -9 11 -26 25 -36 23 -18 24 -21 8 -25 -12 -3 -8 -5 10 -6 15 0 27 3 27 8 0 5 9 12 19 16 10 3 24 19 31 36 11 27 10 34 -7 57 -11 15 -30 28 -42 30 -28 4 -71 -23 -71 -46 0 -12 -7 -8 -26 16 -28 35 -57 41 -92 16z"/><path d="M443 441 c-12 -10 -43 -22 -68 -25 l-45 -7 0 -200 c0 -169 2 -201 15 -205 8 -4 22 -1 30 6 12 10 18 10 30 0 8 -7 22 -10 30 -6 12 4 15 29 15 136 0 119 2 131 17 128 22 -4 53 54 53 97 0 30 -33 95 -47 95 -5 -1 -18 -9 -30 -19z"/></g></svg><span>Friends</span></a></nav><div id="banner-wrapper"><p class="blink-wrapper"><a class="lambda" href="javascript:void(0)">λ</a></p><p class="blink" data-frequency="700" style="margin:0;display:none">Octocat is on the way...</p><p></p></div><article id="play-area" class="hidden"></article><div id="go-tips"><div class="message"></div><div class="timeout"></div><div class="tools"><p class="reload"><a href="javascript: void(0)" onclick="location.reload()">Reload</a></p></div><div class="close"><a href="javascript: void(0)">Close</a></div></div></body><script>"use strict";function IntervalTimer(e){var t,n=0;return e||(e=1e3),{start:function(o){return isNaN(o.count)&&o.count>0?void console.log("[IntervalTimer] The count is invalid. Count: ",o.count):void(t=setInterval(function(){n+=1,n>o.count?(this.stop(),"function"==typeof o.end&&o.end()):"function"==typeof o.every&&o.every()}.bind(this),e))},stop:function(){clearInterval(t),n=0}}}function sendTiming(e,t){ga("send","timing","homepage",e,t.toFixed(2))}function sendException(e,t){ga("send","exception",{exDescription:e,exFatal:t||!1})}function sendAnswer(e,t){ga("send","event","Question:"+e,"answer",t)}window.console=window.console||function(){var e={};return e.log=e.warn=e.debug=e.info=e.error=e.time=e.dir=e.profile=e.clear=e.exception=e.trace=e.assert=function(){},e}(),window.performance=window.performance||function(){return{}}(),!function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","UA-38213594-1","auto",{siteSpeedSampleRate:100}),ga(function(e){var t=e.get("clientId");console.log("Hi, you have connected with Google successfully."),console.log("Your CLIENT ID: "+t)});var e=document.createElement("script");e.async=!0,e.src="//www.google-analytics.com/analytics.js",document.getElementsByTagName("body")[0].appendChild(e)}(),function(e){function t(t,n,o){function a(t,n){e.addEventListener?this.addEventListener(t,n,!1):e.attachEvent?this.attachEvent("on"+t,n):this["on"+t]=n}a.call(t,n,o)}function n(t,n,o){function a(t,n){e.removeEventListener?this.removeEventListener(t,n,!1):e.detachEvent?this.detachEvent("on"+t,n):null}a.call(t,n,o||function(){})}function o(e){function t(t){t||(n=Object.keys(e).map(function(t){return{test:new RegExp(t,"i"),cb:e[t]}}))}var n,o;return t(),{test:function(){var e=n.map(function(e){var t=location.hash.slice(2);return!!e.test.test(t)&&(console.log("[Router] Hited the target: "+e.test.toString()+". Go, Go, Go!"),e.cb.apply(e,[].concat(e.test.exec(t).slice(1),[o])),o=location.href,ga("set","page",t),ga("send","pageview"),!0)});e.indexOf(!0)<0&&(console.log("[Router] Error: cannot find the target: "+location.hash+"."),location.href="/404.html")}}}function a(){var e=["about","rss","works","friends"],n=document.querySelector("head"),o=(n.querySelector("title"),document.querySelector("body")),a=document.querySelector("nav"),s=r(o),l=document.querySelector("#play-area"),d=document.createElement("div");d.className="play-area-tips",l.appendChild(d);var m=document.createElement("a");m.onclick=function(e){e.preventDefault(),location.href="#!/home"},m.style.display="none",o.appendChild(m);var g=f(o,a),y={"show-banner":function(){a.className="bounceIn animated",g.className="bounceIn animated"},"hide-banner":function(){a.className="bounceOut animated",g.className="bounceOut animated"},"show-article":function(){l.style.backgroundColor="#fafafa",l.style.display="block",m.style.display="block",l.className="bounceInUp animated",m.className="return bounceInUp animated"},"hide-article":function(){l.style.backgroundColor="",l.className="bounceOutDown animated",m.className="return bounceOutDown animated"}},E={init:function(n){console.log("[Stage] Initializing..."),t(a,"click",function(t){var n=k(t.target),o=n?n.id:null;if(e.indexOf(o)>=0)t.preventDefault(),this.go(n.href);else{t.preventDefault();var a=n instanceof Element&&n.getAttribute("data-src");a?location.href=a:null}}.bind(this)),t(l,"click",function(e){var t=e.target;"title"===t.className&&"A"===t.nodeName&&t.href&&(e.preventDefault(),this.go(t.href))}.bind(this)),i(g.querySelector(".lambda")).start(),console.log("[Stage] Initialized finished. Call function::ready..."),"function"==typeof n&&n(),console.log("[Stage] Function::ready done."),performance.now&&(__timing.inited=performance.now(),sendTiming("DOMContentLoaded",__timing.DOMContentLoaded))},createElementWrapper:function(e){var t=document.createElement("div");t.id=e,t.innerHTML='<p class="play-area-tips">Preparing Drama - <span style="color:#4285f4;">'+e+"...</span></p>",t.flush=function(e){this.replaceChild(e,this.firstChild)},t.finish=function(t){if("loading"===this.getAttribute("data-status")){this.flush(t),this.setAttribute("data-status","loaded");var n=performance.now?performance.now():(new Date).getTime();__timing[e]||(__timing[e]=n-+this.getAttribute("data-start-time"),sendTiming(e,__timing[e]))}},l.appendChild(t);var n=performance.now?performance.now():(new Date).getTime();return t.setAttribute("data-start-time",n),t.setAttribute("data-status","loading"),t},show:function(e){var t=b.call(arguments,1);w.call(l.children,function(e){e.style.display="none"}),console.log("[Stage] Now, the drama is "+e),y["hide-banner"](),y["show-article"](),o.style.background="#fafafa",n.querySelector("title").innerHTML="C-Tone | "+e.slice(0,1).toUpperCase()+e.slice(1);var a=l.querySelector("#"+e);null===a&&(a=this.createElementWrapper(e)),a.style.display="block";try{this[e].apply(this,[a].concat(t))}catch(t){a.innerHTML='<p>Drama - <span style="color:#4285f4;">'+e+"</span> happend error: <strong>"+t.message+"</strong></p>",console.log("[Stage] when show the area: \n",t),sendException("[Stage] Show: "+t.message)}},hide:function(){d.style.display="none",o.style.background="",n.querySelector("title").innerHTML="C-Tone Homepage",y["show-banner"](),y["hide-article"](),setTimeout(function(){l.style.display="none",m.style.display="none"},1e3)},archive:function(e){p("/static/html/archive.html",function(t){var n=document.createElement("div");n.innerHTML=t;var o=n.querySelector(".article-list");n.querySelector(".special-list");e.finish(o),o.addEventListener("click",function(e){var t=e.target,n=t.tagName,o=t.className,a=t.getAttribute("href");"A"===n&&"tag-item"===o&&void 0!==typeof a&&(e.preventDefault(),location.href="#!/tags?tag="+a.replace(/\/search\?q=/,""))},!1)})},search:function(e,t){"loading"===e.getAttribute("data-status")?h(e,function(n,o){o.execute(t),e.finish(n)}):google.search.cse.element.getElement("standard0").execute(t)},tags:function(e,t){"loading"===e.getAttribute("data-status")?p("/static/html/tags.html",function(n){var o=document.createElement("div");o.id="tags-cloud",o.innerHTML=n,c(o,t),e.finish(o)}):c(e.firstChild,t)},me:function(e,t){var n=document.createElement("table"),o=v.call(Object.keys(t),function(e){return"<tr><td>"+e+'</td><td><a href="#!/go?name='+e+'">'+t[e]+"</a></td></tr>"}).join("");n.id="links-table",n.innerHTML='<table><caption><a href="/static/about.html">About</a> me</caption><thead><tr><th>Name</th><th>Link</th></tr></thead><tbody>'+o+"</tbody></table>",e.finish(n)},question:function(e){var n=document.createElement("div");if(T.get("answer")===!0)n.innerHTML='<div style="margin-top: 20%;font-weight: 600;"><p style="font-size: 26px;">🎉Congratulation🎉</p><p style="font-size: inherit;">You have had an octocat :)</p><p style="font-size: inherit; font-weight: 400;"><a href="#!/question?action=change">Change?</a></p></div>',"loading"===e.getAttribute("data-status")?e.finish(n):e.flush(n);else{var o="/static/questions/",a=1;p(o+a+".html",function(i){function r(){var e=u.disabled;u.disabled=!e,d.disabled=!e,d.innerHTML=e?"Submit":"Calculating..."}n.innerHTML=i;var c=n.querySelector("form"),s=c.nextElementSibling,l=new Worker(o+a+".js"),u=c.elements.answer,d=c.elements.submit;l.onmessage=function(e){e.data.result===!0?(T.set("answer",!0),location.href="#!/home",sendAnswer(a,"true")):(s.innerHTML='<strong style="color:#ED462F; font-size: 20px;">Oops! Wrong.</strong>',T.set("answer",!1),sendAnswer(a,"false:"+e.data.answer)),r()},l.onerror=function(e){s.innerHTML='<strong style="color:#ED462F;font-size: 20px;">I am crashed because of your browser. XD</strong>',console.log("[Question] Worker: "+e.message),sendException("[Question] Worker:"+e.message)},t(u,"input",function(){s.innerHTML="<span>😵</span>"}),c.onsubmit=function(e){e.preventDefault(),r(),l.postMessage({answer:u.value})},"loading"===e.getAttribute("data-status")?e.finish(n):e.flush(n)}.bind(this))}},go:function(e,t){if(e){s("<p>You will go to</p><p><strong>"+e+"</strong></p>",{timeout:60,action:"timeout"});var n=document.createElement("a");n.href=e,n.hostname&&n.hostname!==location.hostname&&ga("send","event","Outbound Link","click",e,{transport:"beacon"}),location.href=e}else s("<p>I don't know where to go.</p>")},eggshell:function(){var e=document.querySelector("#banner-wrapper a");e&&(e.href="javascript: void(0)",e.style.cursor="default"),u(o)}};return E}function i(e){function o(e,t,n,o){t.innerHTML=n,t.style.color=o,e.style.color=o}function a(e){e.preventDefault(),r<c?(r+=1,o(this,i,r,r<u.length?u[r]:u[u.length-1])):(location.href="#!/question",f.stop())}var i,r=0,c=+(100*Math.random()%12+4).toFixed(0),s="0,0,0",l="53,122,232",u=[];i=e.appendChild(document.createElement("span"));var d=i.style;d.position="absolute",d.fontSize="0.5em",i.setAttribute("data-origin-color",d.color),!function(e,t,n,o){for(var a=e.split(",").map(function(e){return+e}),i=t.split(",").map(function(e){return+e}),r=+((i[0]-a[0])/n).toFixed(0),c=+((i[1]-a[1])/n).toFixed(0),s=+((i[2]-a[2])/n).toFixed(0),l=0;l<n;l++)o.push("rgba("+[r*l+a[0],c*l+a[1],s*l+a[2]].join(",")+", 0.8)")}(s,l,c,u);var f={start:function(){t(e,"click",a)},stop:function(){n(e,"click",a),f.clear()},clear:function(){o(e,i,r,i.getAttribute("data-origin-color")),ga("send","event","Lambda","click",r),r=0}};return f}function r(e){var n=e.querySelector("#go-tips"),o=n.children[0],a=n.children[1],i=n.children[2],r=n.children[3],c=IntervalTimer(1e3);return t(r,"click",function(e){e.preventDefault(),c.stop(),n.style.display="none"}),function(e,t){var r=t||{},s=r.timeout||3,l=r.action||"disappear";n.style.display="block",o.innerHTML=e,a.innerHTML=s+"s...",i.querySelector(".reload").style.display="none",c.start({every:function(){s-=1,a.innerHTML=s+"s..."},end:function(){switch(l){case"timeout":i.querySelector(".reload").style.display="block";break;case"disappear":default:n.style.display="none","function"==typeof r.end&&r.end()}},count:s})}}function c(e,t){var n,o=e.children[1];t?(o.style.display="block",w.call(o.children,function(e){n=e.getAttribute("data-tags"),n.split(",").indexOf(decodeURIComponent(t))>=0?e.style.display="":e.style.display="none"})):o.style.display="none"}function s(){var e;try{e=JSON.parse(localStorage.getItem("c-tone"))||{}}catch(t){e={}}return{get:function(t){var n=e[t];return n},set:function(t,n){e[t]=n,localStorage.setItem("c-tone",JSON.stringify(e))}}}function l(t,n,o){var a=o.t,i=o.f;if(void 0!==a&&void 0!==i){var r="https://octodex.github.com/images/"+i,c=document.createElement("img");if(performance.now)var s=performance.now();c.style.display="none",c.onload=function(){if(performance.now){var t=performance.now();__timing.octocat=t-s}n.style.textAlign="center",n.innerHTML='<img src="'+r+'" alt="'+a+'" /><p><a href="https://github.com/" alt="Check me out on :octocat:" title="Check me out on :octocat:">'+a+"</a></p>",clearInterval(e.blinkTimer),sendTiming("octocat",__timing.octocat)},c.onerror=function(){n.children[1].innerHTML="Octocat may be taken by aliens. Sad :(",console.log("[Octocat] Load the image of octocat failed!"),clearInterval(e.blinkTimer),sendException("[Octocat] Load: the image of octocat::"+a+" was failed.")},t.appendChild(c),c.src=r}}function u(t){var n=document.getElementById("banner-wrapper"),o=n.children[1];o.style.display="block",o.className="blink",o.setAttribute("data-frequency",700),d(n.getElementsByClassName("blink")[0]);var a;if(T&&"function"==typeof T.get&&(a=T.get("octocat")),a)l(t,n,a);else{var i=performance.now(),r=document.createElement("script");r.async=!0,r.onload=function(){var a=performance.now();__timing.octodex=a-i,o.className="";var r=e.octodex;if(!r)return void(o.innerHTML="I cannot load the octodex db.");var c=r.length,s=r[Math.round(1e4*Math.random(c)%c)];return s?(T.set("octocat",s),ga("send","event","Random","octocat",s.f.split(".")[0]),l(t,n,s),void sendTiming("octodex",__timing.octodex)):void(o.innerHTML="Now, I want to load ")},r.onerror=function(){clearInterval(e.blinkTimer),sendException("[Octodex] Load: Get the octodex file failed.")},t.appendChild(r),r.src="/static/octodex-data.js"}}function d(t){var n=parseInt(t.getAttribute("data-frequency"),10);isNaN(n)&&(n=700),t.style.display="",n>0&&e.blinkTimer&&clearInterval(e.blinkTimer),e.blinkTimer=setInterval(function(t){return t?void(""===t.style.visibility||"visible"===t.style.visibility?t.style.visibility="hidden":t.style.visibility="visible"):void clearInterval(e.blinkTimer)},n,t)}function f(e,t){var n,o=document.querySelector("#banner-wrapper");return T&&(n=T.get("octocat"))&&(d(o.getElementsByClassName("blink")[0]),l(e,o,n)),o}function m(e){var t=new XMLHttpRequest;return t?(t.onreadystatechange=function(){try{t.readyState===XMLHttpRequest.DONE&&(200===t.status?"function"==typeof e.success&&e.success(t.responseText):"function"==typeof e.fail&&e.fail(t))}catch(n){throw"function"==typeof e.error&&e.error(t,n),console.error(n),sendException("[HTTP Request] Readystatechange: "+n.message),n}},t.open(e.type,e.url),void t.send()):(console.error("[Loader] Giving up :( Cannot create an XMLHTTP instance"),!1)}function p(e,t){m({type:"GET",url:e,success:t})}function h(t,n){var o=document.createElement("div");o.id="custom-search",t.appendChild(o),e.__gcse={parsetags:"explicit",callback:function(){console.log("[GCSE] Google Custom Search Engine Loaded Over.");var e=google.search.cse.element.render({div:"custom-search",tag:"search"});"function"==typeof n&&n(o,e)}};var a="017951989687920165329:0e60irxxe5m",i=document.createElement("script"),r=document.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,r.parentNode.insertBefore(i,r),i.src="https://cse.google.com/cse.js?cx="+a}function g(){var n=a(),i={douban:"https://www.douban.com/people/creamidea/",github:"https://github.com/creamidea",zhihu:"https://www.zhihu.com/people/nekotrek",twitter:"https://twitter.com/creamidea",facebook:"https://www.facebook.com/creamidea","google-plus":"https://plus.google.com/u/0/106145678677607887880",about:"https://about.me/ice.cream",flickr:"https://www.flickr.com/people/85376793@N04/",xiami:"http://www.xiami.com/u/10429952"},r=o({"^/?$|^/home/?$":function(e){e&&(T&&T.get("answer")===!0&&n.eggshell(),n.hide())},"^/archive/?$":function(){n.show("archive")},"^/wiki/(.+)/?":function(e){var t="/static/html/wiki/"+e;history.pushState({},"",t),n.go(t)},"^/articles/(.+)/?":function(e){var t="/static/html/articles/"+e;n.go(t)},"^/search(?:\\?q=(.+))?$":function(e){n.show("search",e)},"^/tags(?:\\?tag=(.+))?":function(e){n.show("tags",e)},"^/me/?$":function(){n.show("me",i)},"^/go(?:\\?name=(.+))":function(e,t){var o;try{o=i[e]}catch(e){console.log("[Go] Don't know where to go. \n",e)}n.go(o,t)},"^/question(?:\\?action=(.+))?":function(t,o){return"change"===t?(T.set("answer",!1),T.set("octocat",null),void(location.href="#!/question")):void(e.Worker&&n.show("question"))}});n.init(function(){r.test(),t(e,"hashchange",function(e){r.test()})})}function y(){var e=document.createElement("div");e.innerHTML='<p>Oops! Your browser is too outmoded. Would you please try the lastest <a href="https://www.google.com/chrome/">Chrome</a>?</p><p>Or you can go <a href="https://github.com/creamidea/creamidea.github.com/tree/master/_content">here</a> or <a href="https://github.com/creamidea/creamidea.github.com/tree/master/_draft">here</a></p>',e.style.textAlign="center",document.getElementsByTagName("body")[0].appendChild(e)}var v=Array.prototype.map,b=(Array.prototype.filter,Array.prototype.slice),w=Array.prototype.forEach,k=(Array.prototype.shift,function(e){return"function"==typeof e.closest?e.closest("a"):"A"===e.tagName?e:"BODY"===e.tagName?null:k(e.parentNode)}),T=s();!function(){e.__timing={},performance.now&&(__timing.start=performance.now());for(var o=!1,a=["DOMContentLoaded","load"],i=0,r=a.length;i<r;i++){var c=a[i];!function(a){function i(){performance.now&&(__timing[a]=performance.now()),"load"===a&&console.log(__timing),o||(o=!0,"undefined"==typeof w?y():g(),n(e,a,i))}t(e,a,i,!1)}(c)}}()}(this)</script></html>