1 2 3 //íì ë§ë¤ê¸° 4 function createPopUp(url, params, name, option){ 5 window.open(url+'?'+params, name, option); 6 } 7 8 //ì¤ëë ì§ ë¦¬í´ 9 function getToday(delim) { 10 11 var todate = new Date(); 12 var yyyy = todate.getFullYear(); 13 var mm = todate.getMonth()+1; 14 var dd = todate.getDate(); 15 16 return yyyy + delim + mm + delim + dd; 17 } 18 19 //ì¤ëë ì§ìê° ë¦¬í´ 20 function getTodayTime(delim) { 21 22 var todate = new Date(); 23 var yyyy = todate.getFullYear(); 24 var mm = todate.getMonth()+1; 25 var dd = todate.getDate(); 26 var gethour = todate.getHours(); 27 var getminute = todate.getMinutes(); 28 29 return yyyy + delim + mm + delim + dd + delim + gethour + delim + getminute; 30 } 31 32 //콤ë§ì°ê¸° 33 function numberFormat(num) { 34 var reg = /(^[+-]?\d+)(\d{3})/; // ì ê·ì 35 num += ''; // ì«ì를 문ìì´ë¡ ë³í 36 37 while (reg.test(num)) 38 num = num.replace(reg, '$1' + ',' + '$2'); 39 return num; 40 } 41 42 //ì½¤ë§ + ì 43 function numberFormatWith(num) { 44 var reg = /(^[+-]?\d+)(\d{3})/; // ì ê·ì 45 num += ''; // ì«ì를 문ìì´ë¡ ë³í 46 47 while (reg.test(num)) 48 num = num.replace(reg, '$1' + ',' + '$2'); 49 return num + 'ì'; 50 } 51 52 //ì½¤ë§ ì ê±° 53 function rmvComma(num) { 54 if (num.length == 0) return ""; 55 return num.replace( /,/g, "" ); 56 } 57 58 //0ë¶ì´ê¸° 59 var leadingZeros = function (date, num) { 60 var zero = ''; 61 date = date.toString(); 62 63 if (date.length < num) { 64 for (i = 0; i < num - date.length; i++) 65 zero += '0'; 66 } 67 return zero + date; 68 } 69 70 71 //ìë¸ë° í¨ì(getë°©ì) 72 function formGetSubmit( url, param ){ 73 $( location ).attr( 'href', url+'?'+param ); 74 } 75 76 //ìë íì´í 77 function autoHypen(data, datalen, delim){ 78 var tempdata = ''; 79 data = $.trim(data.replace(eval('/'+delim+'/gi'),'')); 80 81 if (data) { 82 tempdata = data.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); 83 } 84 85 if(tempdata.length > datalen){ 86 tempdata = tempdata.slice(0, datalen); 87 } 88 return tempdata; 89 } 90 91 92 //input max length 93 function maxLengthCheck(object){ 94 if(object.value.length > object.maxLength){ 95 object.value = object.value.slice(0, object.maxLength); 96 } 97 } 98 99 //ìë focus 100 $(document).on('keyup', '.nextFocus', function(){ 101 var $maxlength = $(this).attr('maxlength'); 102 var $nextId = $(this).data('next-id'); 103 var $val = $(this).val(); 104 105 $(this).off('keyup'); 106 if($val.length >= $maxlength) { 107 if($nextId) $($nextId).focus(); 108 } 109 }); 110
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.