PageSourceSearch

https://misozone.com/common/js/sns.js

js misozone.com collected 2026-10-09 02:48:25 UTC 3,273 bytes, 108 lines download raw bytes

1
2var LNG_TRANS_CHAR = new Object();
3LNG_TRANS_CHAR['KR'] = new Object();
4LNG_TRANS_CHAR['US'] = new Object();
5LNG_TRANS_CHAR['CN'] = new Object();
6LNG_TRANS_CHAR['ES'] = new Object();
7LNG_TRANS_CHAR['ID'] = new Object();
8LNG_TRANS_CHAR['JP'] = new Object();
9LNG_TRANS_CHAR['MX'] = new Object();
10LNG_TRANS_CHAR['RU'] = new Object();
11LNG_TRANS_CHAR['TW'] = new Object();
12
13LNG_TRANS_CHAR['KR']['SN00001'] = "감사합니다. 등록되었습니다.";
14LNG_TRANS_CHAR['US']['SN00001'] = "Thank you. Registered.";
15LNG_TRANS_CHAR['CN']['SN00001'] = "Thank you. Registered.";
16LNG_TRANS_CHAR['ES']['SN00001'] = "Thank you. Registered.";
17LNG_TRANS_CHAR['US']['SN00001'] = "Thank you. Registered.";
18LNG_TRANS_CHAR['ID']['SN00001'] = "Thank you. Registered.";
19LNG_TRANS_CHAR['JP']['SN00001'] = "Thank you. Registered.";
20LNG_TRANS_CHAR['MX']['SN00001'] = "Thank you. Registered.";
21LNG_TRANS_CHAR['RU']['SN00001'] = "Thank you. Registered.";
22LNG_TRANS_CHAR['TW']['SN00001'] = "Thank you. Registered.";
23
24/* 트위터 */
25function goTwitter(msg,url) {
26	// var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
27	var href = "http://twitter.com/intent/tweet?text=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
28	var name = "twitter";
29	goSns(href, name);
30}
31
32function goMe2Day(msg, url) {
33	var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + "&new_post[tags]=" + encodeURIComponent(url);
34	var name = "me2Day";
35	goSns(href, name);
36}
37
38
39function goFacebook(link, picture, name, caption, description) {
40
41	var obj = {
42	  method		: 'feed',
43	  link			: link,
44	  picture		: picture,
45	  name			: name,
46	  caption		: caption,
47	  description	: description
48	};
49
50	function callback(response) {
51		if (response && response.post_id) {
52			alert(LNG_TRANS_CHAR[strSiteJsLng]['SN00001']);
53		} else {
54
55		}
56	}
57
58	FB.ui(obj, callback);
59}
60
61
62function goSns(href, name) {
63	var a = window.open(href, name, '');
64	if ( a ) { a.focus(); }
65}
66
67function goKakaoTalk(msg,url)
68{
69    /*
70    msg, url, appid, appname은 실제 서비스에서 사용하는 정보로 업데이트되어야 합니다.
71    */
72    kakao.link("talk").send({
73        msg : msg,
74        url : url,
75        appid : "<?=$S_HTTP_HOST?>",
76        appver : "2.0",
77        appname : "<?=$S_SITE_KNAME?>",
78        type : "link"
79    });
80}
81
82function goKakaoStory(msg,url,img)
83{
84    /*
85    msg, url, appid, appname은 실제 서비스에서 사용하는 정보로 업데이트되어야 합니다.
86    */
87    kakao.link("story").send({
88        post : url,
89        appid : "<?=$S_HTTP_HOST?>",
90        appver : "1.0",
91        appname : "<?=$S_SITE_KNAME?>",
92        urlinfo : JSON.stringify({title:msg, desc:msg, imageurl:[img], type:"article"})
93    });
94}
95
96
97
98function goPinterest(msg,url,media) {
99    var href = "http://www.pinterest.com/pin/create/button/?media=" + encodeURIComponent(media) + "&url=" + encodeURIComponent(url) + "&description=" + encodeURIComponent(msg);
100    var name = "pinterest";
101    goSns(href, name);
102}
103
104function goWeibo(msg,url,pic) {
105    var href = "http://service.weibo.com/share/share.php?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(msg) + "&pic=" + encodeURIComponent(pic);
106    var name = "weibo";
107    goSns(href, name);
108}

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.