1/* 2 * @ì¤ ëª : ê°ì í¤í¨ë ì¤ì ì¤í¬ë¦½í¸. 3 * @dependency : jQuery-1.8 ì´ì ë²ì . 4 * @2ë¨ê³ê¹ì§ì name space ë package.js ì ì ì ëì´ ìë¤. 5 * @=========================================================================== 6 * @ë³ê²½ì´ë ¥: 7 * @DATE AUTHOR DESCRIPTION 8 * @--------------------------------------------------------------------------- 9 * @ë³ê²½ ì´ë ¥ì ì´ê³³ì ì¶ê° í©ëë¤. 10 */ 11 12(function ($) { 13 /** 14 * ECMAScript 5 Strict Mode. 15 */ 16 "use strict"; 17 // Active-X ì© 18 var transkey_url='/3rdparty/raon/Transkey/transkey'; 19 var transkey_surl ='/transkeyServlet'; 20 document.write('<script type="text/javascript" src="'+transkey_url+'/rsa_oaep_files/rsa_oaep-min.js"></script>'); 21 document.write('<script type="text/javascript" src="'+transkey_url+'/jsbn/jsbn-min.js"></script>'); 22 document.write('<script type="text/javascript" src="'+transkey_url+'/TranskeyLibPack_op.js"></script>'); 23 document.write('<script type="text/javascript" src="/3rdparty/raon/Transkey/transkey/transkey.js"></script>'); 24 25 // non Active-X ì© 26 /*var touchenexBaseDir = "/3rdparty/raon/TouchEn"; 27 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/cmn/exinstall.js'></script>"); 28 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/cmn/exproto.js'></script>"); 29 30 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/nxKey/js/TouchEnNxKey_Interface.js'></script>"); 31 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/nxKey/js/TouchEnNxKey.js'></script>"); 32 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/nxFw/js/TouchEnNxFirewall_Interface.js'></script>"); 33 document.write("<script type='text/javascript' charset='utf-8' src='" + touchenexBaseDir + "/nxFw/js/TouchEnNxFirewall.js'></script>");*/ 34 /** 35 * ê°ì í¤í¨ë(nFilter) ì¤ì¹ í´ëì¤. 36 * 37 * @class 38 * @param device 39 */ 40 ext.keyPad = function (device) { 41 /** ê²½ë¡ ì í */ 42 this.ipath = '/3rdParty/nshc/'; 43 /** ê°ìí¤í¨ë ëë°ì´ì¤ ì¢ ë¥. */ 44 this.device = device; 45 /** nFilter ìí¸í ìí 모ë ê²½ë¡. */ 46 this.nFilterUrl = '/3rdParty/nshc/nfilter/jsp/encryption.jsp'; 47 /** ê°ì¬í¤í¨ë ì ì© íë ê°ì²´ ë°°ì´. */ 48 this.nFields = []; 49 /** ê¸ì¡ íë ë°°ì´ */ 50 this.moneyFields = []; 51 this.nFieldCryptKeys = []; 52 53 if (this.device == 'M') { 54 this.NFILTERSET = 1; // íë í´ë¦íì¬ ê°ìí¤ë³´ë ì¤í 55 } else { 56 if (IS_WIN) 57 this.NFILTERSET = 7; // ë²í¼ ì¬ì©, ì§ì ì ë ¥ ì¬ì©, íë² ê°ìí¤ë³´ë ì¤ííì¼ë©´ íë í´ë¦íì¬ ê°ìí¤ë³´ë ì¤í, ì§ì ì ë ¥ì´ìì¼ë©´ ê³ì ì§ì ì ë ¥ 58 else { 59 this.NFILTERSET = 9; // ë²í¼ ì¬ì©, íë í´ë¦íë©´ ê°ìí¤ë³´ë ì¤í(ì§ì ì ë ¥ í ì ìì) 60 } 61 } 62 63 /** ì¸ì´ */ 64 this.locale = LOCALE.toLowerCase(); 65 /** ì¸ì´ì½ë ì¤ì **/ 66 //setNFilterLanguage(this.locale); 67 68 /** ì¬ì©ìê° ì ë ¥í ê°ì í¹ì ìì¹ì ë³´ì¬ì§ê² íë ìµì . */ 69// nFilterPreview(false); 70 /** íì´í íë©´ì ë³´ì¬ì§ì§ ì¬ë¶ ìµì . */ 71// nFilterInfoTitleEnabled(false); 72 /** ë¡ë©ë°ê° íë©´ì ë³´ì¬ì§ì§ ì¬ë¶ ìµì . */ 73// setNFilterLoadingEnabled(false); 74 //setNFilterLoadingStatusEnable(true); 75 /** ì´ë¯¸ì§ ê²½ë¡ ì í . */ 76// setImgPath(this.ipath); 77 }; 78 79 /** 80 * ê°ì í¤í¨ë ë©ìë. 81 */ 82 ext.keyPad.prototype = { 83 /** 84 * ê°ì í¤í¨ë ì´ê¸°í. 85 * 86 * @param form 87 */ 88 init : function (form) { 89 // ì¸ì´ ì¤ì . 90// nfGlobalLanguage = this.locale.toLowerCase(); 91 92 // íë ëª©ë¡ ì´ê¸°í 93 this.nFields = []; 94 95// setNFilterTMT("true"); // form ì´ ê°ê° ì´ê¸°í ëì´ë ëì¼í ì¹íí ì´ë¸ê°ì ì¤ì íë ìµì 96// setFormTemp(true, form.name); // form íê·¸ì ìí¸í ë°ì´í ì ì¥í íë íë ì¤ì ì´ íìí ì 97 98 // íë ì¤ì . 99 this.setField(form); 100 101 // ì ì© íëê° ìë¤ë©´ ê°ìí¤í¨ë ì´ê¸°í. 102 /*if (this.nFields.length > 0) { 103// // ê¸ì¡ íë ì¤ì . 104 if (this.moneyFields.length > 0) 105// setMoneyField(true, this.moneyFields.join('|')); 106 setNFilterMoneyFormatting(this.moneyFields.join('|')); 107 if (this.device == 'M') { 108// setNFilterMobileInit(this.nFilterUrl); // 모ë°ì¼ 109 } else { 110 setNFilterEnableNoSecret(true); 111 nFilterKeypadInit(parseInt("1111", 2), true, false, '', this.nFields[0].name); 112 } 113 }*/ 114 }, 115 /** 116 * ê°ì í¤í¨ë field setting. 117 * 118 * @param form 119 */ 120 setField : function (form) { 121 var $this = this; 122 123 var inputs = $(form || document.body).find(':input').filter('[class*=vkey]'); 124 var encInputs = $(form || document.body).find(':input').filter('[enc*=on]'); 125 126 $(encInputs).each(function (inx) { 127 var cls = getClassName(this, 'filter'); 128 if(cls.indexOf(':money') > -1 || cls.indexOf(':num') > -1){ 129 //if(cls.indexOf(':eng') == 0 || cls.indexOf(':kor') == 0 || cls.indexOf(':spec') == 0){ 130 if(cls.indexOf(':money') > -1){ 131 $(this).attr("data-datatype", "money"); 132 }else{ 133 $(this).attr("data-datatype", "n"); 134 } 135 $(this).addClass("e2e"); 136 //} 137 } 138 }); 139 140 $(inputs).each(function (inx) { 141 142 var cls = getClassName(this, 'vkey'); 143 // id ìì± ìì¼ë©´ ìì±í´ì¤ë¤. 144 if (!this.id) 145 $(this).attr('id', this.name); 146 147 // ë²í¼ ìë í¤í¨ë. 148 if ($this.device != 'M' && cls.indexOf(':nobtn') > -1) { 149 // WIDOW ë ë²í¼ì´ ìì¼ë©´ ê°ì í¤í¨ë ì ì© ìí¨. 150 if (IS_WIN ){ 151 return; 152 } else { 153 //$this.NFILTERSET = 8; 154 } 155 } 156 if($("#"+this.id+"_tk_btn").length > 0){ 157 return; 158 } 159 /*var html = "<div class=\"fL lH30\">"; 160 html += "<span id="+this.id+"_tk_btn style=\"line-height: 24px; margin-left: 5px;\"> ë§ì°ì¤ë¡ ì ë ¥</span>"; 161 html += "</div>";*/ 162 163 var html = "<span id="+this.id+"_tk_btn style=\"line-height: 24px; margin-left: 5px;\"> ë§ì°ì¤ë¡ ì ë ¥</span>"; 164 165 if(cls.indexOf(':num') > -1){ 166 $(this).attr("data-tk-kbdType", "number"); 167 $(this).after(html); 168 }else if (cls.indexOf(':qwe') > -1){ 169 $(this).attr("data-tk-kbdType", "qwerty"); 170 $(this).after(html); 171 } 172 173 $(this).attr("onclick", "tk.onKeyboard(this)"); 174 175 }); 176 }, 177 /** 178 * í¤í¨ë ì ë ¥ê°ì ìí¸í í´ì nfilterPwd input ì ë´ëë¤. 179 * 180 * @param form 181 */ 182 encrypted : function (form) { 183 var inputs = $(form || document.body).find(':input').filter('[class*=vkey]'); 184 if ($(inputs).size() > 0) { 185 for ( var i=0; i<this.nFieldCryptKeys.length; i++){ 186 if ( $(form).find("#"+this.nFieldCryptKeys[i]).size() > 0 ){ 187 var edata = nFilterInputEncrypt(this.nFieldCryptKeys[i]); 188 $(form).find("#"+this.nFieldCryptKeys[i]).val(edata); 189 } 190 } 191 } 192 }, 193 /**
194 * ê°ìí¤í¨ëë¡ ì ë ¥ì ë²í¼ ì ë ¥ ì½ë°±. 195 * 196 * @param {Object} fnc. 197 */ 198 setCallback : function (fnc) { 199 nFilterCallback = function (obj) { 200 fnc(obj); 201 }; 202 }, 203 204 nfilterKeyShow : function(displayElementId, checkboxName, cls, keypadTypeBinary, formId){ 205 var form = $('#'+formId); 206 if ( form.find("#"+checkboxName).is(':checked') == true ){ 207 var type = (form.find("#"+displayElementId).attr("type") == "password" ? false : true); 208 nFilterKeypadShow(keypadTypeBinary, type, '', displayElementId); 209 nFilterCallback = function(value) { 210 if ( value == "close"){ 211 form.find("#"+checkboxName).attr("checked", false); 212 if ( IS_WIN ){ 213 if ( IS_OPERA && navigator.userAgent.indexOf("Version/12.") > -1){ 214 form.find("#"+displayElementId).attr("readonly", 'readonly'); 215 } else { 216 form.find("#"+displayElementId).removeAttr("readOnly"); 217 } 218 } else { 219 form.find("#"+displayElementId).attr("readOnly", 'readonly'); 220 } 221 222 form.find("#"+displayElementId).focus(); 223 } 224 }; 225 } else { 226 if ( IS_WIN ){ 227 if ( IS_OPERA && navigator.userAgent.indexOf("Version/12.") > -1){ 228 form.find("#"+displayElementId).attr("readOnly", 'readonly'); 229 } else { 230 form.find("#"+displayElementId).removeAttr("readOnly"); 231 } 232 } else { 233 form.find("#"+displayElementId).attr("readOnly", 'readonly'); 234 } 235 form.find("#"+displayElementId).focus(); 236 form.find("#"+displayElementId).val(''); 237 form.find("#"+displayElementId+"_nfilter_sec").val(''); 238 } 239 } 240 }; 241})(jQuery); 242 243/** 244 * ê°ìí¤í¨ëê° ì¤íë ë í¸ì¶ëë¤.<br> 245 * ê°ìí¤í¨ëì íì ì ì¤ì í´ì¤ë¤. 246 * 247 * @returns 248 */ 249function getDomainInfo () { 250 return ExeKeyPad.NFILTERSET; 251}
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.