/*! QTouch 
 *  2016-1-19 */
$(function(){var a=encodeURIComponent(document.title),b=encodeURIComponent(self.location),c="",d=$(".article-image");d.length&&(c=encodeURIComponent(d.attr("src")));var e=$('<section class="plugin-share"></section>').prependTo("footer");e.append(['<span class="tip">'+VAR_JSLANG.shareto+'</span>','<a class="btn qzone" href="http://openmobile.qq.com/oauth2.0/m_jump?page=qzshare.html&amp;loginpage=loginindex.html&amp;logintype=qzone&amp;site=%E7%99%BE%E5%BA%A6&amp;appName=%E7%99%BE%E5%BA%A6&amp;summary=',a,"&amp;title=%20&amp;appId=100312028&amp;action=shareToQQ&amp;targetUrl=",b,c?"&amp;imageUrl="+c:"","&amp;t=",+new Date,'"></a>','<a class="btn weixin" href="javascript: void(0)"></a>','<a class="btn weibo" href="http://openapi.baidu.com/social/widget/share?method=share&amp;media_type=sinaweibo&amp;client_id=ZVEpDSsmZ0qxa1gmgDAh1Fje&amp;url=',b,"&amp;pic_url=",c,"&amp;content=",a,"&amp;u=",b,'"></a>'].join("")),e.find(".weixin").on("click",function(){f.addClass("on"),f.toggleClass("not-weixin",!/MicroMessenger/i.test(window.navigator.userAgent))}),$(window).trigger("resize");var f=$("#share-mask");if(!f.length){f=$('<div id="share-mask"><div class="tip not-support">该浏览器暂不支持直接分享到微信朋友圈</div><div class="tip support"><i class="icon icon-fc"></i>请点击右上角按钮，直接分享到朋友圈<i class="icon icon-pointer"></i></div></div>').appendTo("body");var g=$("#share-mask .tip"),h=g.css("background-color"),i=/rgba?\((\d+),\s(\d+),\s(\d+)/.exec(h);if(i){var j=parseInt(i[1]),k=parseInt(i[2]),l=parseInt(i[3]),m=Math.min(j,k,l)+Math.max(j,k,l);m>255&&g.addClass("dark")}}f.on("click",function(){$(this).removeClass("on")})});var zT=setInterval(function(){$("body > *").each(function(){if(parseInt($(this).css("bottom"))<10&&$(this).attr("id")!="share-mask"){$("#qtouch-link").css("height",80+"px");if(!$("#qtouch-link")||!$("#qtouch-link").length){$("#footer").css({"padding-bottom":"60px"})}}})},800);
