PageSourceSearch

https://www.ulju.ulsan.kr/common/js/common/common.js?v=260320

js ulju.ulsan.kr collected 2026-09-24 10:00:28 UTC 5,384 bytes, 179 lines download raw bytes

1(function () {
2	var token = $("meta[name='_csrf']").attr("content");
3	var header = $("meta[name='_csrf_header']").attr("content");
4	var param = $("meta[name='_csrf_parameter']").attr("content");
5
6	if (token && header) {
7		$(document).ajaxSend(function (e, xhr, options) {
8			xhr.setRequestHeader(header, token);
9		});
10	}
11
12	if (token && param) {
13		$(document).ready(function () {
14			$('form').each(function () {
15				if ($(this).find('input[name="' + param + '"]').length === 0) {
16					$(this).append('<input type="hidden" name="' + param + '" value="' + token + '"/>');
17				}
18			});
19		});
20	}
21})();
22
23function goSite(obj, frm) {
24	frm.action = obj.value;
25	frm.submit();
26}
27
28// 검색 엔진
29function searchEngine() {
30	var speachText = document.getElementById("qt");
31	if (speachText.value == '') {
32		alert("검색어를 입력해 주세요.");
33		speachTex.focus();
34		return false;
35	}
36
37	return true;
38}
39
40
41// layout 팝업 컨트롤
42function LayoutShow(showpop) {
43	var objDiv = document.getElementById(showpop);
44
45	if (objDiv.style.display == "block") {
46		objDiv.style.display = "none";
47	} else {
48		objDiv.style.display = "block";
49	}
50}
51
52function footerShow(showpop) {
53	jQuery("#footer_link_box").children().each(function () {
54		if (jQuery(this).children().filter("div").first().attr("id") == showpop) {
55			if (jQuery(this).children().filter("div").first().css("display") == "none") {
56				jQuery(this).children().filter("div").first().show();
57			} else {
58				jQuery(this).children().filter("div").first().hide();
59			}
60		} else {
61			jQuery(this).children().filter("div").first().hide();
62		}
63	});
64}
65
66function goPopup(url, w, h, l, t, ScrollbarsYn, name) {
67	if (ScrollbarsYn == 'Y') {
68		ScrollbarsYn = "yes";
69	} else {
70		ScrollbarsYn = "no";
71	}
72	var x = (screen.availWidth - w) / 2;
73	var y = (screen.availHeight - h) / 2;
74	window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', location=no ,scrollbars=' + ScrollbarsYn);
75}
76
77
78function goPopup2(url, w, h, l, t, ScrollbarsYn, resizable, name) {
79	if (ScrollbarsYn == 'Y') {
80		ScrollbarsYn = "yes";
81	} else {
82		ScrollbarsYn = "no";
83	}
84	var x = (screen.availWidth - w) / 2;
85	var y = (screen.availHeight - h) / 2;
86	window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', resizable=' + resizable + ', location=no ,scrollbars=' + ScrollbarsYn);
87}
88
89// 포탈 메인 시계 표시
90var dayNames = new Array("(일)", "(월)", "(화)", "(수)", "(목)", "(금)", "(토)");
91function clock(dobj, tobj) {
92	dt = new Date();
93	// 시간과 관련된 정보를 저장한다.
94	hours = dt.getHours();
95	minutes = dt.getMinutes();
96	seconds = dt.getSeconds();
97	timeStr = hours;
98	timeStr += ((minutes < 10) ? ":0" : ":") + minutes;
99	timeStr += ((seconds < 10) ? ":0" : ":") + seconds;
100	// 폼의 시간을 표시하는 입력란에 문자열을 출력한다.
101	jQuery("#" + tobj).text(timeStr);
102	// 일자와 관련된 정보를 저장한다.
103	months = dt.getMonth() + 1;
104	days = dt.getDate();
105	years = dt.getFullYear();
106	dateStr = years + "년 ";
107	dateStr += ((months < 10) ? "0" : "") + months + "월 ";
108	dateStr += ((days < 10) ? "0" : "") + days + "일" + dayNames[dt.getDay()];
109
110	// 폼의 일자를 표시하는 입력란에 문자열을 출력한다.
111	jQuery("#" + dobj).text(dateStr);
112	// 1초마다 일자와 시간을 갱신한다.
113	Timer = setTimeout("clock('" + dobj + "','" + tobj + "')", 1000);
114}
115
116function goFileOld(file, path) {
117	//window.open(yh.contextPath + '/common/file_down.jsp?path=/portal/download' + path + "/&filename=" + file);
118	window.open(yh.contextPath + '/download' + path + "/" + encodeURIComponent(file));
119	//encodeURI(file)
120}
121
122function goFile(file, path) {
123	//window.open(yh.contextPath + '/common/file_down.jsp?path=/portal/download' + path + "/&filename=" + file);
124	window.open(yh.contextPath + '/FileDown_direct.do?path=' + path + "&file=" + encodeURIComponent(file));
125	encodeURI(file)
126}
127
128//사이트별팝업창 쿠키값 get 스크립트
129function getCookie(name) {
130	var nameOfCookie = name + "=";
131	var x = 0;
132	while (x <= document.cookie.length) {
133		var y = (x + nameOfCookie.length);
134		if (document.cookie.substring(x, y) == nameOfCookie) {
135			if ((endOfCookie = document.cookie.indexOf(";", y)) == -1)
136				endOfCookie = document.cookie.length;
137			return unescape(document.cookie.substring(y, endOfCookie));
138		}
139		x = document.cookie.indexOf(" ", x) + 1;
140		if (x == 0)
141			break;
142	}
143	return "";
144}
145
146function openWindow(url, lecName) {
147	window.open(url, lecName, "width=800,height=600,resizable=yes,menubar=no,scrollbars=yes");
148}
149
150function openWindow2(url, lecName) {
151	window.open(url, lecName, "width=1014,height=650,resizable=yes,menubar=no,scrollbars=yes");
152}
153
154/**
155 * 오직 숫자만 입력이 가능함.
156 * @param loc
157 * @return
158 */
159function onlyNumber2(loc) {
160	if (/[^0123456789]/g.test(loc.value)) {
161		alert("숫자 이외의 문자는 입력할 수 없습니다.");
162		loc.value = "";
163		loc.focus();
164	}
165}
166
167// scrollTop 버튼
168$(window).scroll(function () {
169	if ($(this).scrollTop() > 200) {
170		$('.btn_scroll_top').fadeIn();
171	} else {
172		$('.btn_scroll_top').fadeOut();
173	}
174});
175
176$('.btn_scroll_top').click(function () {
177	$('html, body').animate({ scrollTop: 0 }, 400);
178	return false;
179});

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.