PageSourceSearch

https://www.jeonju.go.kr/planweb/js/common.js

js jeonju.go.kr collected 2026-09-24 19:47:59 UTC 4,680 bytes, 154 lines download raw bytes

1	/**
2	 * 오버레이를 생성한다.
3	 * @param {Object} overlayColor 오버레이의 색상
4	 * @param {Object} zIndex 오버레이 z-index
5	 * @param {Object} overlayOpacity 오버레이 색상의 투명도를 결정한다. (0에 가까울수록 투명화 : 0.0 - 1.0)
6	 */
7	function makeOverlay(overlayColor, zIndex, overlayOpacity) {
8		
9		if (!this.overlay) {
10			this.overlay = $("<div id='overlay' class='overlay'></div>");
11			this.overlay.css({
12				"display" : "none",
13				"position" : "fixed",
14				"height" : "100%",
15				"width"  : "100%",
16				"left" : "0",
17				"top"  : "0",
18				"background" : overlayColor,
19				"z-index" : zIndex,
20				"opacity": overlayOpacity
21			});
22			$('body').prepend(this.overlay);
23		}
24	}
25	
26	// search address
27	function searchPost(url, division) {		
28		$("#overlay").show();
29		$("#addressSearchFrame").attr("width", "400");
30		$("#addressSearchFrame").attr("height", "600");
31		$("#addressSearchFrame").attr("src", url + "&division=" + division);
32		
33		$("#addressSearchWrapper").css("width", 400);
34		$("#addressSearchWrapper").css("height", 600);
35		var wS = $(window).scrollTop();
36		var wH = $(window).height();
37		var lH = $("#addressSearchWrapper").height();
38		var topMargin = wS + (wH / 2) - (lH / 2);
39		if (topMargin < 0) topMargin = 0;
40		
41		$("#addressSearchWrapper").css("top", topMargin);
42		$("#addressSearchWrapper").css("left", $(window).width() / 2 - $("#addressSearchWrapper").width() / 2);
43		$("#addressSearchWrapper").show();
44	}
45	
46	/**
47	 * 페이징(paging)
48	 * @param link 목록 link 예) ./list.9is?page=__id__&searchType=${searchType}&keyword=${keyword}
49	 * @param total 데이터 총 개수
50	 * @param page 현재 페이지
51	 * @param rowCount 페이지당 데이터 개수
52	 */
53	function initPaging(link, total, page, rowCount) {
54		var opts = {
55				'total_record' : total,
56				'current_page' : page,
57				'link_to' : link,
58				'prev_text' : "&lsaquo;",
59				'next_text' : "&rsaquo;",
60				'prev_show_always' :true,
61				'next_show_always' :true ,
62				'block_size' : 10 ,
63				'addTag' : "",
64				'items_per_page' : rowCount
65		}
66			
67		if (total > 0) {
68			opts.selected_tag = "strong";
69			$("#paging").paging(opts);
70		}
71	}
72	
73	// 숫자 체크(숫자만 입력)
74	function checkNumber(Num) {
75		var temp = "";
76		for (var i = 0; i < Num.value.length; i++) {
77			achar = Num.value.substring(i, i + 1);
78			if (achar < "0" || achar > "9") {
79				alert("숫자만 입력해 주세요.");
80				Num.value = temp;
81				if(Num.value.length == 0){Num.value = "";}
82			} else {
83				temp += achar;
84			}
85
86		}		
87	}
88	
89	// 텍스트를 복사한다. (IE에서만 동작)
90	function copyText(text) {
91		window.clipboardData.setData('Text', text);
92		// UID 복사 선택 box 숨기기
93		$(".selectUidCopy").hide();
94		if (window.clipboardData.getData('Text') != "") {
95			alert(window.clipboardData.getData('Text') + "가 복사되었습니다.");
96		}
97	}
98	
99	// 다시 작성
100	function formReset(formId) {
101		if (confirm("다시 작성 하시겠습니까?")) {
102			$("#" + formId).each(function() {
103				this.reset();
104			});
105		}
106	}
107	
108	// 로그인(returnUrl)
109	function loginReturnUrl(URI, parameter) {
110		var returnUrl = URI + "?" + parameter;
111		document.location.href = "/index.9is?resultType=login&returnUrl=" + encodeURIComponent(returnUrl);
112	}
113	
114	// 서브패스 사이트 로그인(returnUrl)
115	function loginReturnUrl(URI, parameter,subPath) {
116		var returnUrl = URI + "?" + parameter;
117		console.log(subPath);
118		document.location.href = subPath+"/index.9is?resultType=login&returnUrl=" + encodeURIComponent(returnUrl);
119	}
120	
121	// 문자열에 포함된 모든 공백 제거
122	function compactTrim(str) {
123		return str.replace(/(\s*)/g, "");
124	}
125	
126	/**
127	 * 기본(action) 외 데이터 삭제
128	 * @param parameter 파라미터 값 예) question
129	 * @param UID parameter에 맞는 UID 값
130	 * @param option 기타 파라미터
131	 */
132	function deleteSubCheck(parameter, UID, option) {
133		if (confirm("삭제하시겠습니까?"))
134			document.location = "./" + parameter + "_action.9is?mode=delete&" + parameter + "Uid=" + UID + "&" + option;
135		else
136			return;
137	}
138	
139	function deleteResercationSubCheck(UID, option){
140		if (confirm("삭제하시겠습니까?"))
141			document.location = "./reservation_total_pension_action.9is?mode=delete&reservationUid=" + UID + "&" + option;
142		else
143			return;
144	}
145	
146	// 천단위 콤마 찍기
147	function commify(n) {
148		var reg = /(^[+-]?\d+)(\d{3})/;		// 정규식
149		n += '';							// 숫자를 문자열로 변환
150		
151		while (reg.test(n)) n = n.replace(reg, '$1' + ',' + '$2');
152		
153		return n;
154	}

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.