PageSourceSearch

https://m.thankqcamping.com/js/m_sns.js?version=20260914-1

js thankqcamping.com collected 2026-09-24 12:07:03 UTC 6,158 bytes, 182 lines download raw bytes

1function chkSnsSend(txt,ment,url,img,btn) {
2	//if(!ckMobile()) {
3	//	copyText(url)
4	//} else {
5		goSnsSend(txt,ment,url,img,btn)
6	//}
7}
8function goSnsSend(txt,ment,url,img,btn) {
9	if(app_yn=="Y" && app_os=="android") {
10		//window.Android.shareSns(txt, url,img);
11		var jsonString = encodeURIComponent(JSON.stringify({ txt: txt, url: url, img : img, ment:ment, btn:btn }))
12		outOpen($('#site_url').html()+'/inc/inc_sns_share.hbb?json='+jsonString)
13	} else {
14		if(app_yn=="Y" && app_os=="ios") {
15			var jsonString = encodeURIComponent(JSON.stringify({ txt: txt, url: url, img : img, ment:ment, btn:btn }))
16			goIosAp('openBrowser',$('#site_url').html()+'/inc/inc_sns_share.hbb?json='+jsonString)
17		} else {
18			SnsSend(txt,ment,url,img,btn)
19		}
20	}
21}
22function SnsSend(txt,ment,url,img,btn) {
23  Kakao.Share.sendDefault({
24	  objectType: 'feed',
25	  content: {
26	    title: txt,
27	    description:ment,
28	    imageUrl: img,
29	    link: {
30	      mobileWebUrl: url,
31	      webUrl: url,
32	    },
33	  },
34	  buttons:[
35	  {
36	  	title:btn,
37	  	link:{
38	  		mobileWebUrl: url,
39	      webUrl: url,
40	  	}	
41	  }
42	  ],
43	});
44}
45
46/* 이전 공유 관련 소스 */
47function chkSendSns(txt,url,img,ment) {
48	if(!ckMobile()) {
49		copyText(url)
50	} else {
51		goSendSns(url,txt,img,ment)
52	}
53}
54function goSendSns(url,txt,img,ment) {
55	if(app_yn=="Y" && app_os=="android") {
56		window.Android.shareSns(txt, url,img);
57	} else {
58		if(app_yn=="Y" && app_os=="ios") {
59			var jsonString = encodeURIComponent(JSON.stringify({ txt: txt, url: url, img : img }))
60			goIosAp('openBrowser',$('#site_url').html()+'/inc/ios_sns.hbb?json='+jsonString)
61		} else {
62			sendSns('kakaotalk', url, txt, img, ment)
63		}
64	}
65}
66function sendSns(sns, url, txt, img, ment)
67{
68    var o;
69    var _url = encodeURIComponent(url);
70    var _txt = encodeURIComponent(txt);
71    var _br  = encodeURIComponent('\r\n');
72 
73    switch(sns)
74    {
75        case 'facebook':
76            o = {
77                method:'popup',
78                url:'http://www.facebook.com/sharer/sharer.php?u=' + _url
79            };
80            break;
81 
82        case 'twitter':
83            o = {
84                method:'popup',
85                url:'http://twitter.com/intent/tweet?text=' + _txt + '&url=' + _url
86            };
87            break;
88 
89        case 'me2day':
90            o = {
91                method:'popup',
92                url:'http://me2day.net/posts/new?new_post[body]=' + _txt + _br + _url + '&new_post[tags]=epiloum'
93            };
94            break;
95 
96        case 'kakaotalk':
97						/*
98            Kakao.Link.sendDefault({
99			        objectType: 'feed',
100			        content: {
101			          title: txt,
102			          description: ment,
103			          imageUrl: img,
104			          link: {
105			            mobileWebUrl: url,
106			            webUrl: url
107			          }
108			        },
109						  success: function(response) {
110						    alert(response);
111						  },
112						  fail: function(error) {
113						    alert(error);
114						  },
115			      });
116			      */
117			      Kakao.Share.sendDefault({
118						  objectType: 'feed',
119						  content: {
120						    title: txt,
121						    imageUrl: img,
122						    link: {
123						      mobileWebUrl: url,
124						      webUrl: url,
125						    },
126						  },
127						});
128						return false;
129            break;
130 
131        case 'kakaostory':
132            o = {
133                method:'web2app',
134                param:'posting?post=' + _txt + _br + _url + '&apiver=1.0&appver=2.0&appid=dev.epiloum.net&appname=' + encodeURIComponent('땡큐캠핑'),
135                a_store:'itms-apps://itunes.apple.com/app/id486244601?mt=8',
136                g_store:'market://details?id=com.kakao.story',
137                a_proto:'storylink://',
138                g_proto:'scheme=kakaolink;package=com.kakao.story'
139            };
140            break;
141 
142        case 'band':
143            o = {
144                method:'web2app',
145                param:'create/post?text=' + _txt + _br + _url,
146                a_store:'itms-apps://itunes.apple.com/app/id542613198?mt=8',
147                g_store:'market://details?id=com.nhn.android.band',
148                a_proto:'bandapp://',
149                g_proto:'scheme=bandapp;package=com.nhn.android.band'
150            };
151            break;
152 
153        default:
154            alert('지원하지 않는 SNS입니다.');
155            return false;
156    }
157 
158    switch(o.method)
159    {
160        case 'popup':
161            window.open(o.url);
162            break;
163 
164        case 'web2app':
165            if(navigator.userAgent.match(/android/i))
166            {
167                // Android
168                setTimeout(function(){ location.href = 'intent://' + o.param + '#Intent;' + o.g_proto + ';end'}, 100);
169            }
170            else if(navigator.userAgent.match(/(iphone)|(ipod)|(ipad)/i))
171            {
172                // Apple
173                setTimeout(function(){ location.href = o.a_store; }, 200);          
174                setTimeout(function(){ location.href = o.a_proto + o.param }, 100);
175            }
176            else
177            {
178                alert('이 기능은 모바일에서만 사용할 수 있습니다.');
179            }
180            break;
181    }
182}

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.