1/* 2å種ã½ã¼ã·ã£ã«ãµã¼ãã¹ãã¿ã³ãç°¡åè¨ç½® 3*/ 4 5var SNSButtonSYG = { 6 7 windowOpt : "width=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1", 8 9 /*************************** 10 * LINE 11 */ 12 line : function( target, url, msg ){ 13 var e = encodeURIComponent; 14 15 if( !url ) url = location.href; 16 if( !msg ) msg= document.title; 17 18 target.href = 'line://msg/text/' + e(msg) + ' ' + e(url); 19 20 }, 21 22 /*************************** 23 * Twitter 24 */ 25 twitter : function( url, msg, via, follow ){ 26 var e = encodeURIComponent; 27 28 if( !url ) url = location.href; 29 if( !msg ) msg= document.title; 30 var openURL = 'http://twitter.com/share?url=' + e(url) + '&text=' + e(msg) + '+'; 31 32 if( via ) openURL += '&via=' + e(via); 33 if( follow ) openURL += '&related=' + e(follow); 34 35 window.open( openURL, 'tweetwindow', SNSButtonSYG.windowOpt ); 36 void(0); 37 return false; 38 }, 39 40 /*************************** 41 * Facebook 42 */ 43 facebook : function( url ){ 44 var e = encodeURIComponent; 45 if( !url ) url = location.href; 46 var openURL = 'http://www.facebook.com/share.php?u='+ e(url); 47// var openURL = 'http://www.facebook.com/plugins/like.php?href='+ e(url); 48 49 window.open( openURL, 'facebookwindow', SNSButtonSYG.windowOpt ); 50 return false; 51 }, 52 53 /*************************** 54 * mixiãã§ã㯠55 */ 56 mixi : function( key, url ){ 57 58 var e = encodeURIComponent; 59 if( !url ) url = location.href; 60 var openURL = 'http://mixi.jp/share.pl?u='+ url + '&k=' + key; 61 window.open( openURL, 'share', ['width=632','height=456','location=yes','resizable=yes','toolbar=no','menubar=no','scrollbars=no','status=no'].join(',') ); 62 63 return false; 64 }, 65 66 /*************************** 67 * ã¯ã¦ãªããã¯ãã¼ã¯ 68 */ 69 hatebu : function( url ){ 70 var e = encodeURIComponent; 71 if( !url ) url = location.href; 72 var openURL = 'http://b.hatena.ne.jp/entry/' + e(url); 73 74 window.open( openURL, 'hatebuwindow', SNSButtonSYG.windowOpt ); 75 return false; 76 }, 77 78 /*************************** 79 * del.icio.us 80 */ 81 delicious : function( url, title ){ 82 var e = encodeURIComponent; 83 if( !url ) url = location.href; 84 if( !title ) title = document.title; 85 var openURL = 'http://www.delicious.com/save?url=' + e(url) + '&title=' + e(title); 86 87 window.open( openURL, 'deliciouswindow', SNSButtonSYG.windowOpt ); 88 return false; 89 }, 90 91 /*************************** 92 * Yahooããã¯ãã¼ã¯ 93 */ 94 yahoo : function( url, title ){ 95 var e = encodeURIComponent; 96 if( !url ) url = location.href; 97 if( !title ) title = document.title; 98 var openURL = 'http://bookmarks.yahoo.co.jp/action/bookmark?t=' + e(title) + '&u=' + e(url); 99 100 window.open( openURL, 'deliciouswindow', SNSButtonSYG.windowOpt ); 101 return false; 102 }, 103 104 /*************************** 105 * googleããã¯ãã¼ã¯ 106 */ 107 google : function( url, title ){ 108 var e = encodeURIComponent; 109 if( !url ) url = location.href; 110 if( !title ) title = document.title; 111 var openURL = 'https://www.google.com/bookmarks/mark?op=add&bkmk=' + e(url) + '&title=' + e(title); 112 113 window.open( openURL, 'googlewindow', SNSButtonSYG.windowOpt ); 114 return false; 115 }, 116 117 /*************************** 118 * livedoorã¯ãªãã 119 */ 120 livedoor : function( url, title ){ 121 var e = encodeURIComponent; 122 if( !url ) url = location.href; 123 if( !title ) title = document.title; 124 var openURL = 'http://clip.livedoor.com/redirect?link=' + e(url) + '&title=' + e(title) + '&ie=utf-8'; 125 126 window.open( openURL, 'livedoorwindow', SNSButtonSYG.windowOpt ); 127 return false; 128 } 129 130};
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.