PageSourceSearch

http://www.ujeil.com/script/share.sns.js

js ujeil.com collected 2026-10-01 12:19:03 UTC 3,029 bytes, 94 lines download raw bytes

1/* 2017 05 20 SJW */
2
3// 카카오 세팅
4function kakaoinit(kakaoappkey){
5	Kakao.init(kakaoappkey);
6}
7
8// 카카오톡 공유하기
9function sendKakaoTalk(strURL, strTitle, strDesc, image) {
10	
11	/* 카카오톡링크 v2 2017 05 19 */
12	Kakao.Link.sendDefault({
13		objectType: 'feed',
14		content: {
15			title: decodeURIComponent(strTitle),
16			description: decodeURIComponent(strDesc),
17			imageUrl: image,
18			link: {
19				mobileWebUrl: decodeURIComponent(strURL),
20				webUrl: decodeURIComponent(strURL)
21			}
22		},
23		buttons: [
24			{
25				title: '자세히보기',
26				link: {
27					mobileWebUrl: decodeURIComponent(strURL),
28					webUrl: decodeURIComponent(strURL)
29				}
30			}
31		]
32	});
33}
34
35// 카카오스토리 공유하기
36function shareStory(strURL, strTitle, strDesc, image) {
37
38	if(site_ismobile) { //모바일 디바이스경우...
39		Kakao.Story.open({
40			url: decodeURIComponent(strURL),
41			text: decodeURIComponent(strTitle),
42			urlInfo: {
43				title: decodeURIComponent(strTitle),
44				desc: decodeURIComponent(strDesc),
45				images: [image]
46			}
47		});
48	}else{	//웹일경우...
49		Kakao.Story.share({
50			url: decodeURIComponent(strURL),
51			text: decodeURIComponent(strTitle)
52		});
53	}
54}
55
56function shareBand(strURL, strTitle) {
57
58	if(site_ismobile) { //모바일 디바이스경우...
59		var param = "create/post?text=" + strTitle + "  " + strURL + "&route=" + strURL;
60		 
61		if(navigator.userAgent.match(/android/i)) {
62			location.href = 'intent:bandapp://' + param + '#Intent;package=com.nhn.android.band;end';
63		}else if(navigator.userAgent.match(/(iphone)|(ipod)|(ipad)/i)) {
64			setTimeout(function(){
65				location.href = 'itms-apps://itunes.apple.com/app/id542613198?mt=8';
66			}, 200);
67			setTimeout(function(){
68				location.href = 'bandapp://' + param;
69			}, 100);
70		}else{
71			var contents = "http://band.us/plugin/share?body=" + strTitle + "  " + strURL + "&route=" + strURL;
72			window.open(contents, "SNSSHARE", "width=800, height=700");
73		}
74	}else{
75		var contents = "http://band.us/plugin/share?body=" + strTitle + "  " + strURL + "&route=" + strURL;
76		window.open(contents, "SNSSHARE", "width=800, height=700");
77	}
78}
79
80
81function shareOtherSNS(sns, strTitle, strURL, image) {
82
83	var snsArray = new Array();
84 
85	snsArray['twitter']  	= "http://twitter.com/intent/tweet?text="+strTitle+ ' ' + strURL; 
86	snsArray['facebook']	= "http://www.facebook.com/sharer/sharer.php?u=" + strURL;
87	snsArray['pinterest']	= "http://www.pinterest.com/pin/create/button/?url=" + strURL + "&media=" + image + "&description=" + strTitle;
88	snsArray['blog']		= "http://blog.naver.com/openapi/share?url=" + strURL + "&title=" + strTitle;
89	snsArray['line']		= "http://line.me/R/msg/text/?" + strTitle + " " + strURL;
90	snsArray['pholar']		= "http://www.pholar.co/spi/rephol?url=" + strURL + "&title=" + strTitle;
91	snsArray['google']		= "https://plus.google.com/share?url=" + strURL + "&t=" + strTitle;
92	
93	window.open(snsArray[sns], "SNSSHARE", "width=800, height=700");
94}

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.