⬆️ vditor

This commit is contained in:
Van
2019-11-05 12:08:07 +08:00
parent 21c902d4c8
commit e55e26fdb7
70 changed files with 45 additions and 69 deletions

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();