1$(function () { 2 var $naverLoginBtn = $('.js_btn_naver_login'); 3 4 if($naverLoginBtn.length > 0) { 5 $naverLoginBtn.click(function () { 6 var returnUrl = $(':hidden[name=returnUrl]').val(); 7 var url = '../member/naver/naver_login.php?naverType=' + $naverLoginBtn.data('naver-type') + '&returnUrl=' + returnUrl; 8 var win = gd_popup({ 9 url: url, target: "naverLogin", width: 450, height: 665, resizable: "no", scrollbars: "no" 10 }); 11 win.focus(); 12 return win; 13 }); 14 } 15 16 var $snsConnectBtn = $('.js_btn_sns_connect'); 17 18 if ($snsConnectBtn.length > 0) { 19 $snsConnectBtn.click(function () { 20 if ($(this).data('sns') == 'naver') { 21 var url = '../member/naver/naver_login.php?mode=connect'; 22 var win = gd_popup({ 23 url: url, target: "naverLogin", width: 450, height: 520, resizable: "no", scrollbars: "no" 24 }); 25 win.focus(); 26 return win; 27 } 28 }); 29 } 30 31 if (typeof naverProfile !== 'undefined') { 32 if (naverProfile.gender) { 33 var $sexFl = $(':radio[name="sexFl"]'); 34 if ($sexFl.length > 0) { 35 var gender = naverProfile.gender.toLowerCase() == 'f' ? 'w' : naverProfile.gender.toLowerCase(); 36 var $checkedSexFl = $sexFl.filter('*[value="' + gender + '"]'); 37 $checkedSexFl.prop('checked', true); 38 $checkedSexFl.next('label').addClass('on'); 39 } 40 } 41 if (naverProfile.email) { 42 $('#memId').val(naverProfile.email); 43 var $email = $('#email'); 44 if ($email.length > 0) { 45 $email.val(naverProfile.email); 46 } 47 } 48 if (naverProfile.name) { 49 $('input[name="memNm"]').val(naverProfile.name); 50 } 51 if (naverProfile.nickname) { 52 var $nickNm = $('input[name="nickNm"]'); 53 if ($nickNm.length > 0) { 54 $nickNm.val(naverProfile.nickname); 55 } 56 } 57 var $memPw = $('input[name="memPw"]'); 58 if ($memPw.length > 0) { 59 $memPw.addClass('ignore'); 60 } 61 var $memPwRe = $('input[name="memPwRe"]'); 62 if ($memPwRe.length > 0) { 63 $memPwRe.addClass('ignore'); 64 } 65 } 66 67 if (typeof snsConnection !== 'undefined') { 68 var $disconnectBtn = $('.js_btn_sns_disconnect'); 69 70 if ($disconnectBtn.length > 0) { 71 $disconnectBtn.click(function () { 72 if ($(this).data('sns') == 'naver') { 73 if (confirm(__('ê³ì ì°ê²°ì í´ì íìê² ìµëê¹?'))) { 74 var $ajax = $.ajax('../member/naver/naver_login.php?mode=disconnect'); 75 $ajax.done(function (response) { 76 alert(response.message); 77 if (response.url) { 78 window.location.href = response.url; 79 } 80 }); 81 } 82 } 83 }); 84 } 85 } 86}); 87 88function confirmJoin(message, location) { 89 if (confirm(message)) { 90 window.location.href = location; 91 } 92}
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.