⬆️ vditor

This commit is contained in:
Van 2019-11-05 12:08:07 +08:00
parent 21c902d4c8
commit e55e26fdb7
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
70 changed files with 45 additions and 69 deletions

4
.gitignore vendored
View File

@ -1,3 +1 @@
**/node_modules/**
**/.DS_Store
.idea
**/.DS_Store

File diff suppressed because one or more lines are too long

0
9IPHP/css/fonts/icomoon.eot Executable file → Normal file
View File

0
9IPHP/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
9IPHP/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
9IPHP/css/fonts/icomoon.woff Executable file → Normal file
View File

0
9IPHP/css/selection.json Executable file → Normal file
View File

View File

@ -1 +1 @@
var Skin={_initCommon:function(i){var n=$("header .banner"),t=$("header .navbar");$(window).scroll(function(){if(125<$(window).scrollTop()?i.show():i.hide(),$(window).width()<701)return!1;$(window).scrollTop()>n.height()?(t.addClass("pin"),$(".main-wrap").parent().css("margin-top","81px"),$(".article__toc").css("position","fixed")):(t.removeClass("pin"),$(".main-wrap").parent().css("margin-top","0"),$(".article__toc").css("position","inherit"))}),$(window).scroll()},init:function(){this._initCommon($(".icon-up")),$(".navbar nav a").each(function(){this.href===location.href&&(this.className="current")}),$(".responsive .list a").each(function(){this.href===location.href&&$(this).parent().addClass("current")}),$(".responsive .icon-list").click(function(){$(".responsive .list").slideToggle()})},initToc:function(){var n=$(".article__toc");if(0===n.length)return!1;n.css({width:n.parent().width(),left:n.parent().offset().left}).find("a").click(function(){n.find("li").removeClass("toc--current"),$(this).parent().addClass("toc--current");var i=$(this).attr("href");setTimeout(function(){$(window).scrollTop($(i).offset().top-60)})})}};$(document).ready(function(){Skin.init()});
var Skin={_initCommon:function(i){var n=$("header .banner"),t=$("header .navbar");$(window).scroll((function(){if($(window).scrollTop()>125?i.show():i.hide(),$(window).width()<701)return!1;$(window).scrollTop()>n.height()?(t.addClass("pin"),$(".main-wrap").parent().css("margin-top","81px"),$(".article__toc").css("position","fixed")):(t.removeClass("pin"),$(".main-wrap").parent().css("margin-top","0"),$(".article__toc").css("position","inherit"))})),$(window).scroll()},init:function(){this._initCommon($(".icon-up")),$(".navbar nav a").each((function(){this.href===location.href&&(this.className="current")})),$(".responsive .list a").each((function(){this.href===location.href&&$(this).parent().addClass("current")})),$(".responsive .icon-list").click((function(){$(".responsive .list").slideToggle()}))},initToc:function(){var i=$(".article__toc");if(0===i.length)return!1;i.css({width:i.parent().width(),left:i.parent().offset().left}).find("a").click((function(){i.find("li").removeClass("toc--current"),$(this).parent().addClass("toc--current");var n=$(this).attr("href");setTimeout((function(){$(window).scrollTop($(n).offset().top-60)}))}))}};$(document).ready((function(){Skin.init()}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
var Skin={init:function(){$("#headerDown").click(function(){$("html, body").animate({scrollTop:$(window).height()},300)}),$(window).scroll(function(o){$(".fn__progress").attr("value",parseInt($(window).scrollTop())).attr("max",parseInt($("body").outerHeight()-$(window).height())),$(window).scrollTop()>$(window).height()/2-20?($(".side__menu").addClass("side__menu--edge"),$("#sideTop").removeClass("side__top--bottom")):($(".side__menu").removeClass("side__menu--edge"),$("#sideTop").addClass("side__top--bottom"))}),$(".side__menu").click(function(){$(".side__main").addClass("side__main--show").show()}),$(".side__bg, .side__close").click(function(){$(".side__main").removeClass("side__main--show"),setTimeout(function(){$(".side__main").hide()},1e3)}),$("#sideTop").click(function(){$(this).hasClass("side__top--bottom")?Util.goBottom():Util.goTop()});var o=0,e=$(".header__h1").text();document.addEventListener("visibilitychange",function(){o&&clearTimeout(o),o=document.hidden?setTimeout(function(){document.title="(◍´꒳`◍) - "+e},500):(document.title="(*´∇`*) 欢迎回来!",setTimeout(function(){document.title=e},1e3))},!1),new Ribbons({colorSaturation:"60%",colorBrightness:"50%",colorAlpha:.5,colorCycleSpeed:5,verticalPosition:"random",horizontalSpeed:200,ribbonCount:3,strokeSize:0,parallaxAmount:-.2,animateSections:!0}),1!==$("#comments").length&&($(window).scroll(),$(".header").circleMagic({clearOffset:.3,color:"rgba(255,255,255, .2)",density:.2,radius:15}))},initArticle:function(){page.share(),initCanvas("articleTop"),768<=$(window).width()?$(".post__toc").css({left:document.querySelector(".article__content").getBoundingClientRect().right+20,right:"auto",display:"block"}):$(".side__top--toc").click(function(){$(".post__toc").slideToggle()});var d=$(".vditor-reset [id^=b3_solo_h]"),l=$(".article__toc");l.find("a").click(function(o){var e=$(this).attr("href");return window.location.hash=e,$(window).scrollTop($(e).offset().top),$(window).width()<768&&$(".post__toc").slideToggle(),o.preventDefault(),o.stopPropagation(),!1}),$(window).scroll(function(o){if(0===$(".article__toc li").length)return!1;var e=[];d.each(function(o){e.push({id:this.id,offsetTop:$(this).offset().top})});for(var t=$(window).scrollTop()+10,i=0,n=e.length;i<n;i++)if(t<e[i].offsetTop){l.find("li").removeClass("current");var s=0<i?i-1:0;l.find('a[href="#'+e[s].id+'"]').parent().addClass("current");break}t>=e[e.length-1].offsetTop&&(l.find("li").removeClass("current"),l.find("li:last").addClass("current"))}),$(window).scroll()}};$(document).ready(function(){Skin.init()});
var Skin={init:function(){$("#headerDown").click((function(){$("html, body").animate({scrollTop:$(window).height()},300)})),$(window).scroll((function(o){$(".fn__progress").attr("value",parseInt($(window).scrollTop())).attr("max",parseInt($("body").outerHeight()-$(window).height())),$(window).scrollTop()>$(window).height()/2-20?($(".side__menu").addClass("side__menu--edge"),$("#sideTop").removeClass("side__top--bottom")):($(".side__menu").removeClass("side__menu--edge"),$("#sideTop").addClass("side__top--bottom"))})),$(".side__menu").click((function(){$(".side__main").addClass("side__main--show").show()})),$(".side__bg, .side__close").click((function(){$(".side__main").removeClass("side__main--show"),setTimeout((function(){$(".side__main").hide()}),1e3)})),$("#sideTop").click((function(){$(this).hasClass("side__top--bottom")?Util.goBottom():Util.goTop()}));var o=0,e=$(".header__h1").text();document.addEventListener("visibilitychange",(function(){o&&clearTimeout(o),document.hidden?o=setTimeout((function(){document.title="(\u25cd\xb4\ua4b3`\u25cd) - "+e}),500):(document.title="(*\xb4\u2207\uff40*) \u6b22\u8fce\u56de\u6765\uff01",o=setTimeout((function(){document.title=e}),1e3))}),!1),new Ribbons({colorSaturation:"60%",colorBrightness:"50%",colorAlpha:.5,colorCycleSpeed:5,verticalPosition:"random",horizontalSpeed:200,ribbonCount:3,strokeSize:0,parallaxAmount:-.2,animateSections:!0}),1!==$("#comments").length&&($(window).scroll(),$(".header").circleMagic({clearOffset:.3,color:"rgba(255,255,255, .2)",density:.2,radius:15}))},initArticle:function(){page.share(),initCanvas("articleTop"),$(window).width()>=768?$(".post__toc").css({left:document.querySelector(".article__content").getBoundingClientRect().right+20,right:"auto",display:"block"}):$(".side__top--toc").click((function(){$(".post__toc").slideToggle()}));var o=$(".vditor-reset [id^=b3_solo_h]"),e=$(".article__toc");e.find("a").click((function(o){var e=$(this).attr("href");return window.location.hash=e,$(window).scrollTop($(e).offset().top),$(window).width()<768&&$(".post__toc").slideToggle(),o.preventDefault(),o.stopPropagation(),!1})),$(window).scroll((function(t){if(0===$(".article__toc li").length)return!1;var i=[];o.each((function(o){i.push({id:this.id,offsetTop:$(this).offset().top})}));for(var n=$(window).scrollTop()+10,s=0,d=i.length;s<d;s++)if(n<i[s].offsetTop){e.find("li").removeClass("current");var l=s>0?s-1:0;e.find('a[href="#'+i[l].id+'"]').parent().addClass("current");break}n>=i[i.length-1].offsetTop&&(e.find("li").removeClass("current"),e.find("li:last").addClass("current"))})),$(window).scroll()}};$(document).ready((function(){Skin.init()}));

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
var Skin={init:function(){Util.initPjax()},initArticle:function(){page.share();var l=$(".vditor-reset [id^=b3_solo_h]"),s=$(".article__toc"),c=$(".article__progress");1===s.length&&(876<$(window).width()?$(".post__toc").css("left",$(".article .item__content").offset().left+$(".article .item__content").outerWidth()-80):$(".post__toc a").click(function(){$(".post__toc").hide()})),s.find("a").click(function(t){var o=$(this).attr("href");return window.location.hash=o,$(window).scrollTop($(o).offset().top-60),t.preventDefault(),t.stopPropagation(),!1}),$(window).unbind("scroll").scroll(function(t){if(0===c.length)return!1;if(c.attr("value",parseInt($(window).scrollTop())).attr("max",parseInt($("body").outerHeight()-$(window).height())),236<$(window).scrollTop()?$(".article__top").css("top",0):$(".article__top").css("top",-61),0===$(".article__toc li").length)return!1;876<$(window).width()&&(975<$(window).scrollTop()&&$(window).scrollTop()<$(".article").outerHeight()+100?$(".post__toc").show():$(".post__toc").hide());var o=[];l.each(function(t){o.push({id:this.id,offsetTop:$(this).offset().top})});for(var i=$(window).scrollTop(),e=0,r=o.length;e<r;e++)if(i<o[e].offsetTop-61){s.find("li").removeClass("current");var n=0<e?e-1:0;s.find('a[href="#'+o[n].id+'"]').parent().addClass("current");break}i>=o[o.length-1].offsetTop-61&&(s.find("li").removeClass("current"),s.find("li:last").addClass("current"))}),$(window).scroll()}};Skin.init();
var Skin={init:function(){Util.initPjax()},initArticle:function(){page.share();var t=$(".vditor-reset [id^=b3_solo_h]"),o=$(".article__toc"),i=$(".article__progress");1===o.length&&($(window).width()>876?$(".post__toc").css("left",$(".article .item__content").offset().left+$(".article .item__content").outerWidth()-80):$(".post__toc a").click((function(){$(".post__toc").hide()}))),o.find("a").click((function(t){var o=$(this).attr("href");return window.location.hash=o,$(window).scrollTop($(o).offset().top-60),t.preventDefault(),t.stopPropagation(),!1})),$(window).unbind("scroll").scroll((function(e){if(0===i.length)return!1;if(i.attr("value",parseInt($(window).scrollTop())).attr("max",parseInt($("body").outerHeight()-$(window).height())),$(window).scrollTop()>236?$(".article__top").css("top",0):$(".article__top").css("top",-61),0===$(".article__toc li").length)return!1;$(window).width()>876&&($(window).scrollTop()>975&&$(window).scrollTop()<$(".article").outerHeight()+100?$(".post__toc").show():$(".post__toc").hide());var r=[];t.each((function(t){r.push({id:this.id,offsetTop:$(this).offset().top})}));for(var n=$(window).scrollTop(),l=0,s=r.length;l<s;l++)if(n<r[l].offsetTop-61){o.find("li").removeClass("current");var c=l>0?l-1:0;o.find('a[href="#'+r[c].id+'"]').parent().addClass("current");break}n>=r[r.length-1].offsetTop-61&&(o.find("li").removeClass("current"),o.find("li:last").addClass("current"))})),$(window).scroll()}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@ -117,34 +117,6 @@ img {
height: 38px;
width: 14px;
}
input[type='button'] {
border-radius: 5px;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 0 2px rgba(255, 255, 255, 0.3) inset, 0 1px 2px rgba(0, 0, 0, 0.29);
background-color: #000000;
background-image: linear-gradient(top, #333333, #000000);
background-image: -moz-linear-gradient(top, #333333, #000000);
background-image: -ms-linear-gradient(top, #333333, #000000);
background-image: -o-linear-gradient(top, #333333, #000000);
background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#000000));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#000000');
border: 1px solid #000000;
color: white;
margin: 15px 0 0 200px;
padding: 7px 13px;
height: auto;
}
input[type='button']:hover {
background-color: #333333;
background-image: linear-gradient(top, #333333, #212121);
background-image: -moz-linear-gradient(top, #333333, #212121);
background-image: -ms-linear-gradient(top, #333333, #212121);
background-image: -o-linear-gradient(top, #333333, #212121);
background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#212121));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#212121');
}
.marginBottom40 {
margin-bottom: 40px;
}
@ -818,4 +790,4 @@ a.star-icon {
background-color: #B4D9E2;
}
}
}
}

File diff suppressed because one or more lines are too long

0
Finding/css/fonts/icomoon.eot Executable file → Normal file
View File

0
Finding/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
Finding/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
Finding/css/fonts/icomoon.woff Executable file → Normal file
View File

0
Finding/css/fonts/selection.json Executable file → Normal file
View File

View File

@ -1 +1 @@
var Finding={init:function(){Util.killIE(),this._initToc(),this.share(),$(".scroll-down").click(function(t){t.preventDefault();var n=$(this),e=$("html, body"),o=!!n.attr("data-offset")&&n.attr("data-offset"),i=parseInt(o);e.stop(!0,!1).animate({scrollTop:$(this.hash).offset().top+i},500)}),$("body").append('<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a><span class="menu-button icon-menu"><span class="word">Menu</span></span>'),$(".menu-button").click(function(t){t.stopPropagation(),$("body").toggleClass("nav-opened nav-closed")}),$(window).scroll(function(){$(window).scrollTop()>$(".main-header").height()?$(".icon-gotop").show():$(".icon-gotop").hide()})},_initToc:function(){0!==$(".article__toc li").length&&500<$(window).width()&&$("body").toggleClass("nav-opened nav-closed")},share:function(){var t=$(".share"),n=t.find(".icon-wechat"),e=n.data("url"),o=n.data("avatar"),i=encodeURIComponent(n.data("title")+" - "+n.data("blogtitle")),a=encodeURIComponent(e),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+a+"&pic="+o,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+i+"&pics="+o,s.twitter="https://twitter.com/intent/tweet?status="+i+" "+a,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===n.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){n.qrcode({width:128,height:128,text:e})}}):n.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Finding.init();
var Finding={init:function(){Util.killIE(),this._initToc(),this.share(),$(".scroll-down").click((function(t){t.preventDefault();var n=$(this),e=$("html, body"),o=!!n.attr("data-offset")&&n.attr("data-offset"),i=parseInt(o);e.stop(!0,!1).animate({scrollTop:$(this.hash).offset().top+i},500)})),$("body").append('<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a><span class="menu-button icon-menu"><span class="word">Menu</span></span>'),$(".menu-button").click((function(t){t.stopPropagation(),$("body").toggleClass("nav-opened nav-closed")})),$(window).scroll((function(){$(window).scrollTop()>$(".main-header").height()?$(".icon-gotop").show():$(".icon-gotop").hide()}))},_initToc:function(){0!==$(".article__toc li").length&&$(window).width()>500&&$("body").toggleClass("nav-opened nav-closed")},share:function(){var t=$(".share"),n=t.find(".icon-wechat"),e=n.data("url"),o=n.data("avatar"),i=encodeURIComponent(n.data("title")+" - "+n.data("blogtitle")),a=encodeURIComponent(e),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+a+"&pic="+o,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+i+"&pics="+o,s.twitter="https://twitter.com/intent/tweet?status="+i+" "+a,t.find("span").click((function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===n.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){n.qrcode({width:128,height:128,text:e})}}):n.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")}))}};Finding.init();

File diff suppressed because one or more lines are too long

0
Jane/css/fonts/icomoon.eot Executable file → Normal file
View File

0
Jane/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
Jane/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
Jane/css/fonts/icomoon.woff Executable file → Normal file
View File

0
Jane/css/fonts/selection.json Executable file → Normal file
View File

View File

@ -1 +1 @@
var Skin={initToc:function(){0<$(".article__toc li").length&&768<$(window).width()?($(".article__toc").css({right:"50px","border-right":"1px solid #fff",opacity:1}),$("#pjax.wrapper").css({"max-width":"968px","padding-right":"270px"})):$("#pjax.wrapper").removeAttr("style")},init:function(){Skin.initToc(),Util.initPjax(function(){$(".header a").each(function(){this.href===location.href?this.className="current vditor-tooltipped vditor-tooltipped__w":this.className="vditor-tooltipped vditor-tooltipped__w"}),Skin.initToc()}),$(".header a").each(function(){this.href===location.href&&(this.className="current vditor-tooltipped vditor-tooltipped__w")}).click(function(){$(".header a").removeClass("current"),this.className="current vditor-tooltipped vditor-tooltipped__w"})}};Skin.init();
var Skin={initToc:function(){$(".article__toc li").length>0&&$(window).width()>768?($(".article__toc").css({right:"50px","border-right":"1px solid #fff",opacity:1}),$("#pjax.wrapper").css({"max-width":"968px","padding-right":"270px"})):$("#pjax.wrapper").removeAttr("style")},init:function(){Skin.initToc(),Util.initPjax((function(){$(".header a").each((function(){this.href===location.href?this.className="current vditor-tooltipped vditor-tooltipped__w":this.className="vditor-tooltipped vditor-tooltipped__w"})),Skin.initToc()})),$(".header a").each((function(){this.href===location.href&&(this.className="current vditor-tooltipped vditor-tooltipped__w")})).click((function(){$(".header a").removeClass("current"),this.className="current vditor-tooltipped vditor-tooltipped__w"}))}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
var Skin={init:function(){var t=$(".article__toc");$(window).scroll(function(){1===t.length&&($(".article__bottom").offset().top<$(window).scrollTop()?t.hide():t.show()),0!==$("#headerNav").length&&(64<$(window).scrollTop()?($("#headerNav").addClass("header__nav--fixed"),$(".main").css("margin-top","100px")):($("#headerNav").removeClass("header__nav--fixed"),$(".main").css("margin-top","50px")))}),$(window).scroll(),Util.initPjax(function(){Util.parseMarkdown(),Util.isArticlePage(location.href)&&($("#articleSideShare .article__code").qrcode||$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0})),Skin.initToc()}),Skin.initToc()},initTags:function(){for(var t=$("#tags"),e=t.find(".tag"),i=parseInt(e.first().data("count")),o=Math.ceil(i/5),a=0;a<e.length;a++)for(var n=parseInt($(e[a]).data("count")),s=0;s<5;s++)if(s*o<n&&n<=(s+1)*o){e[a].className="tag tag__level"+s;break}t.html(e.get().sort(function(t,e){var i=$(t).text().toLowerCase(),o=$(e).text().toLowerCase();return i.localeCompare(o)}))},initArticle:function(){if(0!==$("#articleShare").length){Skin._share("#articleShare"),Skin._share("#articleSideShare"),Skin._share("#articleBottomShare");var i=$(".post__side");$(window).height()>=$(".post").height()&&i.css("opacity",1),i.css("left",($(".post").offset().left-20)/2-27+"px");var o=($(window).height()-249)/2+125,a=$(window).scrollTop();$(window).scroll(function(){if(0!==$("#articleShare").length){var t=$(window).scrollTop(),e=$(".article__bottom").offset().top;65<t?(i.css("opacity",1),0<a-t?($(".header").addClass("header--fixed").css({top:"0"}),$(".main").css("padding-top","64px"),$(window).height()<=$(".post").height()&&t<e-$(window).height()&&$(".article__toolbar").css({bottom:0,opacity:1})):a-t<0&&($(".header").css({top:"-64px"}).removeClass("header--fixed"),$(".main").css("padding-top","0"),$(".article__toolbar").css({bottom:"-44px",opacity:0}))):($(window).height()<=$(".post").height()&&i.css("opacity",0),$(".header").removeClass("header--fixed").css("top","-64px"),$(".main").css("padding-top","0")),t>e-$(window).height()?e<$(window).height()?i.css({position:"absolute",top:e-125+"px"}):i.css({position:"absolute",top:e-o+"px"}):i.css({position:"fixed",top:"50%"}),a=t}}),$(window).scroll()}},_share:function(t){var e=$(t),i=e.find(".article__code"),o=i.data("url"),a=i.data("avatar"),n=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),s=encodeURIComponent(o),r={};r.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+n+"&url="+s+"&pic="+a,r.weibo="http://v.t.sina.com.cn/share/share.php?title="+n+"&url="+s+"&pic="+a,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+s+"&sharesource=qzone&title="+n+"&pics="+a,r.twitter="https://twitter.com/intent/tweet?status="+n+" "+s,e.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?i.qrcode({width:128,height:128,text:o}):i.slideToggle(),!1):void window.open(r[t],"_blank","top=100,left=200,width=648,height=618")})},initToc:function(){0!==$(".article__toc").length&&1e3<$(window).width()?$(".article__toc").animate({left:$(".post").outerWidth()+$(".post").offset().left+"px"},600):$(".article__toc").hide()}};Skin.init();
var Skin={init:function(){var t=$(".article__toc");$(window).scroll((function(){1===t.length&&($(".article__bottom").offset().top<$(window).scrollTop()?t.hide():t.show()),0!==$("#headerNav").length&&($(window).scrollTop()>64?($("#headerNav").addClass("header__nav--fixed"),$(".main").css("margin-top","100px")):($("#headerNav").removeClass("header__nav--fixed"),$(".main").css("margin-top","50px")))})),$(window).scroll(),Util.initPjax((function(){Util.parseMarkdown(),Util.isArticlePage(location.href)&&($("#articleSideShare .article__code").qrcode||$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0})),Skin.initToc()})),Skin.initToc()},initTags:function(){for(var t=$("#tags"),e=t.find(".tag"),i=parseInt(e.first().data("count")),o=Math.ceil(i/5),a=0;a<e.length;a++)for(var n=parseInt($(e[a]).data("count")),s=0;s<5;s++)if(n>s*o&&n<=(s+1)*o){e[a].className="tag tag__level"+s;break}t.html(e.get().sort((function(t,e){var i=$(t).text().toLowerCase(),o=$(e).text().toLowerCase();return i.localeCompare(o)})))},initArticle:function(){if(0!==$("#articleShare").length){Skin._share("#articleShare"),Skin._share("#articleSideShare"),Skin._share("#articleBottomShare");var t=$(".post__side");$(window).height()>=$(".post").height()&&t.css("opacity",1),t.css("left",($(".post").offset().left-20)/2-27+"px");var e=($(window).height()-249)/2+125,i=$(window).scrollTop();$(window).scroll((function(){if(0!==$("#articleShare").length){var o=$(window).scrollTop(),a=$(".article__bottom").offset().top;o>65?(t.css("opacity",1),i-o>0?($(".header").addClass("header--fixed").css({top:"0"}),$(".main").css("padding-top","64px"),$(window).height()<=$(".post").height()&&o<a-$(window).height()&&$(".article__toolbar").css({bottom:0,opacity:1})):i-o<0&&($(".header").css({top:"-64px"}).removeClass("header--fixed"),$(".main").css("padding-top","0"),$(".article__toolbar").css({bottom:"-44px",opacity:0}))):($(window).height()<=$(".post").height()&&t.css("opacity",0),$(".header").removeClass("header--fixed").css("top","-64px"),$(".main").css("padding-top","0")),o>a-$(window).height()?a<$(window).height()?t.css({position:"absolute",top:a-125+"px"}):t.css({position:"absolute",top:a-e+"px"}):t.css({position:"fixed",top:"50%"}),i=o}})),$(window).scroll()}},_share:function(t){var e=$(t),i=e.find(".article__code"),o=i.data("url"),a=i.data("avatar"),n=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),s=encodeURIComponent(o),r={};r.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+n+"&url="+s+"&pic="+a,r.weibo="http://v.t.sina.com.cn/share/share.php?title="+n+"&url="+s+"&pic="+a,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+s+"&sharesource=qzone&title="+n+"&pics="+a,r.twitter="https://twitter.com/intent/tweet?status="+n+" "+s,e.find("span").click((function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?i.qrcode({width:128,height:128,text:o}):i.slideToggle(),!1):void window.open(r[t],"_blank","top=100,left=200,width=648,height=618")}))},initToc:function(){0!==$(".article__toc").length&&$(window).width()>1e3?$(".article__toc").animate({left:$(".post").outerWidth()+$(".post").offset().left+"px"},600):$(".article__toc").hide()}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
var goTop=function(e){e=e||.1;var a=$(window).scrollTop(),t=1+e;if(window.scrollTo(0,Math.floor(a/t)),0<a){var n="goTop("+e+")";window.setTimeout(n,16)}},collapseArchive=function(e,a){var t=!0;"collapse-ico"===e.className?(e.className="expand-ico",t=!1):e.className="collapse-ico",$("#archiveSide li").each(function(){$(this).data("year")===a&&(t?$(this).show():$(this).hide())})},getArticle=function(t,e){var n=$("#abstract"+e),i=$("#content"+e);return""===i.html()?$.ajax({url:"/get-article-content?id="+e,type:"GET",dataType:"html",beforeSend:function(){n.css("background","url(/skins/neoease/images/ajax-loader.gif) no-repeat scroll center center transparent")},success:function(e,a){t.className="collapse-ico",i.html(e),n.hide().css("background","none"),i.fadeIn("slow"),Util.parseLanguage(),Util.parseMarkdown()}}):"expand-ico"===t.className?(n.hide(),i.fadeIn(),t.className="collapse-ico"):(i.hide(),n.fadeIn(),t.className="expand-ico"),!1},goTranslate=function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)};$(document).ready(function(){$(window).scroll(function(){var e=$(window).scrollTop();if(182<e){var a=$(window).height(),t=e+a-21;$("body").height()-58<=e+a&&(t=$(".footer").offset().top-21),$("#goTop").fadeIn("slow").css("top",t)}else $("#goTop").hide()});var t=(new Date).getFullYear(),n=t;$("#archiveSide li").each(function(e){var a=$(this);a.data("year")!==t&&$(this).hide(),n!==a.data("year")&&(n=a.data("year"),a.before("<li class='archive-year'><div onclick='collapseArchive(this, "+n+")' class='expand-ico'>"+n+"&nbsp;年</div></li>"))}),$(".recent-comments .expand-ico").click(function(){"expand-ico"===this.className?($(this).parent().next().css({height:"auto","white-space":"normal"}),this.className="collapse-ico"):($(this).parent().next().animate({height:"18px"},function(){$(this).css("white-space","nowrap")}),this.className="expand-ico")}),$(".nav ul li").each(function(){$(this).find("a").attr("href")===Label.servePath+location.pathname?$(this).addClass("current"):/\/[0-9]+$/.test(location.pathname)&&($(".nav ul li")[0].className="current")}),Util.setTopBar(),Util.replaceSideEm($(".recent-comments-content")),Util.buildTags("tagsSide"),$(".recent-comments .recent-comments-main").each(function(){$(this).find(".recent-comments-content>a").height()<30?$(this).find(".expand-ico").remove():$(this).find(".expand-ico").parent().next().css({"white-space":"nowrap"})})});
var goTop=function(e){e=e||.1;var a=$(window).scrollTop(),t=1+e;if(window.scrollTo(0,Math.floor(a/t)),a>0){var n="goTop("+e+")";window.setTimeout(n,16)}},collapseArchive=function(e,a){var t=!0;"collapse-ico"===e.className?(e.className="expand-ico",t=!1):e.className="collapse-ico",$("#archiveSide li").each((function(){$(this).data("year")===a&&(t?$(this).show():$(this).hide())}))},getArticle=function(e,a){var t=$("#abstract"+a),n=$("#content"+a);return""===n.html()?$.ajax({url:"/get-article-content?id="+a,type:"GET",dataType:"html",beforeSend:function(){t.css("background","url(/skins/neoease/images/ajax-loader.gif) no-repeat scroll center center transparent")},success:function(a,i){e.className="collapse-ico",n.html(a),t.hide().css("background","none"),n.fadeIn("slow"),Util.parseLanguage(),Util.parseMarkdown()}}):"expand-ico"===e.className?(t.hide(),n.fadeIn(),e.className="collapse-ico"):(n.hide(),t.fadeIn(),e.className="expand-ico"),!1},goTranslate=function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)};$(document).ready((function(){$(window).scroll((function(){var e=$(window).scrollTop();if(e>182){var a=$(window).height(),t=e+a-21;$("body").height()-58<=e+a&&(t=$(".footer").offset().top-21),$("#goTop").fadeIn("slow").css("top",t)}else $("#goTop").hide()}));var e=(new Date).getFullYear(),a=e;$("#archiveSide li").each((function(t){var n=$(this);n.data("year")!==e&&$(this).hide(),a!==n.data("year")&&(a=n.data("year"),n.before("<li class='archive-year'><div onclick='collapseArchive(this, "+a+")' class='expand-ico'>"+a+"&nbsp;\u5e74</div></li>"))})),$(".recent-comments .expand-ico").click((function(){"expand-ico"===this.className?($(this).parent().next().css({height:"auto","white-space":"normal"}),this.className="collapse-ico"):($(this).parent().next().animate({height:"18px"},(function(){$(this).css("white-space","nowrap")})),this.className="expand-ico")})),$(".nav ul li").each((function(){$(this).find("a").attr("href")===Label.servePath+location.pathname?$(this).addClass("current"):/\/[0-9]+$/.test(location.pathname)&&($(".nav ul li")[0].className="current")})),Util.setTopBar(),Util.replaceSideEm($(".recent-comments-content")),Util.buildTags("tagsSide"),$(".recent-comments .recent-comments-main").each((function(){$(this).find(".recent-comments-content>a").height()<30?$(this).find(".expand-ico").remove():$(this).find(".expand-ico").parent().next().css({"white-space":"nowrap"})}))}));

File diff suppressed because one or more lines are too long

0
Pinghsu/images/ico.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -1 +1 @@
var Skin={init:function(){new Headroom($("header")[0],{tolerance:0,offset:70,classes:{initial:"header",pinned:"header--down",unpinned:"header--up",top:"header",notTop:"header",bottom:"header",notBottom:"header"}}).init(),Util.initPjax(function(){0===$(".post__fix").length?$("body").addClass("body--gray"):$("body").removeClass("body--gray"),$(".header__nav a").each(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")}),Skin._initToc()}),$(".header__nav a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})},_initToc:function(){if(0!==$(".article__toc").length){$(".post__toc").css("left",$(".post").offset().left+$(".post").outerWidth());var s=$(".vditor-reset [id^=b3_solo_h]"),r=$(".article__toc");$(window).unbind("scroll").scroll(function(t){if(0===$(".article__toc li").length)return!1;if(72<$(window).scrollTop()){$(".post__toc").show();var e=[];s.each(function(t){e.push({id:this.id,offsetTop:this.offsetTop})});for(var i=$(window).scrollTop(),n=0,o=e.length;n<o;n++)if(i<e[n].offsetTop-20){r.find("li").removeClass("current");var a=0<n?n-1:0;r.find('a[href="#'+e[a].id+'"]').parent().addClass("current");break}i>=e[e.length-1].offsetTop-20&&(r.find("li").removeClass("current"),r.find("li:last").addClass("current"))}else $(".post__toc").hide()}),$(window).scroll()}},_initShare:function(){var t=$(".post__share"),e=t.find(".post__code"),i=e.data("url"),n=e.data("avatar"),o=encodeURIComponent(e.data("title")+" - "+e.data("blogtitle")),a=encodeURIComponent(i),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+o+"&url="+a+"&pic="+n,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+o+"&pics="+n,s.twitter="https://twitter.com/intent/tweet?status="+o+" "+a,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===e.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){e.qrcode({width:128,height:128,text:i})}}):e.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})},initArticle:function(){new Headroom($(".post__fix")[0],{tolerance:0,offset:48,classes:{initial:"post__fix",pinned:"post__fix--pinned",unpinned:"post__fix--unpinned",top:"post__fix",notTop:"post__fix",bottom:"post__fix",notBottom:"post__fix"}}).init(),Skin._initShare(),Skin._initToc()}};Skin.init();
var Skin={init:function(){new Headroom($("header")[0],{tolerance:0,offset:70,classes:{initial:"header",pinned:"header--down",unpinned:"header--up",top:"header",notTop:"header",bottom:"header",notBottom:"header"}}).init(),Util.initPjax((function(){0===$(".post__fix").length?$("body").addClass("body--gray"):$("body").removeClass("body--gray"),$(".header__nav a").each((function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})),Skin._initToc()})),$(".header__nav a").each((function(){this.href===location.href&&(this.className="current")})).click((function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")}))},_initToc:function(){if(0!==$(".article__toc").length){$(".post__toc").css("left",$(".post").offset().left+$(".post").outerWidth());var t=$(".vditor-reset [id^=b3_solo_h]"),e=$(".article__toc");$(window).unbind("scroll").scroll((function(i){if(0===$(".article__toc li").length)return!1;if($(window).scrollTop()>72){$(".post__toc").show();var n=[];t.each((function(t){n.push({id:this.id,offsetTop:this.offsetTop})}));for(var o=$(window).scrollTop(),a=0,s=n.length;a<s;a++)if(o<n[a].offsetTop-20){e.find("li").removeClass("current");var r=a>0?a-1:0;e.find('a[href="#'+n[r].id+'"]').parent().addClass("current");break}o>=n[n.length-1].offsetTop-20&&(e.find("li").removeClass("current"),e.find("li:last").addClass("current"))}else $(".post__toc").hide()})),$(window).scroll()}},_initShare:function(){var t=$(".post__share"),e=t.find(".post__code"),i=e.data("url"),n=e.data("avatar"),o=encodeURIComponent(e.data("title")+" - "+e.data("blogtitle")),a=encodeURIComponent(i),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+o+"&url="+a+"&pic="+n,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+o+"&pics="+n,s.twitter="https://twitter.com/intent/tweet?status="+o+" "+a,t.find("span").click((function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===e.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){e.qrcode({width:128,height:128,text:i})}}):e.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")}))},initArticle:function(){new Headroom($(".post__fix")[0],{tolerance:0,offset:48,classes:{initial:"post__fix",pinned:"post__fix--pinned",unpinned:"post__fix--unpinned",top:"post__fix",notTop:"post__fix",bottom:"post__fix",notBottom:"post__fix"}}).init(),Skin._initShare(),Skin._initToc()}};Skin.init();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
var MetroHot={headerH:$("#header").height()+30+($("#header > div").get(1)?30:0),responsiveType:"large",goTranslate:function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)},init:function(){var e="";$("#admin a").each(function(){-1<$(this).attr("href").indexOf("/logout")&&(e=$(this).attr("href"))}),$("#logout, .logout").attr("href",e),$(".header .title, .navigation").mouseover(function(){$(".navigation").show()}).mouseout(function(){$(".navigation").hide()}),$(".header .title").click(function(){window.location.href=Label.servePath});var t=$("#top > span").first().text();if($(".online-count .text").append(t.substr(1,t.length)),1===$("#dynamic").length)return $(window).scroll(function(){$(window).scrollTop()>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide()}).click(function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()}),void $("body").css("min-height","inherit");$(window).scroll(function(){$(window).scrollTop()>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide()}).click(function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()}).resize(function(){var e=window.innerWidth,t="large";460<e&&e<=860?t="mid":window<460&&(t="small"),MetroHot.responsiveType!==t&&($(window).scroll(),MetroHot.responsiveType)}),$(window).scroll()},loadImg:function(e){e.style.marginTop=(220-e.height)/2+"px"},share:function(){var e=$(".share .text"),t=e.find(".icon-wechat"),a=t.data("url"),n=t.data("avatar"),i=encodeURIComponent(t.data("title")+" - "+t.data("blogtitle")),l=encodeURIComponent(a),r={};r.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+l+"&pic="+n,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+l+"&sharesource=qzone&title="+i+"&pics="+n,r.twitter="https://twitter.com/intent/tweet?status="+i+" "+l,e.find("span").click(function(){var e=$(this).data("type");if(e)return"wechat"===e?(0===t.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){t.qrcode({width:111,height:111,text:a})}}):t.find("canvas").slideToggle(),!1):void window.open(r[e],"_blank","top=100,left=200,width=648,height=618")})},loadRandomArticles:function(){$.ajax({url:Label.servePath+"/articles/random",type:"POST",success:function(e,t){var a=e.randomArticles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' href='"+Label.servePath+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#randomArticles .text").append(o)}else $("#randomArticles").remove()}})},loadRelevantArticles:function(e){$.ajax({url:Label.servePath+"/article/id/"+e+"/relevant/articles",type:"GET",success:function(e,t){var a=e.relevantArticles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' href='"+Label.servePath+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#relevantArticles .text").append(o)}else $("#relevantArticles").remove()},error:function(){$("#relevantArticles").remove()}})},loadExternalRelevantArticles:function(e){var t=this.tips;try{$.ajax({url:"http://rhythm.b3log.org:80/get-articles-by-tags.do?tags="+e+"&blogHost="+t.blogHost+"&paginationPageSize="+t.externalRelevantArticlesDisplayCount,type:"GET",cache:!0,dataType:"jsonp",error:function(){$("#externalRelevantArticles").remove()},success:function(e,t){var a=e.articles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' target='_blank' href='"+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#externalRelevantArticles .text").append(o)}else $("#externalRelevantArticles").remove()}})}catch(e){$("#externalRelevantArticles").remove()}},goCmt:function(){$("html, body").animate({scrollTop:$(".comment-disabled").get(0).offsetTop})}};MetroHot.init(),0<$(".article-header").length&&MetroHot.share();
var MetroHot={headerH:$("#header").height()+30+($("#header > div").get(1)?30:0),responsiveType:"large",goTranslate:function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)},init:function(){var e="";$("#admin a").each((function(){$(this).attr("href").indexOf("/logout")>-1&&(e=$(this).attr("href"))})),$("#logout, .logout").attr("href",e),$(".header .title, .navigation").mouseover((function(){$(".navigation").show()})).mouseout((function(){$(".navigation").hide()})),$(".header .title").click((function(){window.location.href=Label.servePath}));var t=$("#top > span").first().text();if($(".online-count .text").append(t.substr(1,t.length)),1===$("#dynamic").length)return $(window).scroll((function(){$(window).scrollTop()>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide()})).click((function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()})),void $("body").css("min-height","inherit");$(window).scroll((function(){$(window).scrollTop()>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide()})).click((function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()})).resize((function(){var e=window.innerWidth,t="large";e>460&&e<=860?t="mid":window<460&&(t="small"),MetroHot.responsiveType!==t&&($(window).scroll(),MetroHot.responsiveType)})),$(window).scroll()},loadImg:function(e){e.style.marginTop=(220-e.height)/2+"px"},share:function(){var e=$(".share .text"),t=e.find(".icon-wechat"),a=t.data("url"),n=t.data("avatar"),i=encodeURIComponent(t.data("title")+" - "+t.data("blogtitle")),l=encodeURIComponent(a),r={};r.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+l+"&pic="+n,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+l+"&sharesource=qzone&title="+i+"&pics="+n,r.twitter="https://twitter.com/intent/tweet?status="+i+" "+l,e.find("span").click((function(){var e=$(this).data("type");if(e)return"wechat"===e?(0===t.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){t.qrcode({width:111,height:111,text:a})}}):t.find("canvas").slideToggle(),!1):void window.open(r[e],"_blank","top=100,left=200,width=648,height=618")}))},loadRandomArticles:function(){$.ajax({url:Label.servePath+"/articles/random",type:"POST",success:function(e,t){var a=e.randomArticles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' href='"+Label.servePath+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#randomArticles .text").append(o)}else $("#randomArticles").remove()}})},loadRelevantArticles:function(e){$.ajax({url:Label.servePath+"/article/id/"+e+"/relevant/articles",type:"GET",success:function(e,t){var a=e.relevantArticles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' href='"+Label.servePath+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#relevantArticles .text").append(o)}else $("#relevantArticles").remove()},error:function(){$("#relevantArticles").remove()}})},loadExternalRelevantArticles:function(e){var t=this.tips;try{$.ajax({url:"http://rhythm.b3log.org:80/get-articles-by-tags.do?tags="+e+"&blogHost="+t.blogHost+"&paginationPageSize="+t.externalRelevantArticlesDisplayCount,type:"GET",cache:!0,dataType:"jsonp",error:function(){$("#externalRelevantArticles").remove()},success:function(e,t){var a=e.articles;if(a&&0!==a.length){for(var n="",i=0;i<a.length&&i<5;i++){var l=a[i],r=l.articleTitle;n+="<li><a rel='nofollow' title='"+r+"' target='_blank' href='"+l.articlePermalink+"'>"+r+"</a></li>"}var o="<ul>"+n+"</ul>";$("#externalRelevantArticles .text").append(o)}else $("#externalRelevantArticles").remove()}})}catch(e){$("#externalRelevantArticles").remove()}},goCmt:function(){$("html, body").animate({scrollTop:$(".comment-disabled").get(0).offsetTop})}};MetroHot.init(),$(".article-header").length>0&&MetroHot.share();

File diff suppressed because one or more lines are too long

0
next/css/fonts/icomoon.eot Executable file → Normal file
View File

0
next/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
next/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
next/css/fonts/icomoon.woff Executable file → Normal file
View File

0
next/css/fonts/selection.json Executable file → Normal file
View File

2
next/js/next.min.js vendored
View File

@ -1 +1 @@
var NexT={init:function(){$(".sidebar-toggle").click(function(){var i=$(".sidebar");$(this).hasClass("sidebar-active")?($(this).removeClass("sidebar-active"),$("body").animate({"padding-right":0}),i.animate({right:-320}),i.find("section").css("opacity",0)):($(this).addClass("sidebar-active"),$("body").animate({"padding-right":320}),i.animate({right:0},function(){i.find("section:first").animate({opacity:1})}))}),$(".site-nav-toggle").click(function(){$(".site-nav").slideToggle()}),$(document).ready(function(){setTimeout(function(){$(".logo-wrap").css("opacity",1),$(".logo-line-before i").animate({left:"0"},function(){$(".site-title").css("opacity",1).animate({top:0},function(){$(".menu").css("opacity",1).animate({"margin-top":"15px"}),$(".main").css("opacity",1).animate({top:"0"},function(){0<$(".article__toc li").length&&1e3<$(window).width()&&$(".sidebar-toggle").click()})})}),$(".logo-line-after i").animate({right:"0"})},500)})},initArticle:function(){0<$(".article__toc li").length&&1e3<$(window).width()&&($(".sidebar-toggle").addClass("has-toc"),this.initToc())},initToc:function(){var s=$(".vditor-reset [id^=b3_solo_h]"),c=$(".article__toc");$(window).scroll(function(i){if(0===$(".article__toc li").length)return!1;var t=[];s.each(function(i){t.push({id:this.id,offsetTop:this.offsetTop})});for(var e=$(window).scrollTop(),n=0,a=t.length;n<a;n++)if(e<t[n].offsetTop+200){c.find("li").removeClass("current");var o=0<n?n-1:0;c.find('a[href="#'+t[o].id+'"]').parent().addClass("current");break}e>=t[t.length-1].offsetTop+200&&(c.find("li").removeClass("current"),c.find("li:last").addClass("current"))}),$(window).scroll()}};NexT.init();
var NexT={init:function(){$(".sidebar-toggle").click((function(){var i=$(".sidebar");$(this).hasClass("sidebar-active")?($(this).removeClass("sidebar-active"),$("body").animate({"padding-right":0}),i.animate({right:-320}),i.find("section").css("opacity",0)):($(this).addClass("sidebar-active"),$("body").animate({"padding-right":320}),i.animate({right:0},(function(){i.find("section:first").animate({opacity:1})})))})),$(".site-nav-toggle").click((function(){$(".site-nav").slideToggle()})),$(document).ready((function(){setTimeout((function(){$(".logo-wrap").css("opacity",1),$(".logo-line-before i").animate({left:"0"},(function(){$(".site-title").css("opacity",1).animate({top:0},(function(){$(".menu").css("opacity",1).animate({"margin-top":"15px"}),$(".main").css("opacity",1).animate({top:"0"},(function(){$(".article__toc li").length>0&&$(window).width()>1e3&&$(".sidebar-toggle").click()}))}))})),$(".logo-line-after i").animate({right:"0"})}),500)}))},initArticle:function(){$(".article__toc li").length>0&&$(window).width()>1e3&&($(".sidebar-toggle").addClass("has-toc"),this.initToc())},initToc:function(){var i=$(".vditor-reset [id^=b3_solo_h]"),t=$(".article__toc");$(window).scroll((function(e){if(0===$(".article__toc li").length)return!1;var n=[];i.each((function(i){n.push({id:this.id,offsetTop:this.offsetTop})}));for(var a=$(window).scrollTop(),o=0,s=n.length;o<s;o++)if(a<n[o].offsetTop+200){t.find("li").removeClass("current");var c=o>0?o-1:0;t.find('a[href="#'+n[c].id+'"]').parent().addClass("current");break}a>=n[n.length-1].offsetTop+200&&(t.find("li").removeClass("current"),t.find("li:last").addClass("current"))})),$(window).scroll()}};NexT.init();

File diff suppressed because one or more lines are too long

0
nijigen/css/fonts/icomoon.eot Executable file → Normal file
View File

0
nijigen/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
nijigen/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
nijigen/css/fonts/icomoon.woff Executable file → Normal file
View File

0
nijigen/css/fonts/selection.json Executable file → Normal file
View File

View File

@ -1 +1 @@
var Skin={_initCommon:function(e){$(window).scroll(function(){125<$(window).scrollTop()?e.show():e.hide(),0<$(".side .article__toc").length&&768<$(window).width()&&(50<$(window).scrollTop()?$(".side").css("position","fixed"):$(".side").css("position","initial"))})},_initAnimation:function(){if(!("IntersectionObserver"in window))return $(".item").addClass("item--active"),!1;window.imageIntersectionObserver?window.imageIntersectionObserver.disconnect():window.imageIntersectionObserver=new IntersectionObserver(function(e){e.forEach(function(e){if(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)$(e.target).addClass("item--active");else{if(1===$(e.target).closest(".side").length||1===$(e.target).closest("#articlePage").length||768<$(e.target).outerHeight())return;$(e.target).removeClass("item--active")}})}),$(".item").each(function(){window.imageIntersectionObserver.observe(this)})},init:function(){Util.initPjax(function(){Skin._initAnimation()}),Skin._initAnimation(),this._initCommon($(".icon__up")),$(".header__nav a, .header__m a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a, .header__m a").removeClass("current"),this.className="current",$(".header__m .module__list").hide()}),$(".header__logo").click(function(){$(".header__nav a, .header__m a").removeClass("current")})},_initArticleCommon:function(){if(768<$(window).width()){if(0===$(".article__toc li").length)return void $(".side").css({height:"auto",position:"initial"});$("#articlePage").width($(".main").width()-310),$(".side").css({right:($(window).width()-$(".main").width())/2,position:"fixed",overflow:"auto",height:$(window).height()-30,top:30}),$(window).scroll(),$(".side").scrollTop(0)}},initArticle:function(){this._initArticleCommon(),setTimeout(function(){0===$("#externalRelevantArticlesWrap li").length&&($("#externalRelevantArticlesWrap").next().remove(),$("#externalRelevantArticlesWrap").remove()),0===$("#relevantArticlesWrap li").length&&($("#relevantArticlesWrap").prev().remove(),$("#relevantArticlesWrap").remove()),0===$("#randomArticlesWrap li").length&&($("#randomArticlesWrap").prev().remove(),$("#randomArticlesWrap").remove())},1e3)}};Skin.init();
var Skin={_initCommon:function(e){$(window).scroll((function(){$(window).scrollTop()>125?e.show():e.hide(),$(".side .article__toc").length>0&&$(window).width()>768&&($(window).scrollTop()>50?$(".side").css("position","fixed"):$(".side").css("position","initial"))}))},_initAnimation:function(){if(!("IntersectionObserver"in window))return $(".item").addClass("item--active"),!1;window.imageIntersectionObserver?(window.imageIntersectionObserver.disconnect(),$(".item").each((function(){window.imageIntersectionObserver.observe(this)}))):(window.imageIntersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){if(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)$(e.target).addClass("item--active");else{if(1===$(e.target).closest(".side").length||1===$(e.target).closest("#articlePage").length||$(e.target).outerHeight()>768)return;$(e.target).removeClass("item--active")}}))})),$(".item").each((function(){window.imageIntersectionObserver.observe(this)})))},init:function(){Util.initPjax((function(){Skin._initAnimation()})),Skin._initAnimation(),this._initCommon($(".icon__up")),$(".header__nav a, .header__m a").each((function(){this.href===location.href&&(this.className="current")})).click((function(){$(".header__nav a, .header__m a").removeClass("current"),this.className="current",$(".header__m .module__list").hide()})),$(".header__logo").click((function(){$(".header__nav a, .header__m a").removeClass("current")}))},_initArticleCommon:function(){if($(window).width()>768){if(0===$(".article__toc li").length)return void $(".side").css({height:"auto",position:"initial"});$("#articlePage").width($(".main").width()-310),$(".side").css({right:($(window).width()-$(".main").width())/2,position:"fixed",overflow:"auto",height:$(window).height()-30,top:30}),$(window).scroll(),$(".side").scrollTop(0)}},initArticle:function(){this._initArticleCommon(),setTimeout((function(){0===$("#externalRelevantArticlesWrap li").length&&($("#externalRelevantArticlesWrap").next().remove(),$("#externalRelevantArticlesWrap").remove()),0===$("#relevantArticlesWrap li").length&&($("#relevantArticlesWrap").prev().remove(),$("#relevantArticlesWrap").remove()),0===$("#randomArticlesWrap li").length&&($("#randomArticlesWrap").prev().remove(),$("#randomArticlesWrap").remove())}),1e3)}};Skin.init();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

0
yilia/css/fonts/icomoon.eot Executable file → Normal file
View File

0
yilia/css/fonts/icomoon.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
yilia/css/fonts/icomoon.ttf Executable file → Normal file
View File

0
yilia/css/fonts/icomoon.woff Executable file → Normal file
View File

0
yilia/css/fonts/selection.json Executable file → Normal file
View File

View File

@ -1 +1 @@
var Yilia={init:function(){Util.killIE(),this._initToc(),this.resetTags(),$(window).scroll(function(){0<$("article").length&&0===$("article.post").length&&$("article:not(.show)").each(function(){$(this).offset().top<=$(window).scrollTop()+$(window).height()-$(this).height()/7&&$(this).addClass("show")}),$(window).scrollTop()>$(window).height()?$(".icon-goup").show():$(".icon-goup").hide(),1===$("article.post").length&&$("article.post").addClass("show")}),$(window).scroll()},_initToc:function(){if(0===$(".article__toc li").length)return!1;$(".side .toc-btn").show()},resetTags:function(){$("a.tag").each(function(t){$(this).addClass("color"+Math.ceil(4*Math.random()))})},share:function(){var t=$(".share .fn-right"),i=t.find(".icon-wechat"),e=i.data("url"),n=i.data("avatar"),o=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),a=encodeURIComponent(e),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+o+"&url="+a+"&pic="+n,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+o+"&pics="+n,s.twitter="https://twitter.com/intent/tweet?status="+o+" "+a,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){i.qrcode({width:128,height:128,text:e})}}):i.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Yilia.init();
var Yilia={init:function(){Util.killIE(),this._initToc(),this.resetTags(),$(window).scroll((function(){$("article").length>0&&0===$("article.post").length&&$("article:not(.show)").each((function(){$(this).offset().top<=$(window).scrollTop()+$(window).height()-$(this).height()/7&&$(this).addClass("show")})),$(window).scrollTop()>$(window).height()?$(".icon-goup").show():$(".icon-goup").hide(),1===$("article.post").length&&$("article.post").addClass("show")})),$(window).scroll()},_initToc:function(){if(0===$(".article__toc li").length)return!1;$(".side .toc-btn").show()},resetTags:function(){$("a.tag").each((function(t){$(this).addClass("color"+Math.ceil(4*Math.random()))}))},share:function(){var t=$(".share .fn-right"),i=t.find(".icon-wechat"),e=i.data("url"),n=i.data("avatar"),o=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),a=encodeURIComponent(e),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+o+"&url="+a+"&pic="+n,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+o+"&pics="+n,s.twitter="https://twitter.com/intent/tweet?status="+o+" "+a,t.find("span").click((function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?$.ajax({method:"GET",url:Label.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){i.qrcode({width:128,height:128,text:e})}}):i.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")}))}};Yilia.init();