1function newWin(file,width,height,scroll,resize,leftPoint){ 2 3 var topPoint = (screen.height/2)-(height/2); 4 var leftPoint = (screen.width/2)-(width/2); 5 6 scroll = (scroll =='' )? 'no' : scroll; 7 resize = (resize =='' )? 'no' : resize; 8 9 window.open (file,"","scrollbars="+scroll+",resizable="+resize+",width="+width+",height="+height+",top="+topPoint+",left="+leftPoint); 10} 11 12function newWin2(file,width,height,scroll,resize,title){ 13 14 var topPoint = (screen.height/2)-(height/2); 15 var leftPoint = (screen.width/2)-(width/2); 16 17 scroll = (scroll =='' )? 'no' : scroll; 18 resize = (resize =='' )? 'no' : resize; 19 20 var pop = window.open (file,title,"scrollbars="+scroll+",resizable="+resize+",width="+width+",height="+height+",top="+topPoint+",left="+leftPoint); 21 //try { pop.focus(); } catch(e){ alert( "íì ì´ ì°¨ë¨ëì´ ììµëë¤." );} 22} 23 24function newWin3(file,width,height,title){ 25 26 var topPoint = (screen.height/2)-(height/2); 27 var leftPoint = (screen.width/2)-(width/2); 28 29 scroll = 'no'; 30 resize = 'no'; 31 32 window.open (file,title,"scrollbars="+scroll+",resizable="+resize+",width="+width+",height="+height+",top="+topPoint+",left="+leftPoint); 33} 34 35 36 37function number_format(number,decimals ){ 38 var number_str = String(number); 39 var new_number_str = ''; 40 number_info = number_str.split('.'); 41 number_info_int = number_info[0]; 42 if (decimals != null ) { 43 if (decimals > 0) new_number_str ='.' + ((decimals > 0) ?Math.round(Number('0.' +number_info[1]) * Math.pow(10, decimals)):''); 44 else if (decimals < 0) number_info_int = String(Math.round(Number(number_info[0]) / Math.pow(10, decimals *(-1))) *Math.pow(10, decimals*(-1))); 45 } 46 len = number_info_int.length; 47 for (i = len; i >= 0; i--) { 48 if ( (len - i) > 1 && (len - i) % 3 == 1) new_number_str = ',' + new_number_str; 49 new_number_str = number_info_int.substring(i, i+1) + new_number_str; 50 } 51 return new_number_str; 52 53 /* 54 alert(number_format(123446.234 ,-2)); // 100 ë¨ììì ë°ì¬ë¦¼ 55 alert(number_format(123446.234 ,2)); // ììì 2ì리 ê¹ì§ë§ íì 56 alert(number_format(123446.234)); // ê°ì¥ ì¼ë°ì ì¸ íí 57 */ 58} 59 60 61//ê´ë¦¬ì ë©ë´ì ë©ë´ì ë§ì°ì¤ ì´ë²¤í¸ ë°ì í¨ì 62function menuC(fm,assort){ 63 if(assort==1){ 64 bgColor = "#EEEEFF"; 65 fontColor = "#9900FF"; 66 }else{ 67 bgColor = "#FFFFFF"; 68 fontColor = "#000000"; 69 } 70 71 fm.style.backgroundColor=bgColor; 72 fm.style.color=fontColor; 73} 74 75//ì ë ¥ ì릿ìê° ì°¨ë©´ ë¤ì í목ì¼ë¡ ì´ë 76function next_col(obj,lng,next_id){ 77 let str=obj.value; 78 if(str.length>=parseInt(lng) && next_id!=""){ 79 document.getElementById(next_id).focus(); 80 } 81} 82 83 84//ìí°ì¹ë©´ ë¤ìì¼ë¡ 85function nextCol(fm){ 86 if(event.keyCode==13){ 87 event.keyCode=8 88 fm.focus(); 89 } 90} 91 92 93//ë¸ë¼ì°ì íë³ 94function chk_bw(){ 95 var bw = navigator.appName; 96 var result; 97 if(bw=='Microsoft Internet Explorer'){ 98 result = 'ms'; 99 }else{ 100 result = 'other'; 101 } 102 return result; 103} 104 105 106//문ìì´ ì¹í 107function str_replace(str,src,dest){ 108 var reg = new RegExp(src,"gi"); 109 return str.replace(reg,dest); 110} 111 112 113//íê¸ ê²ì¦ 114function check_kor(fm){ 115 var str = fm.value; 116 for(i=0; i<str.length; i++) 117 { 118 if(!((str.charCodeAt(i) > 0x3130 && str.charCodeAt(i) < 0x318F) || (str.charCodeAt(i) >= 0xAC00 && str.charCodeAt(i) <= 0xD7A3))) 119 { 120 alert("ë°ëì íê¸ë§ ì ë ¥íì¸ì"); 121 fm.value = ""; 122 return false; 123 } 124 else; // ì²ë¦¬ 125 } 126} 127 128function cancel(str){ 129 let url = str; 130 if(str=="" || str ==undefined) url = "index.html"; 131 if(confirm('ì·¨ìíìê² ìµëê¹?')){ 132 if(str=='close') self.close(); 133 else location.href=url; 134 } 135} 136 137function back(){ 138 history.back(-1); 139} 140 141function url(url){ 142 location.href=url; 143} 144 145function chk_pwd(pwd){ 146 147 if(!pwd.match(/([a-z0-9].*[\{\}\[\]\/?.,;:|)*~`!^\-_+\<>@#\$%&'"\\(=])|([\{\}\[\]\/?.,;:|)*~`!^\-_+\<>@#\$%&'"\\(=].*[a-z0-9])/)) { 148 alert("ë¹ë°ë²í¸ë ì문,ì«ì,í¹ì문ì를 모ë ì¬ì©íì ì¼ í©ëë¤. \n\nì문ì ëì문ì를 구ë¶í©ëë¤."); 149 return false;
150 }else{ 151 return true; 152 } 153 154} 155 156function comma(no){ 157 var num = no.toString().replace(/,/g, ''); 158 return num.replace(/\B(?=(\d{3})+(?!\d))/g, ","); 159} 160// 목ì : ì«ì + ììì ì ë ¥ì ëí´ ì½¤ë§ ì ì©, ë§ì§ë§ 문ìê° '.' ì´ì´ë ì ì§ 161function comma2(no){ 162 var raw = no.toString(); 163 var keep_dot = raw.slice(-1) === '.'; // ë§ì§ë§ 문ìê° '.' ì¸ì§ ì¬ë¶ 164 165 var str = raw.replace(/,/g, ''); 166 var parts = str.split('.'); 167 168 var int_part = parts[0]; 169 var dec_part = parts.length > 1 ? parts[1] : ''; 170 171 int_part = int_part.replace(/\B(?=(\d{3})+(?!\d))/g, ","); 172 173 var result = dec_part ? int_part + '.' + dec_part : int_part; 174 175 // ë§ì§ë§ì´ '.' ì´ìì¼ë©´ ê·¸ëë¡ ì ì§ 176 if (keep_dot && dec_part === '') { 177 result = int_part + '.'; 178 } 179 180 return result; 181} 182function strip_comma(no) { 183 return no.replace(/,/g, ""); 184} 185 186 187 188function top_scroll(){ 189 var offset = $("#wrap").offset(); 190 $('html, body').animate({scrollTop : offset.top}, 400); 191} 192 193function print_preview(){ 194 195 var browser = navigator.userAgent.toLowerCase(); 196 if ( -1 != browser.indexOf('chrome') ){ 197 window.print(); 198 }else if ( -1 != browser.indexOf('trident') ){ 199 try{ 200 //ì¹ ë¸ë¼ì°ì 컨í¸ë¡¤ ìì± 201 var webBrowser = '<OBJECT ID="previewWeb" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 202 203 //ì¹ íì´ì§ì ê°ì²´ ì½ì 204 document.body.insertAdjacentHTML('beforeEnd', webBrowser); 205 206 //ExexWB ë©ìë ì¤í (7 : 미리보기 , 8 : íì´ì§ ì¤ì , 6 : ì¸ìí기(ëíìì)) 207 previewWeb.ExecWB(7, 1); 208 209 //ê°ì²´ í´ì 210 previewWeb.outerHTML = ""; 211 }catch (e) { 212 alert("- ë구 > ì¸í°ë· ìµì > ë³´ì í > ì 뢰í ì ìë ì¬ì´í¸ ì í\n 1. ì¬ì´í¸ ë²í¼ í´ë¦ > ì¬ì´í¸ ì¶ê°\n 2. ì¬ì©ì ì§ì ìì¤ í´ë¦ > ì¤í¬ë¦½í í기 ìì íì§ ìì ê²ì¼ë¡ íìë ActiveX 컨í¸ë¡¤ (ì¬ì©)ì¼ë¡ ì²´í¬\n\nâ» ì ì¤ì ì íë¦°í¸ ê¸°ë¥ì ì¬ì©í기 ìí¨ì"); 213 } 214 215 } 216 217} 218 219function checked_all(class_name,obj){ 220 $("."+class_name).attr("checked",obj.checked); 221} 222 223 224function ftc(str){ 225 var wrkr_no = numbersOnly = str.replace(/\D/g, "") 226 var url ="https://www.ftc.go.kr/info/bizinfo/communicationViewPopup.jsp?wrkr_no="+wrkr_no; 227 window.open(url, "communicationViewPopup", "width=750, height=700;"); 228} 229 230function sns_share(sns) { 231 var thisUrl = document.URL; 232 var snsTitle = "<?=$rs2[subject]?>"; 233 if( sns == 'facebook' ) { 234 var url = "http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(thisUrl); 235 window.open(url, "", "width=486, height=286"); 236 } 237 else if( sns == 'twitter' ) { 238 var url = "http://twitter.com/share?url="+encodeURIComponent(thisUrl)+"&text="+encodeURIComponent(snsTitle); 239 window.open(url, "tweetPop", "width=486, height=286,scrollbars=yes"); 240 } 241 else if( sns == 'band' ) { 242 var url = "http://www.band.us/plugin/share?body="+encodeURIComponent(snsTitle)+"&route="+encodeURIComponent(thisUrl); 243 window.open(url, "shareBand", "width=400, height=500, resizable=yes"); 244 } 245} 246 247/*ë¹ê° ì²´í¬*/ 248function is_empty(str){ 249 if(typeof str == "undefined" || str == null || str == "") 250 return true; 251 else 252 return false ; 253} 254 255 256function phone_type(input) { 257 const cleaned = input.replace(/\D/g, ''); 258 259 if (cleaned.length === 8) { 260 return cleaned.replace(/(\d{4})(\d{4})/, '$1-$2'); 261 } 262 else if (cleaned.length === 10) { 263 if (cleaned.startsWith('02')) { 264 return cleaned.replace(/(\d{2})(\d{4})(\d{4})/, '$1-$2-$3'); 265 } 266 return cleaned.replace(/(\d{3})(\d{3})(\d{4})/, '$1-$2-$3'); 267 } 268 else if (cleaned.length === 11) { 269 return cleaned.replace(/(\d{3})(\d{4})(\d{4})/, '$1-$2-$3'); 270 } else { 271 return input; 272 } 273} 274 275 276/*캡차ì´ë¯¸ì§ ìë¡ê³ 침*/ 277function reload_captcha(){ 278 $("#img_captcha").attr("src","/comm/script/captcha.php"); 279} 280 281 282$(function(){ 283 284 $(".numberic,.numberic_m").on("focus",function(){this.select();}); 285 $(".numberic").keyup(function() { 286 var val = $(this).val(); 287 val = val.replace(/(?!^)-/g, ''); 288 val = val.replace(/[^0-9-]/g, ''); 289 $(this).val(val); 290 }); 291 $(".numberic_m").keyup(function() { 292 var val = $(this).val(); 293 // 맨 ìì - ë§ íì© 294 val = val.replace(/(?!^)-/g, '');
295 // 첫 ë²ì§¸ . ë§ ë¨ê¸°ê³ ëë¨¸ì§ . ì ê±° 296 val = val.replace(/(\..*)\./g, '$1'); 297 // ì«ì, ., - ë§ íì© 298 val = val.replace(/[^0-9\.-]/g, ''); 299 $(this).val(val); 300 }); 301 302 303 $('.comma').on('keyup', function(e) { 304 $(this).val(comma(this.value)); 305 if (e.keyCode === 9) { 306 var $this = $(this); 307 setTimeout(function() { 308 $this.select(); 309 }, 0); 310 } 311 }); 312 $('.comma2').on('keyup', function() { 313 $(this).val(comma2(this.value)); 314 }); 315 $('.comma').on('mouseup', function() { 316 $(this).select(); 317 }); 318 319 320 $("#keyword").on('focus',function(){ 321 if($(this).val()=="ê²ìì´ë¥¼ ì ë ¥í´ì£¼ì¸ì.") $(this).val(''); 322 }); 323 $("#keyword").on('blur',function(){ 324 if($(this).val()=="") $(this).val(''); 325 }); 326 327 328 $(".dateinput").datepicker({ 329 dateFormat: "yy/mm/dd", 330 numberOfMonths: 1, 331 showMonthAfterYear: true, 332 showButtonPanel: true, 333 changeMonth: true, 334 changeYear: true, 335 closeText: 'ë«ê¸°', 336 prevText: 'ì´ì ', 337 nextText: 'ë¤ì', 338 currentText: 'ì¤ë', 339 monthNames: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 340 monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], 341 dayNames: ['ì¼','ì', 'í', 'ì', '목', 'ê¸', 'í '], 342 dayNamesShort: ['ì¼','ì', 'í', 'ì', '목', 'ê¸', 'í '], 343 dayNamesMin: ['ì¼','ì', 'í', 'ì', '목', 'ê¸', 'í '], 344 weekHeader: 'ì¼', 345 }); 346 347 348 $(".biz_no,#biz_no").mask("000-00-00000"); 349 $(".birth,.dateinput").mask("0000/00/00"); 350 $('.birth6').mask('000000'); 351 $('.birth8').mask('000000-0'); 352 $('#cell,.cell').mask('000-0000-0000'); 353 /* 354 $(".cell").on("keyup",function(){ 355 $(this).val( $(this).val().replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-") ); 356 }); 357 */ 358 $('#cell1').mask('000'); 359 $('#cell2').mask('0000'); 360 $('#cell3').mask('0000'); 361 $('#phone1').mask('0000'); 362 $('#phone2').mask('0000'); 363 $('#phone3').mask('0000'); 364 $('.ip').mask('0ZZ.0ZZ.0ZZ.0ZZ', { 365 translation: { 366 'Z': { 367 pattern: /[0-9]/, optional: true 368 } 369 } 370 }); 371 372 $("#cell1").on("keyup",function(){next_col(this,3,'cell2');}); 373 $("#cell2").on("keyup",function(){next_col(this,4,'cell3');}); 374 $("#cell3").on("keyup",function(){next_col(this,4,'');}); 375 376 // ì¤ì ì¬íì í´ëí° ë¶ë¦¬ ì ë ¥ íë: ë¶ì¬ë£ê¸°Â·ë¹ 른ì°í ì maxlength ê°ì 377 // paste ì§í input ì´ë²¤í¸ìì ì«ìë§ ì¶ì¶ í ì리ì ì í 378 $(document).on('input', '[id^="tourist_cell1_"]', function() { 379 var val = $(this).val().replace(/[^0-9]/g, ''); 380 $(this).val(val.slice(0, 3)); 381 }); 382 $(document).on('input', '[id^="tourist_cell2_"],[id^="tourist_cell3_"]', function() { 383 var val = $(this).val().replace(/[^0-9]/g, ''); 384 $(this).val(val.slice(0, 4)); 385 }); 386 $("#phone1").on("keyup",function(){next_col(this,3,'phone2');}); 387 $("#phone2").on("keyup",function(){next_col(this,4,'phone3');}); 388 $("#phone3").on("keyup",function(){next_col(this,4,'');}); 389 $(".phone").on("keyup",function(){ 390 console.log($(this).val()); 391 let phone = $(this).val(); 392 phone = phone_type(phone); 393 $(this).val(phone); 394 }); 395 396 $(".img_resize").imgLiquid(); 397 398 399 $(".airport").autocomplete({ 400 source: "/comm/script/data_airport.php", 401 minLength: 1, 402 focus: function(event, ui) { 403 return false; 404 } 405 }); 406 407 408 $("#keyword").autocomplete({ 409 source: "/comm/script/data_keyword.php", 410 minLength: 1, 411 focus: function(event, ui) { 412 return false; 413 } 414 }); 415 416 $(".draggable").draggable(); 417 418 $('input').attr('autocomplete', 'off'); 419 420});
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.