PageSourceSearch

https://funwood.co.kr/app/javascript/js/facebook.js?v=20130613

js funwood.co.kr collected 2026-10-06 03:32:07 UTC 2,608 bytes, 102 lines download raw bytes

1try{ 
2	if(!eval('facebookjsok')){
3		var facebookjsok =true;
4		//@2015-04-28
5		try{ 
6		if(eval("fbv")) 
7		{ 
8			var fbv = fbv;
9		} 
10		}catch(e){ 
11			var fbv = '2.0';
12		}
13
14		try{ 
15		if(eval("plus_app_id")) 
16		{ 
17			var plus_app_id = plus_app_id;
18		} 
19		}catch(e){ 
20			var plus_app_id = '';
21		}
22		try{ 
23		if(eval("orderpage")) 
24		{ 
25			var orderpage = orderpage;
26		} 
27		}catch(e){ 
28			var orderpage = '';
29		}
30		
31		 
32		window.fbAsyncInit = function() {
33		FB.init({
34		appId      : plus_app_id, //App ID
35		status     : true, // check login status
36		cookie     : true, // enable cookies to allow the server to access the session
37		xfbml      : true,  // parse XFBML,
38		oauth 	   : true,
39		version    : 'v'+fbv
40		});
41
42		FB.getLoginStatus(function(response) {
43			if (response.status === 'connected') {
44				FB.api('/me', function(response) {
45					if(response.id)$.cookie('fbuser', response.id);
46				});
47			}
48		});
49
50		if( !orderpage ) {//장바구니용따로 제작
51			// like 이벤트가 발생할때 호출된다.
52			FB.Event.subscribe('edge.create', function(response) {
53				var responsear = response.split("&");
54				var goodsnoar = responsear[1].split("="); 
55				$.ajax({'url' : '../sns_process/facebooklikeck', 'type' : 'post', 'data' : {'mode':'like', 'product_url':response},
56				dataType: 'json',
57				success: function(result){
58					if(result.likecount>= 0){
59						//top.statistics_firstmall('like',goodsnoar[1],'',''); 사용안함
60						$(".fb-og-like-count"+goodsnoar[1]).text(result.likecount);
61					}
62				}
63				});
64			});
65
66			// unlike 이벤트가 발생할때 호출된다.
67			FB.Event.subscribe('edge.remove', function(response) {
68				var responsear = response.split("&");
69				var goodsnoar = responsear[1].split("=");
70				$.ajax({'url' : '../sns_process/facebooklikeck', 'type' : 'post', 'data' : {'mode':'unlike', 'product_url':response},
71				dataType: 'json',
72				success: function(result){
73					if( result.likecount >= 0 ){
74						$(".fb-og-like-count"+goodsnoar[1]).text(result.likecount);
75					}
76				}
77				});
78			});
79		}
80		}; 
81
82
83		(function(d, s, id) {
84		var js, fjs = d.getElementsByTagName(s)[0];
85		if (d.getElementById(id)) return;
86		js = d.createElement(s); js.id = id;
87		js.src = "//connect.facebook.net/ko_KR/sdk.js";
88		fjs.parentNode.insertBefore(js, fjs);
89		}(document, 'script', 'facebook-jssdk'));
90
91
92		function initializeFbTokenValues() {
93			fbId = "";
94			fbAccessToken = "";
95		}
96		function initializeFbUserValues() {
97			fbUid = "";
98			fbName = "";
99		} 
100	}
101} catch (facebookjsok) {
102}

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.