$(function(){var e=navigator.userAgent.toLowerCase();if("micromessenger"==e.match(/micromessenger/i)){var n=document.getElementById("shareTitle").value,t=document.getElementById("shareContent").value,a=$(".article-text img").eq(0).attr("data-echo")||"http://img.dwstatic.com/www/images/deafult_share.png";$.ajax({url:"http://h5game.duowan.com/weixin/getJsSign",type:"GET",dataType:"jsonp",data:{url:location.href,appid:10},success:function(e){e.data.debug=!1,e.data.jsApiList=["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareQZone"],wx.config(e.data),wx.ready(function(){wx.onMenuShareTimeline({title:n,link:location.href,imgUrl:a}),wx.onMenuShareAppMessage({title:n,link:location.href,desc:t,imgUrl:a}),wx.onMenuShareQQ({title:n,link:location.href,desc:t,imgUrl:a}),wx.onMenuShareQZone({title:n,link:location.href,desc:t,imgUrl:a})})}})}});