From 14e5f7ce3c7ca0a553803dd09da9eed37f9d6199 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 29 Jan 2018 13:57:04 +0800 Subject: [PATCH] https://github.com/b3log/solo/issues/12394 --- skins/yilia/js/yilia.js | 2 +- skins/yilia/js/yilia.min.js | 2 +- skins/yilia/side.ftl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skins/yilia/js/yilia.js b/skins/yilia/js/yilia.js index 9db5e43..a9b5b63 100644 --- a/skins/yilia/js/yilia.js +++ b/skins/yilia/js/yilia.js @@ -61,7 +61,7 @@ var Yilia = { return false; } - $('.side footer').after('
X
'); + $('.side footer').after('
X
'); $('.side .toc a').after($('.b3-solo-list')); diff --git a/skins/yilia/js/yilia.min.js b/skins/yilia/js/yilia.min.js index dcdff22..aecf5ed 100644 --- a/skins/yilia/js/yilia.min.js +++ b/skins/yilia/js/yilia.min.js @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -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===$(".b3-solo-list li").length)return!1;$(".side footer").after('
X
'),$(".side .toc a").after($(".b3-solo-list")),$(".side .toc-btn").show()},resetTags:function(){$("a.tag").each(function(t){$(this).addClass("color"+Math.ceil(4*Math.random()))})},share:function(){$(".share span").click(function(){var t=$(this).data("type"),i=encodeURIComponent($("title").text()),o=$(".post-title a").attr("href")?$(".post-title a").attr("href"):location,e=$(".post-content img:eq(0)").attr("src"),s={};s.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+i+"&url="+o+"&pic="+e,s.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+o+"&pic="+e,s.google="https://plus.google.com/share?url="+o,s.twitter="https://twitter.com/intent/tweet?status="+i+" "+o,window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Yilia.init(); \ No newline at end of file +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===$(".b3-solo-list li").length)return!1;$(".side footer").after('
X
'),$(".side .toc a").after($(".b3-solo-list")),$(".side .toc-btn").show()},resetTags:function(){$("a.tag").each(function(t){$(this).addClass("color"+Math.ceil(4*Math.random()))})},share:function(){$(".share span").click(function(){var t=$(this).data("type"),i=encodeURIComponent($("title").text()),o=$(".post-title a").attr("href")?$(".post-title a").attr("href"):location,e=$(".post-content img:eq(0)").attr("src"),s={};s.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+i+"&url="+o+"&pic="+e,s.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+o+"&pic="+e,s.google="https://plus.google.com/share?url="+o,s.twitter="https://twitter.com/intent/tweet?status="+i+" "+o,window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Yilia.init(); \ No newline at end of file diff --git a/skins/yilia/side.ftl b/skins/yilia/side.ftl index 7d5451c..29bc388 100644 --- a/skins/yilia/side.ftl +++ b/skins/yilia/side.ftl @@ -1,6 +1,6 @@