PageSourceSearch

https://woorisavingsbank.com/resources/common/js/common-user.js?v=1790305920343

js woorisavingsbank.com collected 2026-09-25 03:12:29 UTC 4,707 bytes, 168 lines download raw bytes

1/**
2 * Supported Browser : MSIE, Chrome , FireFox
3 * 
4 * Object       : common-user.js
5 * Description  : 로그인 정보 관련 
6 * Author       : LaheeDad
7 * Since        : 2013. 10. 31.
8 * Version      : 1.0
9 * 
10 * Modification Information
11 *     since          author              description
12 *  ===========    =============    ===========================
13 *  LaheeDad     2013. 10. 31.     최초 생성
14 */
15
16/*
17 * 로그인 정보
18 */
19var loginObj = {
20    /*
21     * 프로젝트 ContextPath 정보 
22     */
23    contextPath : '',
24    /*
25     * 접속페이지 국가 코드 
26     */
27    localeCode : 'KR',
28    /*
29     * contextPath + localeCode
30     */
31    pagePath : '',
32    /*
33     * 로그인여부
34     */    
35    isLogin : 'N',
36    /*
37     * 멤버쉽 여부 
38     */
39    isMember : 'N',
40    /*
41     * 접속DEVICE
42     * N : normal
43     * M : mobile
44     * T : tablet
45     */
46    isDevice : 'N',
47    /*
48     * 접속 DIVICE가 모바일일대 ISO인지 확인
49     * N : Android or Other
50     * Y : IOS 
51     */
52    isIos : 'N',
53    /**
54     * 설정
55     * @param _isLogin  로그인유무
56     * @param _isDevice 접속 DEVICE종류
57     * @param _isIos    아이폰계열 유무
58     */
59    init : function(_isLogin, _isMember, _isDevice, _isIos){
60        this.isLogin = _isLogin;
61        this.isMember = _isMember;
62        this.isDevice = _isDevice;
63        this.isIos = _isIos;
64        this.pagePath = this.contextPath;
65        //this.pagePath = this.contextPath + '/' + this.localeCode;
66    },
67    /**
68     * 사용자 로그인 확인
69     * 
70     * @use     - loginObj.loginCheck();
71     *          - loginObj.loginCheck(gotoUrl);
72     * @param gotoURL   - 로그인확인 실패시 로그인후에 이동할 페이지 URL
73     *                  - 로그인확인 실패시 gotoURL을 설정하지 않았다면 로그인후 현재 페이지로 이동한다.
74     *                  - 로그인을 성공했는데 gotoURL가 없다면 로그인 확인 성공여부만 리턴한다.
75     * @returns {Boolean}
76     */
77    loginCheck : function(gotoURL){
78        var bRtn = false;
79        
80        //로그인 여부 확인
81        if(!this.isLoginCheck()){
82            //로그인 페이지로 이동
83            bRtn = this.goLogin(gotoURL, true);            
84        }else{            
85            if(gotoURL != undefined){
86                location.href = gotoURL;
87            }            
88            bRtn = true;
89        }
90        
91        return bRtn;
92    },
93    /**
94     * 로그인 여부 확인
95     * @returns {Boolean} true:로그인중
96     */
97    isLoginCheck : function(){
98        var bRtn = false;
99        
100        //로그인 여부 확인
101        //if(this.isLogin === 'Y' && this.isMember === 'S'){
102        if(this.isLogin === 'Y'){
103            bRtn = true;
104        }
105        
106        return bRtn;
107    },
108    isLoginCheck2 : function(){
109        var bRtn = false;
110        
111        //로그인 여부 확인
112        if(this.isLogin === 'Y'){
113            bRtn = true;
114        }else{
115        	alert("로그인이 필요합니다.");     
116        }
117        
118        return bRtn;
119    },
120    /**
121     * 로그인 페이지로 이동
122     * - loginCheck에서 홨을대는 이동 여부 확인
123     * @param returnUrl
124     * @param bChecked  로그인여부화인 로직여부
125     * @returns {Boolean}
126     */
127    goLogin : function(returnUrl, bChecked){
128        if(bChecked != undefined && bChecked){
129            if(confirm("로그인이 필요합니다.")){            
130                this.moveLogin(returnUrl);        
131            }else{
132                return false;
133            }
134        }else{
135            this.moveLogin(returnUrl);
136        }        
137    },
138    moveLogin : function(returnUrl){
139        location.replace( loginObj.pagePath + (loginObj.isDevice != 'N' ? '/m' : '') + '/consultant/login.do?returnUrl='+ encodeURIComponent((returnUrl == undefined || returnUrl == '' ? location.href : returnUrl)));
140    }    
141};
142
143
144$(function() {  
145    //Header의 로그인 버튼
146    $('.goLogin').on({
147        click : function(event){
148            event.preventDefault();
149            loginObj.goLogin();
150        }
151    });  
152    
153    //Header의 로그아웃 버튼
154    $('.goLogout').on({
155        click : function(event){
156            event.preventDefault();
157            location.replace($(this).attr('href'));
158        }
159    });  
160    
161
162    $('a.memberOnly').on({
163        click : function(event){
164            event.preventDefault();
165            loginObj.loginCheck($(this).attr('href'));
166        }
167    });
vendor: 3 bytes, line 168
168});

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.