1/* https://jscompress.com/ */ 2var console = window.console || { log: function() {} }; 3var browser = (function() { 4 var userAgent = navigator.userAgent, s = userAgent.toLowerCase(); 5 var match = /(webkit)[ \/](\w.]+)/.exec(s) || /(opera)(?:.*version)?[ \/](\w.]+)/.exec(s) || /(msie) ([\w.]+)/.exec(s) || /(mozilla)(?:.*? rv:([\w.]+))?/.exec(s) || []; 6 function matchMediaQuery(query) { return "matchMedia" in window ? matchMedia(query).matches : false; } 7 opera = window.opera && window.opera.buildNumber; android = /Android/.test(userAgent); webkit = /WebKit/.test(userAgent); 8 ie = !webkit && !opera && (/MSIE/gi).test(userAgent) && (/Explorer/gi).test(navigator.appName); 9 ie = ie && /MSIE (\w+)\./.exec(userAgent)[1]; 10 ie11 = userAgent.indexOf('Trident/') != -1 && (userAgent.indexOf('rv:') != -1 || navigator.appName.indexOf('Netscape') != -1) ? 11 : false; 11 ie12 = (userAgent.indexOf('Edge/') != -1 && !ie && !ie11) ? 12 : false; 12 ie = ie || ie11 || ie12; 13 gecko = !webkit && !ie11 && /Gecko/.test(userAgent); 14 mac = userAgent.indexOf('Mac') != -1; 15 iDevice = /(iPad|iPhone)/.test(userAgent); 16 fileApi = "FormData" in window && "FileReader" in window && "URL" in window && !!URL.createObjectURL; 17 phone = matchMediaQuery("only screen and (max-device-width: 480px)") && (android || iDevice); 18 tablet = matchMediaQuery("only screen and (min-width: 800px)") && (android || iDevice); 19 windowsPhone = userAgent.indexOf('Windows Phone') != -1; 20 if(ie12) { webkit = false; } 21 22 return { name: match[1] || "", version: match[2] || "0", 23 opera: opera, webkit: webkit, ie: ie, gecko: gecko, mac: mac, iOS: iDevice, android: android, 24 documentMode: ie && !ie12 ? (document.documentMode || 7) : 10, fileApi: fileApi, desktop: !phone && !tablet, windowsPhone: windowsPhone 25 }; 26}()); 27 28Object.create = function (o) { function F() {} F.prototype = o; return new F(); } 29 30function isMobile(){ 31 var mobileKeyWords = new Array('Android', 'iPhone', 'iPod', 'BlackBerry', 'Windows CE', 'SAMSUNG', 'LG', 'MOT', 'SonyEricsson'); 32 for (var info in mobileKeyWords) { 33 if(navigator.userAgent.match(mobileKeyWords[info]) != null) { 34 return true; 35 } 36 } 37 return false; 38} 39var latestFocus = null;var fcsChk = true; 40function callLatestFocus(){ latestFocus =(event.srcElement.tagName=="A" || event.srcElement.tagName=="BUTTON")? $(event.srcElement) : $($(event.srcElement).parents("a,button").get(0)) ; } 41 42var _userAgent_ = navigator.userAgent;var isIe6 = (/msie 6/i).test(_userAgent_);var isIe7 = (/msie 7/i).test(_userAgent_);var isIe9 = (/msie 9/i).test(_userAgent_); var isComptMode = (/compatible/i).test(_userAgent_); 43 44var docChkTimer = null;var DOC_COMPLET = null; 45function docLoading(loadFunc){ 46 clearTimeout(docChkTimer); 47 if(document.readyState=="loaded" || document.readyState=="complete"){ 48 DOC_COMPLET = true; 49 if(loadFunc!=undefined) loadFunc(); 50 } 51 else{ 52 docChkTimer = setTimeout(function(){docLoading(loadFunc);},500); 53 } 54} 55 56////ë®ì ë¸ë¼ì°ì ì¬ì´ì¦ ê³ì°ì¤ë¥ ë³´ì 57function lowReloadCheck(func,load_obj){ 58 clearTimeout(load_obj.Timer); 59 if(!_isLowBr_) return true; 60 try{ 61 if(_isLowBr_ && load_obj.cnt < load_obj.limit){ 62 if($("body").width() > wsize.win.w){ 63 load_obj.cnt++; 64 load_obj.Timer = setTimeout(func,250); 65 66 return false; 67 }else{ 68 load_obj.cnt = 0; 69 return true; 70 } 71 } 72 if(load_obj.cnt== load_obj.limit) { 73 load_obj.cnt = 0; 74 } 75 return true; 76 }catch(e){ 77 } 78 79 return true; 80 81} 82 83 84 85 86 87//ì´ë©ì¼ 주ì ì í 88function email_domain(email_domain,value){ 89 var f_obj = document.getElementById(email_domain); 90 f_obj.value=value; 91 if(value=="") f_obj.style.display=""; 92 else f_obj.style.display="none"; 93} 94function email_domain2(email_domain,value){ 95 var f_obj = document.getElementById(email_domain); 96 f_obj.value=value; 97 if ( value == "" ) { 98 f_obj.style.display = ""; 99 } else { 100 // ** f_obj.style.display = "none"; 101 } 102} 103 104 105 106function add_option(obj,t_name,t_value){ 107 var idx = obj.length; 108 obj.length= idx + 1; 109 110 obj.options[idx].text = t_name; 111 obj.options[idx].value= t_value; 112} 113 114 115 116 117function getBrowsertInfo(){ 118 var $agent = navigator.userAgent; 119 var $s = ""; 120 var $br = {browser:"",browserType:"",browserVer:[]}; 121 122 123 if((/msie 5.0[0-9]*/i).test($agent)) { $s = "MSIE 5.0"; } 124 else if((/msie 5.5[0-9]*/i).test($agent)) { $s = "MSIE 5.5"; } 125 else if((/msie 6.0[0-9]*/i).test($agent)) { $s = "MSIE 6.0"; } 126 else if((/msie 7.0[0-9]*/i).test($agent)) { $s = "MSIE 7.0"; } 127 else if((/msie 8.0[0-9]*/i).test($agent)) { $s = "MSIE 8.0"; } 128 else if((/msie 9.0[0-9]*/i).test($agent)) { $s = "MSIE 9.0"; } 129 else if((/msie 10.0[0-9]*/i).test($agent)) { $s = "MSIE 10.0"; } 130 else if((/windows*/i).test($agent) && (/rv:11.0[0-9]*/i).test($agent)) { $s = "MSIE 11.0"; } 131 else if((/msie 4.[0-9]*/i).test($agent)) { $s = "MSIE 4.x"; } 132 else if((/firefox/i).test($agent)) { $s = "FireFox"; } 133 else if((/safari/i).test($agent)) { $s = "FireFox"; } 134 else if((/x11/i).test($agent)) { $s = "Netscape"; } 135 else if((/opera/i).test($agent)) { $s = "Opera"; } 136 else if((/gec/i).test($agent)) { $s = "Gecko"; } 137 else if((/bot|slurp/i).test($agent)) { $s = "Robot"; } 138 else if((/internet explorer/i).test($agent)) { $s = "IE"; } 139 else if((/mozilla/i).test($agent)) { $s = "Mozilla"; } 140 else { $s = ""; } 141 142 $br.browser = $s; 143 144 if((/msie/i).test($s)){ 145 $br.browserType = "IE"; 146 $br.browserVer = $s.replace("MSIE ","").split("."); 147 } 148 149 return $br; 150 151} 152 153 154var $wbr =getBrowsertInfo(); 155var wsize = null; //ìëì° ì¬ì´ì¦ ì ë³´ 156var psize = null; //컨í ì¸ ì¬ì´ì¦ ì ë³´ 157var lowIeChk = { old_w:0,old_h:0 } 158function getWindowSizeObj(){ 159 var sizeObj = { 160 scr : {w:screen.width,h:screen.height},
161 availscr : {w:screen.availWidth,h:screen.availHeight}, 162 win : (_isLowBr_)? {w:$(window).width(),h:$(window).height()} : {w:window.innerWidth,h:window.innerHeight} //ì¤í¬ë¡¤ì¬ì´ì¦ ì ì¸(ìëì° 8ë¶í° ìëë²ì ìì íì¸ìë¨.ã ã ) 163 164 } 165 return sizeObj; 166} 167function getPageSizeObj(){ 168 var sizeObj = { 169 doc : {w:document.documentElement.scrollWidth,h:document.documentElement.scrollHeight}, 170 scroll : {x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop,top:$(window).scrollTop(),left:$(window).scrollLeft()} ////모ë°ì¼ììë ìì¡í.. 171 , header:{h:$("#header-wrap").height()} , footer:{h:$("#footer-wrap").height() + 1} 172 }; 173 return sizeObj; 174} 175function getWindowSize(){ 176 wsize =getWindowSizeObj(); 177} 178function getPageSize(){ 179 psize = getPageSizeObj(); 180 181 printWinSizeInfo(); 182} 183 184function printWinSizeInfo(){ 185 var str = ""; 186// str +="screen [w : "+wsize.scr.w+", h:"+wsize.scr.h+"]<br/>"; 187// str +="availscr [w : "+wsize.availscr.w+", h:"+wsize.availscr.h+"]<br/>"; 188 str +="window [w : "+wsize.win.w+", h:"+wsize.win.h+"] "; //ì¤í¬ë¡¤ë° í¬í¨í ë¸ë¼ì°ì ìëì° ëì´ 189 str +="doc [w : "+psize.doc.w+", h:"+psize.doc.h+"]<br/>"; 190// str +="scrollpos [w : "+psize.scroll.x+", h:"+psize.scroll.y+"]<br/>"; 191// str +="scrollpos2 [left : "+psize.scroll.x+", top:"+psize.scroll.y+"]<br/>"; 192 $("#testBox").html("[" + $wbr.browser +"]" + str +" /" + $(".div-conts").width()); 193} 194 195 196function setLowBrowser(){ 197 198 $("body").removeClass("isIE7"); 199 try{ 200 if($wbr.browserType=="IE" && $wbr.browserVer[0]<=8){ 201 _isLowBr_ = true; 202 $("body").addClass("isIE7"); 203 204 $("li").each(function(){ 205 if($(this).index() ==0) $(this).addClass("is-first"); 206 if($(this).index() ==($(" > li",$(this).parent()).length -1)) $(this).addClass("is-last"); 207 }); 208 209 /* 210 $("a > span").each(function(){ 211 if($(this).attr("onclick")==undefined || $(this).attr("onclick")==""){ 212 $(this).bind("click",function(){ 213 $($(this).parents("a").get(0)).click(); 214 }); 215 } 216 }); 217 */ 218 } 219 }catch(e){ 220 } 221 222} 223 224 225 // 문ìì´ ê¸¸ì´ êµ¬í기.... 226function calByte(msg) { 227 var t; 228 var msgLen = 0; 229 230 for(var i = 0; i < msg.length; i++) { 231 t = msg.charAt(i); 232 233 if(escape(t).length > 4) 234 msgLen += 2; 235 else if(t != "\r") 236 msgLen++; 237 } 238 239 return msgLen; 240} 241 242 243function trim(v){ return $.trim(v); } 244 245 246 247 function addBookmarkProgram(obj) { 248 title = $(document).attr("title"); 249 url = location.href; 250 var _isMobile_ = false; 251 if(_isMobile_){ 252 return true; 253 } else { 254 try { 255 window.external.AddFavorite(url,title); 256 } catch(e) { 257 alert('ì´ ë¸ë¼ì°ì ììë ì¦ê²¨ì°¾ê¸° 기ë¥ì ì¬ì©í ì ììµëë¤.\ní¬ë¡¬ììë Ctrl í¤ì D í¤ë¥¼ ëìì ëë¬ì ì¦ê²¨ì°¾ê¸°ì ì¶ê°í ì ììµëë¤.'); 258 } 259 return false; 260 } 261 } 262 function pagePrint(){ 263 try{ 264 window.print(); 265 }catch(e){ 266 alert("미ì§ì ë¸ë¼ì°ì ì ëë¤.\nì¹ ë¸ë¼ì°ì ì ì¸ì 기ë¥ì ì´ì©í´ì£¼ì기 ë°ëëë¤."); 267 } 268 } 269 270 271// ê²ìì ë°ì´í° ë¡ë© íë©´ 272function $alert(msg,options){ 273 var options = $.extend({},{w:300,h:120,"btn_label":"íì¸","btn":false},options); 274 var printMsg = msg.replace(/\b\n\b/i,'<br/>'); 275 276 if(options.btn){ 277 var msgHTML = "<div class='popErrorBox'><div class='popErrorMsg'><div class=''>"+printMsg+"</div><div class='popErrorBtns mg10t'><button type='buttom' class='sp-btn closeBtn'><span>íì¸</span></button></div></div>"; 278 }else{ 279 var msgHTML = printMsg; 280 } 281 282 $("body").layerPopup({"message":msgHTML,"width":options.w,"height":options.h}); 283} 284function $alertLoading(msg){ 285 if(msg==undefined) var msg = "ë°ì´í° ì²ë¦¬ì¤ì ëë¤."; 286 var printMsg = msg.replace(/\b\n\b/i,'<br/>'); 287 var msgHTML = "<div class='popErrorBox'><div class='popErrorMsg'><div class=''><img src='/_Img/Common/loading_img01.gif' alt=''/> "+printMsg+"</div></div><div class='popErrorBtns'></div></div>"; 288 289 $("body").layerPopup({"message":msgHTML,"width":300,"height":120}); 290 291} 292function $alertLoadingClose(){ 293 try{$("body").layerPopup("closeLayerPopup");}catch(e){ } 294} 295 296var util = { 297 init : function() { 298 }, 299 alertWsize : function() { 300 alert($(window).width() + " / " + $(window).height()); 301 // ê°¤í 768 * 896 302 }, 303 isPC : function() { 304 var filter = "win16|win32|win64|mac|macintel"; 305 if(navigator.platform){ 306 if(filter.indexOf(navigator.platform.toLowerCase())< 0){ 307 return false; 308 } else { 309 return true; 310 } 311 } 312 }, 313 isIOS : function() { 314 var varUA = navigator.userAgent.toLowerCase(); 315 if(varUA.indexOf("iphone")>-1||varUA.indexOf("ipad")>-1||varUA.indexOf("ipod")>-1) { 316 return true; 317 } else { 318 return false; 319 } 320 }, 321 isAND : function() { 322 var varUA = navigator.userAgent.toLowerCase(); 323 if(varUA.match('android') != null) { 324 return true; 325 } else { 326 return false; 327 } 328 }, 329 isNull : function($obj){ 330 if(typeof $obj != "undefined" && $obj != null && $obj != ""){ 331 return false; 332 } else { 333 return true; 334 } 335 }, 336 Eraser : function($obj, type){ 337 if(type == "hide"){ 338 $obj.hide(); 339 } else if(type != "hide"){ 340 $obj.addClass(type); 341 } 342 }, 343 conBottomEraser : function($obj){ 344 $obj.css({ "padding-bottom":0, "margin-bottom":0 }); 345 }, 346 getQueryStr : function(paramName){ 347 var _tempUrl = window.location.search.substring(1); // ** urlìì ì²ìë¶í° ? ì ì¸ uri 348 var returnVal = ""; 349 if(_tempUrl == ""){ 350 returnVal = "fail"; 351 } else if(_tempUrl.indexOf("&") >= 0 || _tempUrl.indexOf("?") >= 0){ 352 var _tempArray = _tempUrl.split("&"); 353 for (var i=0; i<_tempArray.length; i++){ 354 var _keyValuePair = _tempArray[i].split("="); 355 if(_keyValuePair[0] == paramName){ 356 returnVal = _keyValuePair[1];
357 } 358 } 359 } else { 360 var _tempArray = _tempUrl.split("="); 361 if(_tempArray[0] == paramName) returnVal = _tempArray[1]; 362 } 363 return returnVal; 364 }, 365 isLang : function() { 366 $pageUri = location.href; 367 if($pageUri.indexOf("/kor/") > 0)return "kor"; 368 else if($pageUri.indexOf("/eng/") > 0)return "eng"; 369 }, 370 getNumberOnly : function(str_txt) { 371 val = new String(str_txt); 372 var regex = /[^0-9]/g; 373 val = val.replace(regex, ''); 374 return val; 375 }, 376 getHash : function() { 377 if(window.location.hash) { 378 var hashVal = ""; 379 var hash = window.location.hash.substring(1); 380 if(hash.length === 0) { 381 return false; 382 } else { 383 if(hash.indexOf("&") >=0){ 384 hashVal = hash.split("&")[0]; 385 } else { 386 hashVal = hash; 387 } 388 return hashVal; 389 } 390 } else { 391 return false; 392 } 393 }, 394 frontEndTrimming : function(s){ 395 s += ''; // ì«ìë¼ë 문ìì´ë¡ ë³í 396 return s.replace(/^\s*|\s*$/g, ''); 397 }, 398 convertTimestamp : function($obj){ // ** íìì¤í¬í íìì¼ë¡ ë³ê²½. 399 var dateTmp; 400 var convertTimeStamp; 401 if(typeof $obj == "object"){ 402 var cArrayIdx = 0; 403 var convertResult = new Array(); 404 $.each($obj, function(index, item){ 405 if(item != null){ 406 dateTmp = item.split("-"); 407 convertTimeStamp = dateTmp[1] + "/" + dateTmp[2] + "/" + dateTmp[0]; 408 convertResult[cArrayIdx] = new Date(convertTimeStamp).getTime(); 409 cArrayIdx++; 410 } 411 }); 412 } else if(typeof $obj == "string"){ 413 var convertResult = ""; 414 dateTmp = $obj.split("-"); 415 convertTimeStamp = dateTmp[1] + "/" + dateTmp[2] + "/" + dateTmp[0]; 416 convertResult = new Date(convertTimeStamp).getTime(); 417 } 418 return convertResult; 419 }, 420 convertDatestring : function($str){ // ** 2019-10-21 íìì¼ë¡ ë³ê²½. 421 var d = new Date($str); 422 var s = util.leadingZeros(d.getFullYear(), 4) + "-" + util.leadingZeros(d.getMonth() + 1, 2) + "-" + util.leadingZeros(d.getDate(), 2); 423 return s; 424 }, 425 leadingZeros : function(n, digits){ // ** 리ë©ì ë¡ íìì¼ë¡ ë³ê²½. 426 var zero = ''; 427 n = n.toString(); 428 if(n.length < digits){ 429 for (i=0; i<digits-n.length; i++) zero += '0'; 430 } 431 return zero + n; 432 } 433}
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.