PageSourceSearch

https://www.gg.go.kr/assets/js/common.js?v=1.3.5

js gg.go.kr collected 2026-10-01 10:25:48 UTC 2,989 bytes, 106 lines download raw bytes

1function moneyFormat(num)
2{
3   num = String(num);
4   var arrStr = num.split(".");
5   var strFront = "";
6   var strTail = 1 < arrStr.length ? "."+ arrStr[1] : "";
7   var pos = 0;
8   var str = "";
9
10   if(num.charAt(0) == "-") strFront = "-";
11
12   num = arrStr[0];
13
14   if(num){
15      num = num.replace(/\D/g, "");
16
17      if(1 < num.length){
18         num = num.replace(/^0+(?=\d)/, "");
19
20         if(1 < num.length){
21            num = num.split("");
22
23            for(var i=num.length-1; 0<i; i--){
24               if(++pos % 3 == 0) num[i] = ","+ num[i];
25               str = num[i] + str;
26            }
27            str = num[i] + str;
28         }else{
29            str = num;
30         }
31      }else{
32         str = num;
33      }
34   }
35
36   return strFront + str + strTail;
37}
38
39
40// 파일 아이콘 처리
41function getFileIconImg(extension)
42{
43	if(extension && extension.trim()){
44		extension = extension.toLowerCase();
45	
46		var icons = ["wav", "pdf", "xml", "mpeg", "zip", "mov", "flv", "xlsx", "hwp" , "hwpx" , "fla", "pptx", "png", "avi", "mpg", "swf", "asf", "wma", "psd", "eml", "doc", "jpg", "jpeg","gif", "ppt", "txt", "docx", "alz", "exe", "wmv", "bmp", "xls"];
47		var altText = "";
48	
49		for(var i in icons){
50			if(icons[i] == extension){
51				altText = icons[i] +" ";
52				break;
53			}
54		}
55
56		return "<img src=\"/common/images/file_icon/"+ extension +".gif\" onerror=\"this.src=this.src.replace(/[^\/]+$/, 'default.gif')\" alt=\""+ altText +"첨부파일\">";
57	}
58}
59
60
61function telAction()
62{
63	if(/Mac OS|Android/i.test(navigator.userAgent) == false && 499 < $(window).width()){
64		return false;
65	}
66}
67
68
69$(function(){
70		var $datepickers = $.datepicker ? $("input.datepicker, .s-f-board-default .date input") : [];
71
72		if(0 < $datepickers.length){
73			setTimeout(function(){
74					$datepickers = $datepickers.not("[data-bv-field]");
75					$datepickers.datepicker({
76							dateFormat: "yy-mm-dd",
77							prevText: "이전 달",
78							nextText: "다음 달",
79							monthNames: ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],
80							monthNamesShort: ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],
81							dayNames: ["일","월","화","수","목","금","토"],
82							dayNamesShort: ["일","월","화","수","목","금","토"],
83							dayNamesMin: ["일","월","화","수","목","금","토"],
84							yearSuffix: "년",
85							yearRange: "-60:+0",
86							changeYear: true,
87							changeMonth: true,
88							showMonthAfterYear: true
89					});
90					$datepickers.attr("autocomplete", "off");
91			}, 5);
92		}
93
94
95		$.ajax({
96				method: "get",
97				url: "/ajax/isLogin.do",
98				dataType: "text",
99				timeout: 2500,
100				success: function(isLogin){
101					if(isLogin == "1"){
102						$("#navigation .etc-menu").prepend("<i class=\"fal fa-sign-out\" aria-hidden=\"true\"></i><a href=\"/logout.do\"> 로그아웃</a>");
103					}
104				}
105		});
106});

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.