PageSourceSearch

https://ekdp.com/static/cw/asset/js/comUtil.js

js ekdp.com collected 2026-10-04 14:38:59 UTC 2,324 bytes, 92 lines download raw bytes

1//url parameter
2function GetURLParameter(sParam){ 
3	var sPageURL = window.location.search.substring(1); 
4	var sURLVariables = sPageURL.split('&'); 
5	for (var i = 0; i < sURLVariables.length; i++) { 
6		var sParameterName = sURLVariables[i].split('='); 
7		if (sParameterName[0] == sParam) { 
8			return sParameterName[1]; 
9		} 
10	} 
11}
12
13//스크립트 로드
14function LoadScript(src){
15	var tag = document.createElement('script');
16	tag.src = src;
17	var firstScriptTag = document.getElementsByTagName('script')[0];
18	firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
19}
20
21//브라우저 관계 없이 iframe 내 content 가져오기.
22function getIframeContent(id)
23{
24	var ifrm = document.getElementById(id);
25	return ifrm.contentWindow || ifrm.contentDocument;
26}
27
28//천단위변경
29function addComma(value){
30	$(value).each(function(index){
31		$(this).text($(this).text().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
32	});
33}
34
35//퍼센트구하기
36function getRatePer(min, max, value){
37	var range = max - min;
38	var tg = value - min;
39	var per = tg / range;
40	return per * 100;
41}
42
43//value구하기
44function getRateValue(min, max, per){
45	var range = max - min;
46	var tg = range * per;
47	var value = tg + min;
48	return value / 100;
49}
50
51//이미지 on 으로 변경
52function offToOn(obj)
53{
54	obj.attr('src', obj.attr('src').replace('_off', '_on'));
55	return obj;
56}
57
58//이미지 off 으로 변경
59function onToOff(obj)
60{
61	obj.attr('src', obj.attr('src').replace('_on', '_off'));
62	return obj;
63}
64
65function offBodyScroll(){
66	$('body, html').css('overflow','hidden');
67}
68
69function onBodyScroll(){
70	$('body, html').css('overflow','');
71}
72
73//숫자만 입력 inpuOnlyNumber(obj);	
74function inpuOnlyNumber(obj) {
75	$(obj).keydown(function(e){
76		// Allow: backspace, delete, tab, escape, enter and .
77		if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
78			// Allow: Ctrl+A
79			(e.keyCode == 65 && e.ctrlKey === true) || 
80			// Allow: home, end, left, right
81			(e.keyCode >= 35 && e.keyCode <= 39)) {
82				
83				// let it happen, don't do anything
84				return;
85		}
86		
87		// Ensure that it is a number and stop the keypress
88		if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
89			e.preventDefault();
90		}
91	});
92}

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.