.
This commit is contained in:
parent
4b043fd730
commit
22af673842
@ -92,7 +92,9 @@
|
||||
</#if>
|
||||
<#include "footer.ftl">
|
||||
|
||||
<@comment_script oId=article.oId></@comment_script>
|
||||
<@comment_script oId=article.oId>
|
||||
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
|
||||
</@comment_script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
2
finding/js/finding.min.js
vendored
2
finding/js/finding.min.js
vendored
@ -1 +1 @@
|
||||
var Finding={init:function(){Util.killIE(),$(".scroll-down").click(function(t){t.preventDefault();var e=$(this),n=$("html, body"),o=e.attr("data-offset")?e.attr("data-offset"):!1,a=parseInt(o);n.stop(!0,!1).animate({scrollTop:$(this.hash).offset().top+a},500)}),$("body").click(function(t){0===$(t.target).closest(".nav").length&&$("body").hasClass("nav-opened")&&$("body").removeClass("nav-opened").addClass("nav-closed")}),$(".menu-button, .nav-close").click(function(t){t.stopPropagation(),$("body").toggleClass("nav-opened nav-closed")})},share:function(){$(".share span").click(function(){var t=$(this).data("type"),e=encodeURIComponent($("title").text()),n=$(".post-title a").attr("href")?$(".post-title a").attr("href"):location,o=$(".post-content img:eq(0)").attr("src"),a={};a.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+e+"&url="+n+"&pic="+o,a.weibo="http://v.t.sina.com.cn/share/share.php?title="+e+"&url="+n+"&pic="+o,a.google="https://plus.google.com/share?url="+n,a.twitter="https://twitter.com/intent/tweet?status="+e+" "+n,window.open(a[t],"_blank","top=100,left=200,width=648,height=618")})}};Finding.init();
|
||||
var Finding={init:function(){Util.killIE();$(".scroll-down").click(function(event){event.preventDefault();var $this=$(this),$htmlBody=$("html, body"),offset=($this.attr("data-offset"))?$this.attr("data-offset"):false,toMove=parseInt(offset);$htmlBody.stop(true,false).animate({scrollTop:($(this.hash).offset().top+toMove)},500)});$("body").click(function(event){if($(event.target).closest(".nav").length===0&&$("body").hasClass("nav-opened")&&!$(event.target).hasClass("icon-gotop")){$("body").removeClass("nav-opened").addClass("nav-closed")}});$(".menu-button").click(function(event){event.stopPropagation();$("body").toggleClass("nav-opened nav-closed")});$("body").append('<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a>');$(window).scroll(function(){if($(window).scrollTop()>$(window).height()){$(".icon-gotop").show()}else{$(".icon-gotop").hide()}})},share:function(){$(".share span").click(function(){var key=$(this).data("type");var title=encodeURIComponent($("title").text()),url=$(".post-title a").attr("href")?$(".post-title a").attr("href"):location,pic=$(".post-content img:eq(0)").attr("src");var urls={};urls.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+title+"&url="+url+"&pic="+pic;urls.weibo="http://v.t.sina.com.cn/share/share.php?title="+title+"&url="+url+"&pic="+pic;urls.google="https://plus.google.com/share?url="+url;urls.twitter="https://twitter.com/intent/tweet?status="+title+" "+url;window.open(urls[key],"_blank","top=100,left=200,width=648,height=618")})}};Finding.init();
|
Loading…
x
Reference in New Issue
Block a user