PageSourceSearch

https://www.kscm.re.kr/inc/js/lib.js?ver=2026100712

js kscm.re.kr collected 2026-10-07 03:36:22 UTC 5,921 bytes, 192 lines download raw bytes

1//==========================================================================================================
2//기능설명			: 라이브러리js (libs/class 와 연동)
3//==========================================================================================================
4var Lib = {};
5Lib.movesort = function (parm) {
6    var o = $.extend({
7        snode	: null,
8        url		: null
9    },parm || {});
10
11    var moveSort = "";
12    var sort 	 = "";
13    var seq 	 = "";
14
15    o.snode.draggable({
16        start: function(){
17            $(this).css("opacity",0.8);
18            seq = $(this).attr("seq");
19            sort = $(this).attr("sort");
20            $(this).css("z-index","100000");
21        },
22        stop : function(){
23            document.location.reload();
24        }
25    });
26
27    o.snode.css("cursor","move");
28
29    o.snode.droppable({
30        tolerance: "pointer",
31        drop: function( event, ui ) {
32            moveSort = $(this).attr("sort");
33
34            $.ajax({
35                type: 'post',
36                url: o.url,
37                dataType: 'html',
38                async	: false,
39                data : {
40                    moveSort : moveSort,
41                    seq : seq,
42                    sort : sort
43                },
44                success: function (data) {
45                    document.location.reload();
46                }
47            });
48        },
49        over: function( event, ui ) {
50            $(this).css("background-color","#97b1ff");
51        },
52        out: function( event, ui ) {
53            $(this).css("background-color","");
54        }
55    });
56};
57
58Lib.ubireport = function (parm) {
59    var o = $.extend({
60        btnNode         : null,
61        valNode	        : null,
62        reportSeq	: null
63    },parm || {});
64
65    var ccl = function(){
66        $("[name^='modPop']").remove();
67    };
68
69    var sel = function(){
70        o.valNode.val($(this).attr("seq"));
71        ccl();
72    };
73
74    o.btnNode.click(function(){
75        new Util.laypop({
76            name : "modPop"
77            ,layer: {style:null,width:350,height:420}
78            ,cont : {style:null, html : "<div name='libUbireoprtWrap'></div>"}
79            ,btns : [
80                {html : Util.btn({name:'popCclBtn', mode:'ccl', txt:'닫기'})
81                    ,fn : ccl
82                }
83            ]
84            ,ccl : ccl
85        });
86
87        var selSeq = o.valNode.val();
88
89        $.ajax({
90            type:"POST",
91            async: false,
92            data:{
93                'pmode' : 'AdminAddon',
94                'smode' : 'ajax',
95                'fn'    : 'UbiListJson',
96                'reportSeq'    : o.reportSeq,
97                'selSeq'    : selSeq
98            },
99            success:function(data){
100                var pop = $("[name='modPop']");
101                pop.find("[name='libUbireoprtWrap']").append(data);
102                pop.find("[name='libUbireoprtWrap']").find("[name='btnSelReportli']").click(sel);
103            }
104        });
105    });
106};
107
108//Timetable lay merge
109Lib.timetblLayMerge = function(parm){
110    var o = $.extend({
111        table         : null,
112        name          : "laybox",
113        loadCss	      : "loadHide"
114    },parm || {});
115
116    var nodes       = $("[name='"+o.name+"']");
117    var pointer     = null;     //기준
118    var cursor      = null;     //기준 커서
119    var mergcnt     = 0;
120
121    //merge
122    var fnMerge = function(nodes){
123        nodes.each(function(){
124            var node		= $(this);
125            var next		= node.parent().next("td").find("[name='"+o.name+"']");
126
127            var nodeTno		= Number(node.attr("tno"));
128            var nextTno		= Number(next.attr("tno"));
129            var nodeSeq		= Number(node.attr("mseq"));
130            var nextSeq		= Number(next.attr("mseq"));
131
132            if(nodeTno == null || nodeTno == "undefined")	nodeTno		= "";
133            if(nextTno == null || nextTno == "undefined")	nextTno		= "";
134            if(nodeSeq == null || nodeSeq == "undefined")	nodeSeq		= "";
135            if(nextSeq == null || nextSeq == "undefined")	nextSeq		= "";
136
137            if( (nodeTno != "" && nextTno != "" && nodeSeq != "" && nextSeq != "") && (nodeTno == nextTno && nodeSeq == nextSeq) ){
138                if(pointer == null) pointer = node;		//기준
139                cursor	= next;							//커서
140
141                //width
142                var pWidth   = pointer.width();
143                var cWidth   = cursor.width();
144                width        = Number(pWidth) + Number(cWidth);
145
146                //pointer
147                mergcnt++;
148                pointer.css("width",    width+"px");
149                pointer.attr("mwidth",  width);
150                pointer.attr("mcnt",    mergcnt);
151                pointer.attr("mself",   "ok");
152
153                //cursor
154                next.attr("mtarget",    "ok");
155
156                cursor      = next;
157            }else{
158                pointer     = null;
159                cursor      = null;
160                mergcnt     = 0;
161                nodes.filter("[mtarget='ok']").remove();
162            }
163        });
164    };
165
166    //tr roop
167    if(o.table != null){
168        var trs			= o.table.find("tr");
169
170        trs.each(function(){
171            var nodes	= $(this).find("[name='"+o.name+"']");
172
173            if(nodes.length > 0){
174                fnMerge(nodes);
175            }
176        });
177    }
178
179    //width add board px
180    nodes.filter("[mself='ok']").each(function(){
181        var node    = $(this);
182        var width   = $(this).width();
183        var mergcnt = $(this).attr("mcnt");
184        width       = Number(width) + Number(mergcnt) + Math.round(Number(mergcnt) / 2);
185        if(Number(width) > 10){
186            $(this).css("width", width);
187        }
188    });
189
190    //view
191    nodes.removeClass(o.loadCss);
192};

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.