PageSourceSearch

https://woorisavingsbank.com/resources/common/foresys/bizCommUtils.js?v=1790305917820

js woorisavingsbank.com collected 2026-09-25 03:12:18 UTC 4,251 bytes, 152 lines download raw bytes

1var biz = {
2	setData : function(key, value,  callback) {
3		var jsonData;
4						
5		if(typeof value == 'object') {
6			jsonData = JSON.stringify(value);
7		} else {
8			jsonData = value;
9		}
10		
11		localStorage.setItem(key, jsonData);
12		callback(true);
13	},
14	getData : function(key, callback) {
15		var obj = localStorage.getItem(key);
16		var str;
17		if(typeof obj == 'string') {
18			try {
19				str = JSON.parse(obj);
20			} catch(e){
21				str = obj;
22			}
23		} else {
24			str = obj;
25		}
26		
27		callback(str);
28	},
29	Alert : function(msg, onOk = function(){}) {
30		if(!alert(msg)) {
31			onOk();
32		}
33		//return biz.buildUI('popup-msc-alert', msg, onOk, function(){});
34	},
35	Confirm : function(msg, onOk = function(){}, onCancel = function(){}) {
36		if(confirm(msg)) {
37			onOk();
38		} else {
39			onCancel();
40		}
41		//return biz.buildUI('popup-msc-confirm', msg, onOk, onCancel);
42	},
43	testAlert : function(msg, onOk = function(){}) {
44		return biz.buildUI('popup-msc-alert', msg, onOk, function(){});
45	},
46	buildUI : function(popupId, msg, onOk, onCancel) {
47		if (typeof window === 'undefined') {
48			throw 'Cannot use this in node.';
49		}
50		
51		var options = {
52			title: '안내',
53			onOk: function(){},
54			onCancel: function(){},
55			onClose: function(){}
56		}
57		
58		options.onOk = (typeof onOk === 'function') ? onOk : options.onOk;
59		options.onCancel = (typeof onCancel === 'function') ? onCancel : options.onCancel;
60		
61		function destroy() {
62			$("#"+popupId).fadeOut(300, function(){
63				LayerPopup.close();
64				$("#"+popupId).remove();
65			});
66		}
67				
68		function ok() {
69			destroy();
70			options.onOk();
71		}
72		
73		function cancel() {
74			destroy();
75			options.onCancel();
76		}
77		
78		function close() {
79			destroy();
80			options.onClose();
81		}
82		var sDlgBtn = ``;
83		if(popupId == 'popup-msc-confirm') {
84			sDlgBtn = `<div class="compar-btn alignC"><a class="btn_blue" id="mscBtnOK">확인</a><a class="btn_white" id="mscBtnCancel">취소</a></div>`;
85		} else {
86			sDlgBtn = `<div class="compar-btn alignC"><a class="btn_blue" id="mscBtnOK">확인</a></div>`;
87		}
88		
89				
90		var sDlg = 
91		`
92		<div class="popup_wrap popup_pro_comparison sub_popup active ` + popupId + `" id="` + popupId + `" tabindex="0" style="display:none">
93			<div class="popup_top">
94				<h3 class="tit">` + options.title + `</h3>
95				<a class="btn_close" id="mscBtnClose"><span class="ally-hidden">팝업창 닫기</span></a>
96			</div>
97			<div class="popup_cont">
98				<div class="product_comparison">
99					<div class="inner">
100						<div class="con">
101							<p class="alignC">
102							`
103								+ msg + 
104							`
105							</p>
106						</div>
107					</div>
108				</div>
109				`
110				+ sDlgBtn +
111				`
112			</div>
113		</div>
114		`;
115		
116		$('#container').append(sDlg);
117		$('#'+popupId+' #mscBtnOK').off('click').on('click', ok);
118		$('#'+popupId+' #mscBtnCancel').off('click').on('click', cancel);
119		$('#'+popupId+' #mscBtnClose').off('click').on('click', close);
120		
121		LayerPopup.open(popupId);
122	},
123	appDownload: function() {//운영 앱 설치
124		window.location.href = 'https://woorifsb.page.link/PZXe';
125	},
126	getTerms: function(id, callback) {
127		let params = {
128			termsNm: '신용정보제공동의',
129			termsclscd: '03'
130		};
131		if('COM_AG_P_13' === id) params.termsNm = '전자약정';
132		else if('COM_AG_P_01_03' === id) params.termsNm = '대출관리';
133		request.postAjax("/common/getTermsList.do", params, function(data){
134    		if(data.resultCd == "0000"){
135        		let list = data.termsList;
136				for(let i = 0; i<list.length; i++) {
137					let v = list[i];
138					if(v.ITEM_REG_COL_HAN === id) {
139						let run_mode = window.location.host.indexOf('uat.woorifsb.com') > -1 ? 'dev' : ((window.location.host.indexOf('www.woorisavingsbank.com') > -1 || window.location.host.indexOf('m.woorisavingsbank.com') > -1) ? 'prod' : 'local');
140						let protocol = window.location.protocol;
141						let host = window.location.host;
142						callback(protocol + '//' + host + (run_mode === 'prod' ? '/pdffile/loan/' : '/pdfdev/loan/') + v.TERMS_NEW_FILE_NM);
143						return;
144					}
145				}
146    		} else {
147				console.log('#common/getTermsList.do N data{}' + JSON.stringify(data));
148            }
149			callback();
150		});
151	}
152}

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.