PageSourceSearch

https://ssupl.com/data/skin/front/19-07_C/js/gd_kakao.js

js ssupl.com collected 2026-10-09 23:37:52 UTC 2,433 bytes, 76 lines download raw bytes

1/**
2 * Create by sojeong
3 */
4
5$(document).ready(function () {
6    var $kakaoLoginBtn = $('.js_btn_kakao_login');
7
8    if($kakaoLoginBtn.length > 0) {
9        $kakaoLoginBtn.click(function () {
10            var url ='';
11            var returnUrl = $kakaoLoginBtn.data('return-url');
12            url = '../member/kakao/kakao_login.php?kakaoType=' + $kakaoLoginBtn.data('kakao-type') + '&returnUrl=' + returnUrl;
13            var win = gd_popup({
14                url: url, target: "kakaoLogin", width: 630, height: 560, resizable: "no", scrollbars: "no"
15            });
16            win.focus();
17            return win;
18        });
19    }
20
21    if(typeof kakaoProfile !== 'undefined') {
22        if(kakaoProfile.nickname){
23            $('input[name="memNm"]').val(kakaoProfile.nickname);
24        }
25
26        var $memPw = $('input[name="memPw"]');
27        if ($memPw.length > 0) {
28            $memPw.addClass('ignore');
29        }
30        var $memPwRe = $('input[name="memPwRe"]');
31        if ($memPwRe.length > 0) {
32            $memPwRe.addClass('ignore');
33        }
34    }
35
36    var $snsConnectBtn = $('.js_btn_sns_connect');
37
38    if ($snsConnectBtn.length > 0) {
39        $snsConnectBtn.click(function () {
40            if ($(this).data('sns') == 'kakao') {
41                var url = '../member/kakao/kakao_login.php?kakaoType=connect';
42                var win = gd_popup({
43                    url: url, target: "kakaoLogin", width: 630, height: 560, resizable: "no", scrollbars: "no"
44                });
45                win.focus();
46                return win;
47            }
48        });
49    }
50
51    if (typeof snsConnection !== 'undefined') {
52        var $disconnectBtn = $('.js_btn_sns_disconnect');
53        if ($disconnectBtn.length > 0) {
54            $disconnectBtn.click(function () {
55                if($(this).data('sns') == 'kakao') {
56                    if (confirm(__('계정 연결을 해제하시겠습니까?'))) {
57                        var url = $(this).data('kakao-url');
58                        var win = gd_popup({
59                            url: url, target: "kakaoLogin", width: 0, height: 0, resizable: "no", scrollbars: "no"
60                        });
61                        win.focus();
62                        return win;
63                    }
64                }
65            });
66        }
67    }
68
69
70});
71
72function confirmJoin(message, location) {
73    if (confirm(message)) {
74        window.location.href = location;
75    }
76}

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.