PageSourceSearch

https://urobotics.ai/wp-content/plugins/wboard/javascript/wboard.js?ver=20261005131002

js urobotics.ai collected 2026-10-05 13:10:21 UTC 4,915 bytes, 199 lines download raw bytes

1jQuery(document).ready(function() {
2    jQuery("#sdate, #edate").datepicker({
3        dateFormat: 'yy-mm-dd'
4    });
5
6	jQuery('#chkall').on('change', function() {
7        var isChecked = jQuery(this).is(':checked');
8        jQuery('input[type="checkbox"][id^="chk_"]').prop('checked', isChecked);
9    });
10});
11
12const lang_save = jQuery("#lang_save").val();
13const lang_cancel = jQuery("#lang_cancel").val();
14const lang_mod = jQuery("#lang_mod").val();
15const lang_del = jQuery("#lang_del").val();
16const are_you_sure = jQuery("#are_you_sure").val();
17const cannot_recover = jQuery("#cannot_recover").val();
18const deleted = jQuery("#deleted").val();
19const enter_comment = jQuery("#enter_comment").val();
20const select_one_data = jQuery("#select_one_data").val();
21const select_modify = jQuery("#select_modify").val();
22const select_only_one = jQuery("#select_only_one").val();
23const enter_title = jQuery("#enter_title").val();
24
25function edit_one_comment( cid )
26{
27	var html = jQuery("#cmt_p_"+cid).html();
28	html = "<textarea id='txt_"+cid+"' class='u_cbox_text' rows='3' cols='30'>"+html+"</textarea>";
29	jQuery("#cmt_p_"+cid).html( html ); 
30	
31	var html2 = "<span class='flx'><a class='edit' onclick='update_one_comment("+cid+");'>"+lang_save+"</a><a class='del' onclick='cancel_edit_one_comment("+cid+");'>"+lang_cancel+"</a></span>";
32	jQuery("#cmt_btns_"+cid).html( html2 );
33}
34
35function update_one_comment( cid )
36{
37	var txt = jQuery("#txt_"+cid).val();
38
39	jQuery.ajax({
40		url: "/wp-content/plugins/wboard/ajax/ajax.update_one_comment.php",
41		type: "POST",
42		data: {
43			"cid": cid,
44			"txt": txt
45		},
46		dataType: "json",
47		success: function(data, textStatus) {
48			cancel_edit_one_comment( cid );
49		}
50	});
51}
52
53function cancel_edit_one_comment( cid )
54{
55	var html = jQuery("#txt_"+cid).val();
56	jQuery("#cmt_p_"+cid).html( html ); 
57	
58	var html2 = "<span class='flx'><a class='edit' onclick='edit_one_comment("+cid+");'>"+lang_mod+"</a><a class='del' onclick='delete_one_comment("+cid+");'>"+lang_del+"</a></span>";
59	jQuery("#cmt_btns_"+cid).html( html2 );
60}
61
62function delete_one_comment( cid )
63{
64	var x = confirm( are_you_sure+"?\n\n"+cannot_recover+".");
65
66	if( !x ){ return x; }
67
68	jQuery.ajax({
69		url: "/wp-content/plugins/wboard/ajax/ajax.delete_one_comment.php",
70		type: "POST",
71		data: {
72			"cid": cid
73		},
74		dataType: "json",
75		success: function(data, textStatus) {
76			jQuery("#com_item_"+cid).remove();
77			alert(deleted+".");
78		}
79	});
80}
81
82function register_reply_comment( wr_id )
83{
84	var writter = jQuery("#writter").val();
85	var write_textarea = jQuery("#write_textarea").val();
86	if( write_textarea == '' ){
87		alert(enter_comment+'.');
88		return false;
89	}
90console.log("here1");
91	jQuery.ajax({
92		url: "/wp-content/plugins/wboard/ajax/ajax.register_reply_comment.php",
93		type: "POST",
94		data: {
95			"wr_id": wr_id,
96			"writter": writter,
97			"write_textarea": write_textarea
98		},
99		dataType: "json",
100		success: function(data, textStatus) { 
101			location.reload();
102		}
103	});
104}
105
106function plus_one_download( uid )
107{
108	jQuery.ajax({
109		url: "/wp-content/plugins/wboard/ajax/ajax.plus_one_download.php",
110		type: "POST",
111		data: {
112			"uid": uid
113		},
114		dataType: "json",
115		success: function(data, textStatus) {
116
117		}
118	});
119}
120
121function delete_one_post_in_viewpage( uid )
122{
123	var x = confirm(are_you_sure+"?\n\n"+cannot_recover+".");
124
125	if( !x ){ return x; }
126
127	jQuery("#ids").val( uid );
128	jQuery("#dform").submit();
129}
130
131function delete_selected_wboard_action()
132{
133	var num = get_select_list_num_wboard();
134
135	if( num == 0 ){
136		alert(select_one_data+".");
137		return false;
138	}
139
140	var x = confirm(are_you_sure+"?\n\n"+cannot_recover+".");
141
142	if( !x ){ return x; }
143
144	var ids = '';
145
146	jQuery("input:checkbox[name^=chk_]").each(function(){
147        if(jQuery(this).is(":checked")==true){
148            num++;
149            ids = ids + jQuery(this).val() + ",";
150        }
151    });
152
153	jQuery("#ids").val( ids );
154	jQuery("#dform").submit();
155}
156
157function edit_selected_wboard_action()
158{
159	var num = get_select_list_num_wboard();
160	if( num == 0 ){
161		alert(select_modify+".");
162		return false;
163	}else if( num > 1 ){
164		alert(select_only_one+".");
165		return false;
166	}
167
168	var v = jQuery("[name^=chk_]:checked").val();
169	var board_id = jQuery("#board_id").val();
170	if( board_id == '1' ){
171		location.href = "/recruit/?mode=write&w=u&wr_id="+v;
172	}else if( board_id == '2' ){
173		location.href = "/robotic-inquiry/?mode=write&w=u&wr_id="+v;
174	}else if( board_id == '3' ){
175		location.href = "/notice/?mode=write&w=u&wr_id="+v;
176	}else if( board_id == '4' ){
177		location.href = "/media/?mode=write&w=u&wr_id="+v;
178	}else if( board_id == '5' ){
179		location.href = "/robotic-download/?mode=write&w=u&wr_id="+v;
180	}
181}
182
183function get_select_list_num_wboard()
184{
185	return jQuery("[name^=chk_]:checked").length;
186}
187
188function submit_wboard_action()
189{
190	var title = jQuery("#title").val();
191
192	if( title == '' ){
193		alert(enter_title+".");
194		jQuery("#title").focus();
195		return false;
196	}
197
198	jQuery("#wform").submit();
199}

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.