PageSourceSearch

https://www.eyagi.co.kr/shop/include/js/common-script.js?1790244271

js eyagi.co.kr collected 2026-09-24 10:04:59 UTC 2,682 bytes, 110 lines download raw bytes

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.