1//////////////////////////////////// 2// articles page ////////////////// 3//////////////////////////////////// 4 5 6$(function () { 7 8 // articletoolã®SNSãã¿ã³ 9 var url = $("link[rel='canonical']").eq(0).attr('href'); 10 if(url){ 11 url = url.replace(/stg\./g,''); 12 } 13 var num = 0; 14 15 var eurl = encodeURI(url); 16 var eurlc = encodeURIComponent(url); 17 var etitle = encodeURIComponent(document.title); 18 //var tweet = encodeURIComponent(document.title + " ") + eurl; 19 20 //X(twitter) 21 $('.tool-twitter').wrapInner('<a class="tool-twitter-button" href="https://x.com/intent/tweet?text=' + etitle + '&url=' + eurlc + '" target="_blank" rel="noopener noreferrer" data-sns="twitter" data-snsaction="share" aria-label="Xï¼æ§Twitterï¼ãã¹ã"></a>'); 22 23 //X(twitter) timeline 24 $('.tool-twitter-timeline').wrapInner('<a class="tool-twitter-button" href="https://x.com/search?q=url:' + eurlc + '&f=live" target="_blank" rel="noopener noreferrer" data-sns="twitter" data-snsaction="timeline" aria-label="Xï¼æ§Twitterï¼ã¿ããªã®ãã¹ããè¦ã"></a>'); 25 26 //facebook 27 $('.tool-facebook').wrapInner('<a class="tool-facebook-button" href="//www.facebook.com/share.php?u=' + eurlc + '" target="_blank" rel="noopener noreferrer" data-sns="facebook" data-snsaction="share" aria-label="Facebook ã·ã§ã¢"></a>'); 28 29 //ã¯ã¦ã 30 $('.tool-hatebu').wrapInner('<a class="tool-hatebu-button" href="//b.hatena.ne.jp/entry/' + eurl + '" target="_blank" rel="noopener noreferrer" data-sns="hatena-bookmark" data-snsaction="share" aria-label="ã¯ã¦ãªããã¯ãã¼ã¯"></a>'); 31 32 33 //ãã¼ã¸ã®URLãã³ãã¼ 34 const undotext = function(){ 35 $('.tool-link-text').text("ãªã³ã¯").css('display',''); 36 } 37 38 $('.tool-link > a').click(function(e){ 39 e.preventDefault(); 40 const url = location.href; 41 navigator.clipboard.writeText(url); 42 $('.tool-link-text').text("ãªã³ã¯ãã³ãã¼ãã¾ãã").css('display','block'); 43 44 setTimeout(undotext, 2000); 45 }); 46 47 48 //ãã¼ã¸ãå°å· 49 $('.tool-print > a').click(function(e){ 50 e.preventDefault(); 51 window.print(); 52 }); 53 54});
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.