1$(document).ready(function(){ 2 //ä¸è½½æµ·æ¥æé® 3 var image=$("#poster .posterImg >img"); 4 var posterUrl=image[0].src; 5 var posterH5Url=posterUrl.replace('http://haikenews.static.haiwainet.cn', ''); 6 // posterH5Url="https://m.haiwainet.cn/middle/index/posterweixin/?id="+sensorsConData["event"].content_id+"&img="+posterH5Url; 7 posterH5Url="https://m.haiwainet.cn/middle/index/posterweixin?img="+posterH5Url; 8 9 10 //æå¼å ³éæµ·æ¥æ¾ç¤º 11 $(".posterOpen").click(function(){ 12 $("#poster").fadeToggle("fast","linear"); 13 $(document.body).css({ 14 "overflow-x":"hidden", 15 "overflow-y":"hidden" 16 }); 17 }); 18 $("#poster").click(function(event){ 19 if( $(event.target)[0]===this) { 20 $("#poster").fadeToggle("fast","linear"); 21 $(document.body).css({ 22 "overflow-x":"auto", 23 "overflow-y":"auto" 24 }); 25 } 26 }) 27 //åäº«å°æ°æµªå¾®å 28 var ShareTip = function(){} 29 ShareTip.prototype.sharetosina=function(title,url,imgUrl) 30 { 31 var sharesinastring='https://service.weibo.com/share/share.php?title='+title+'&pic='+imgUrl+'&url='+url+'&content=utf-8&sourceUrl='+url; 32// var sharesinastring='http://v.t.sina.com.cn/share/share.php?&appkey='+appkey+'&title='+title+'&url='+url+'&content=utf-8&sourceUrl='+url+'&pic='picurl; 33 window.open(sharesinastring,'resizable=no'); 34 } 35 36 $('.weibo').on('click', function () { 37 var shareTitle = $('.showpage h1').text(); 38 var shareContent = $("meta[name='description']").text(); 39 var shareUrl = window.location.href; 40 var share1 = new ShareTip(); 41 if($(this).has('hb')){ 42 console.log(1111) 43 console.log(posterUrl) 44 share1.sharetosina(shareTitle + " " + shareContent,shareUrl,posterUrl); 45 }else{ 46 share1.sharetosina(shareTitle + " " + shareContent,shareUrl,$('.contentMain img')); 47 } 48 49 }) 50 // å享å°å¾®ä¿¡ 51 $('#poster span.weixin,#poster span.weixinFridend').click(function () { 52 53 if($('.wx-box').length){ 54 55 }else{ 56 // console.log(sensorsConData); 57 $('#poster .posterblock .posterButton').append('<div class="wx-box" ><div class="weixintit">å享å°å¾®ä¿¡</div><div id="wxCode"></div><p>1ã使ç¨âæ«ä¸æ«âï¼å°æµ·æ¥ä¸è½½å°ææºç¸å</p><p>2ãå°ä¸è½½çæµ·æ¥å享ç»å¾®ä¿¡å¥½åææåå</p><div class="wx-box-close"></div></div>'); 58 //çæäºç»´ç 59 60 // var posterH5Url="http://m.haiwainet.cn/middle/index/posterweixin/?id=31737188&img=/poster_v6/2020/0308/52a77ead-0951-4d03-9d72-e62a77700a19.jpg" 61 62 console.log(posterH5Url); 63 $("#wxCode").qrcode({ 64 render: 'canvas', 65 width: 116, 66 height: 116, 67 text: posterH5Url //ä»»æå 容 68 }); 69 $('.wx-box-close').on('click', function () { 70 $('.wx-box').hide(); 71 }) 72 } 73 $('.wx-box').show(); 74 75 }) 76 77 78 79}) 80 81function dataURLtoBlob(dataurl) { 82 var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], 83 bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); 84 while(n--){ 85 u8arr[n] = bstr.charCodeAt(n); 86 } 87 return new Blob([u8arr], {type:mime}); 88}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.