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