PageSourceSearch

http://www.saki-anime.com/blog/wp-content/themes/saki_1510//lib/sns_button_syg.1.9.js

js saki-anime.com collected 2026-10-02 06:14:28 UTC 3,900 bytes, 146 lines download raw bytes

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.