PageSourceSearch

https://www.mmk.or.kr/_public/jap/js/common.js

js mmk.or.kr collected 2026-09-24 19:07:28 UTC 1,428 bytes, 66 lines download raw bytes

1// textarea 높이 자동증가
2	function textarea_height(obj)
3	{
4		if (obj.type == "textarea")
5		{
6			var this_height = obj.style.height;
7
8			if (obj.scrollHeight > 60)
9				obj.style.height = obj.scrollHeight;
10		}
11	}
12
13// 쿠키값 체크후 이동
14	function Go_cookie(where)
15	{
16		if (!GetCookie('c_id'))
17		{
18			alert('로그인 후 이용해주세요.');
19		}
20		else
21		{
22			document.location.href = where;
23		}
24	}
25
26	function Go_del_eng(where)
27	{
28		if (confirm("Are you sure you want to delete?"))
29			document.location.href = where;
30	}
31
32// 쿠키굽기
33	function setCookie(name, value, expiredays)
34	{
35		var todayDate = new Date();
36		todayDate.setDate( todayDate.getDate() + expiredays);
37		document.cookie = name +"="+ escape( value ) +"; path=/; domain=.ssmachinery.pointweb.kr";
38	}
39
40// 쿠키가져오기
41	function GetCookie(name)
42	{
43		var result = null;
44		var myCookie = " "+ document.cookie +";";
45		var searchName = " "+ name +"=";
46		var startOfCookie = myCookie.indexOf(searchName);
47		var endOfCookie;
48		if (startOfCookie != -1)
49		{
50			startOfCookie += searchName.length;
51			endOfCookie = myCookie.indexOf(";", startOfCookie);
52			result = unescape(myCookie.substring(startOfCookie, endOfCookie));
53		}
54		return result;
55	}
56
57// 사이트 언어 변경
58	function change_lang(language)
59	{
60		setCookie("cfg_site_language", language, 0);
61		if(language == "" || language == "kr") {
62			Go("/");
63		}else{
64			Go("/"+language+"/");
65		}
66	}

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.