1window.fbAsyncInit = function() { 2 FB.init({ 3 appId : '1881060105505187', 4 cookie : true, // ì¿ í¤ê° ì¸ì ì 참조í ì ìëë¡ íì© 5 xfbml : true, // ìì íë¬ê·¸ì¸ì´ ìì¼ë©´ ì²ë¦¬ 6 version : 'v2.2' // ë²ì 2.1 ì¬ì© 7 }); 8 }; 9 10 // SDK를 ë¹ë기ì ì¼ë¡ í¸ì¶ 11 (function(d, s, id) { 12 var js, fjs = d.getElementsByTagName(s)[0]; 13 if (d.getElementById(id)) return; 14 js = d.createElement(s); js.id = id; 15 js.src = "//connect.facebook.net/en_US/sdk.js"; 16 fjs.parentNode.insertBefore(js, fjs); 17 }(document, 'script', 'facebook-jssdk')); 18 19 var accessToken = ''; 20 $("#fbLogin").click(function(){ 21 FB.getLoginStatus(function(response) { 22 if (response.status === 'connected') { 23 var uid = response.authResponse.userID; 24 accessToken = response.authResponse.accessToken; 25 document.cookie = "access_token="+accessToken; 26 } else if (response.status === 'not_authorized') { 27 // the user is logged in to Facebook, 28 // but has not authenticated your app 29 } else { 30 // the user isn't logged in to Facebook. 31 } 32 33 FB.login(function(response) { 34 if (response.status === 'connected') { 35 // íì´ì¤ë¶ê³¼ ì±ì ê°ì´ ë¡ê·¸ì¸ëì´ ìë¤. 36 FB.api('/me', function(response1) { 37 var data = response1; 38 FB.api("/"+data.id+"/picture", function (response2) { 39 if (response2 && !response2.error) { 40 data.profile = response2.data.url; 41 data.access_token = accessToken; 42 } 43 44 $.ajax({ 45 type: "POST", 46 url: "/snsLoginChk.php?just_login=1", 47 data: data, 48 success: function(data){ 49 if(data!="login" && data !="join") 50 alert(data); 51 else if(data=="login"){ 52 if(location.href.match('a=order')){ 53 $("#login_form").submit(); 54 return false; 55 } 56 var returl = $("input[name=returl]").val(); 57 if(returl) _href = returl; 58 else if(href.match('shop_login')) _href='/shop.php'; 59 else if(href.match('login') || href.match('join')) _href='/'; 60 else _href = href; 61 location.href= _href; 62 } 63 } 64 }); 65 66 }); 67 }); 68 } else if (response.status === 'not_authorized') { 69 // íì´ì¤ë¶ìë ë¡ê·¸ì¸ ëì´ìì¼ë, ì±ìë ë¡ê·¸ì¸ ëì´ìì§ ìë¤. 70 alert("ì± ê¶í ìì"); 71 } else { 72 // íì´ì¤ë¶ì ë¡ê·¸ì¸ì´ ëì´ìì§ ììì, ì±ì ë¡ê·¸ì¸ ëì´ìëì§ ë¶ëª ííë¤. 73 alert("ë¡ê·¸ì¸ ìëì´ ìì"); 74 } 75 },{scope: 'email'}); 76 }) 77 }); 78 79 $("#fbJoin").click(function(){ 80 FB.login(function(response) { 81 if (response.status === 'connected') { 82 // íì´ì¤ë¶ê³¼ ì±ì ê°ì´ ë¡ê·¸ì¸ëì´ ìë¤. 83 FB.api('/me', function(response1) { 84 var data = response1; 85 FB.api("/"+data.id+"/picture", function (response2) { 86 if (response2 && !response2.error) { 87 data.profile = response2.data.url; 88 data.access_token = accessToken; 89 } 90 91 $.ajax({ 92 type: "POST", 93 url: "/snsLoginChk.php", 94 data: data, 95 success: function(data){ 96 if(data!="login" && data !="join") 97 alert(data); 98 else if(data=="join"){ 99 var _href = location.href; 100 if(_href.match('a=order')){ 101 $("#login_form").submit(); 102 return false; 103 } 104 if(_href.match('shop_login')) location.href='/shop.php'; 105 else if(_href.match('login') || _href.match('join')) _href='/'; 106 location.href=_href; 107 //document.joinForm.action="mypage.php?a=info_step2"; 108 //$("input[name=mType]").val("fb"); 109 //document.joinForm.submit(); 110 } 111 } 112 }); 113 114 }); 115 }); 116 } else if (response.status === 'not_authorized') { 117 // íì´ì¤ë¶ìë ë¡ê·¸ì¸ ëì´ìì¼ë, ì±ìë ë¡ê·¸ì¸ ëì´ìì§ ìë¤. 118 alert("ì± ê¶í ìì"); 119 } else { 120 // íì´ì¤ë¶ì ë¡ê·¸ì¸ì´ ëì´ìì§ ììì, ì±ì ë¡ê·¸ì¸ ëì´ìëì§ ë¶ëª ííë¤. 121 alert("íì´ì¤ë¶ì¼ë¡ ë¡ê·¸ì¸ ì íë¨ íì¸ ë²í¼ì ëë¬ì£¼ì¸ì"); 122 } 123 },{scope: 'email'}); 124 }); 125 /* 126 $("#nvJoin, #nvLogin").click(function(){ 127 var nvState = $("input[name=nvState]").val(); 128 var url = "https://nid.naver.com/oauth2.0/authorize?client_id=FZ4lF9UkbshMPGzESmVi&response_type=code&redirect_uri=http://2bab.designod.co.kr/snsLoginChk.naver.php&state="+nvState; 129 window.open(url, 'ë¤ì´ë² ë¡ê·¸ì¸', 'width=400, height=600, menubar=no, status=no, toolbar=no'); 130 }); 131 */
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.