PageSourceSearch

https://biotile.co.kr/html/sns/accountFacebook.js

js biotile.co.kr collected 2026-10-06 14:02:56 UTC 2,583 bytes, 111 lines download raw bytes

1var accountFB = function(){
2	this.appId = "198950830900895";
3
4	this.initEvent = function(){
5		$("#btnLoginFacebook").click(function(e){
6			e.preventDefault();
7			aFB.facebookLogin();
8		});
9
10		$("#btnJoinFacebook").click(function(e){
11			e.preventDefault();
12			aFB.facebookJoin();
13		});
14	};
15
16	this.facebookJoin = function()
17	{
18		FB.login(function(response) {
19			if(response.status === "connected")
20			{
21				FB.api('/me', {locale:'ko_KR', fields: 'name, email'}, function(user) {
22					if( !cLib.isEmpty(user.id) ) 
23					{
24						if( cLib.checkSnsJoin( user.id, "F" ) == "exists" )
25						{
26							alert("이미 가입된 정보입니다.");
27							return false;
28						}
29						else
30						{
31							if( !cLib.isEmpty(user.name) )
32								$("#joinForm input[name='name']").val( user.name );
33							
34							if( !cLib.isEmpty(user.email) )
35								$("#joinForm input[name='email']").val( user.email );
36
37							$("#joinForm input[name='snsId']").val( user.id );
38							$("#joinForm input[name='snsType']").val( "F" );
39
40							$("#joinForm input[name='pw1']").focus();
41						}
42					}
43					else
44					{
45						alert("잘못된 시도입니다.");
46						return false;
47					}
48				});
49			}
50		}, 
51		{scope: 'public_profile,email'});
52	}
53
54	this.facebookLogin = function()
55	{
56		FB.login(function(response) {
57			if(response.status === "connected")
58			{
59				FB.api('/me', {locale:'ko_KR', fields: 'name, email'}, function(user) {
60					if (user) 
61					{
62						location.href = "https://www.daebotile.co.kr/html/member/proc/snsLogin.php?snsType=F&id=" + user.id + "&name=" + user.name + "&email=" + user.email;
63					}
64					else
65					{
66						alert("잘못된 시도입니다.");
67						return false;
68					}
69				});
70			}
71		}, 
72		{scope: 'public_profile,email'});
73	}
74};
75
76
77
78var aFB = new accountFB();
79
80window.fbAsyncInit = function() {
81	FB.init({
82		appId      : "198950830900895",
83		status     : true,
84		cookie     : true,
85		xfbml      : true,
86		version    : 'v2.8'
87	});
88};
89
90(function(d){
91	var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
92	if (d.getElementById(id)) {return;}
93	js = d.createElement('script'); js.id = id;
94	js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1";
95	ref.parentNode.insertBefore(js, ref);
96}(document));
97
98// Load the SDK asynchronously
99/*(function(d, s, id) {
100	var js, fjs = d.getElementsByTagName(s)[0];
101	if (d.getElementById(id)) return;
102	js = d.createElement(s); js.id = id;
103	js.src = "//connect.facebook.net/en_US/sdk.js";
104	fjs.parentNode.insertBefore(js, fjs);
105}(document, 'script', 'facebook-jssdk'));*/
106
107
108
109$(document).ready(function(){
110	aFB.initEvent();
111});

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.