PageSourceSearch

https://networkdepo.com/Scripts/js/config.js

js networkdepo.com collected 2026-10-06 22:52:09 UTC 8,832 bytes, 332 lines download raw bytes

1/*----------------------------------------------------------------------*/
2/* Set some Standards
3/* This file not required! It just demonstrate how you can define
4/* standards in one configuration file
5/*----------------------------------------------------------------------*/
6
7var config = {
8	tooltip :{
9		gravity: 'nw',
10		fade: false,
11		opacity: 1,
12		offset: 0
13	}
14};
15
16//wrap them because of some jQuery Elements
17$(document).ready(function() {
18
19
20if($.fn.wl_Alert) $.fn.wl_Alert.defaults = {
21	speed: 500,
22	sticky: false,
23	onBeforeClose: function (element) {},
24	onClose: function (element) {}
25};
26
27if($.fn.wl_Autocomplete) $.fn.wl_Autocomplete.defaults = {
28	//check http://jqueryui.com/demos/autocomplete/ for all options
29};
30
31if($.fn.wl_Breadcrump) $.fn.wl_Breadcrump.defaults = {
32	start: 0,
33	numbers: false,
34	allownextonly: false,
35	disabled: false,
36	connect: null,
37	onChange: function () {}
38};
39
40if($.fn.wl_Calendar) $.fn.wl_Calendar.defaults = {
41	//check http://arshaw.com/fullcalendar/ for all options
42};
43
44if($.fn.wl_Chart) $.fn.wl_Chart.defaults = {
45	width: null,
46	height: 300,
47	hideTable: true,
48	data: {},
49	stack: false,
50	type: 'lines',
51	points: null,
52	shadowSize: 2,
53	fill: null,
54	fillColor: null,
55	lineWidth: null,
56	legend: true,
57	legendPosition: "ne", // or "nw" or "se" or "sw"
58	tooltip: true,
59	tooltipGravity: 'n',
60	tooltipPattern: function (value, legend, label, id, itemobj) {
61		return "value is " + value + " from " + legend + " at " + label + " (" + id + ")";
62	},
63	//tooltipPattern: "value is %1 from %2 at %3 (%4)", //also possible
64	orientation: 'horizontal',
65	colors: ['#b2e7b2', '#f0b7b7', '#b5f0f0', '#e8e8b3', '#efb7ef', '#bbb6f0'],
66	flot: {},
67	onClick: function (value, legend, label, id, itemobj) {}
68};
69
70if($.fn.wl_Color) $.fn.wl_Color.defaults = {
71	mousewheel: true,
72	onChange: function (hsb, rgb) {}
73};
74
75
76if($.fn.wl_Date) $.fn.wl_Date.defaults = {
77	value: null,
78	mousewheel: true,
79	
80	//some datepicker standards
81	dayNames : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
82	dayNamesMin : ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
83	dayNamesShort : ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
84	firstDay: 0,
85	nextText: 'next',
86	prevText: 'prev',
87	currentText: 'Today',
88	showWeek: true,
89	dateFormat: 'mm/dd/yy'
90};
91
92
93if($.confirm) $.confirm.defaults = {
94	text:{
95		header: 'Please confirm',
96		ok: 'Yes',
97		cancel: 'No'
98	}
99};
100if($.prompt) $.prompt.defaults = {
101	text:{
102		header: 'Please prompt',
103		ok: 'OK',
104		cancel: 'Cancel'
105	}
106};
107if($.alert) $.alert.defaults = {
108	nativ: false,
109	resizable: false,
110	modal: true,
111	text:{
112		header: 'Notification',
113		ok: 'OK'
114	}
115};
116
117if($.fn.wl_Editor) $.fn.wl_Editor.defaults = {
118	css: 'css/light/editor.css',
119	buttons: 'bold|italic|underline|strikeThrough|justifyLeft|justifyCenter|justifyRight|justifyFull|highlight|colorpicker|indent|outdent|subscript|superscript|undo|redo|insertOrderedList|insertUnorderedList|insertHorizontalRule|createLink|insertImage|h1|h2|h3|h4|h5|h6|paragraph|rtl|ltr|cut|copy|paste|increaseFontSize|decreaseFontSize|html|code|removeFormat|insertTable',
120	initialContent: ''
121};
122
123if($.fn.wl_File) $.fn.wl_File.defaults = {
124	url: '',
125	autoUpload: true,
126	paramName: 'files',
127	multiple: false,
128	allowedExtensions: ['jpg','jpeg','gif','png','doc','zip','docx','txt','pdf'],
129	maxNumberOfFiles: 0,
130	maxFileSize: 0,
131	minFileSize: 0,
132	sequentialUploads: false,
133	dragAndDrop: true,
134	formData: {},
135	text: {
136		ready: 'ready',
137		cancel: 'cancel',
138		remove: 'remove',
139		uploading: 'uploading...',
140		done: 'done',
141		start: 'start upload',
142		add_files: 'add files',
143		cancel_all: 'cancel upload',
144		remove_all: 'remove all'
145	},
146	onAdd: function (e, data) {},
147	onDelete:function(files){},
148	onCancel:function(file){},
149	//onSend: function (e, data) {},
150	onDone: function (e, data) {},
151	onFinish: function (e, data) {},
152	onFail: function (e, data) {},
153	onAlways: function (e, data) {},
154	onProgress: function (e, data) {},
155	onProgressAll: function (e, data) {},
156	onStart: function (e) {},
157	onStop: function (e) {},
158	//onChange: function (e, data) {},
159	onDrop: function (e, data) {},
160	onDragOver: function (e) {},
161	onFileError: function (error, fileobj) {
162		$.msg('file is not allowed: ' + fileobj.name, {
163			header: error.msg + ' (' + error.code + ')'
164		});
165	}
166};
167
168if($.fn.wl_Fileexplorer) $.fn.wl_Fileexplorer.defaults = {
169	url: 'elfinder/php/connector.php',
170	toolbar: [
171		['back', 'reload', 'open', 'select', 'quicklook', 'info', 'rename', 'copy', 'cut', 'paste', 'rm', 'mkdir', 'mkfile', 'upload', 'duplicate', 'edit', 'archive', 'extract', 'resize', 'icons', 'list', 'help']
172	]
173};
174
175if($.fn.wl_Form) $.fn.wl_Form.defaults = {
176	submitButton: 'button.submit',
177	resetButton: 'button.reset',
178	method: 'post',
179	action: null,
180	ajax: true,
181	serialize: false,
182	parseQuery: true,
183	dataType: 'text',
184	status: true,
185	sent: false,
186	confirmSend: true,
187	text: {
188	    required: '', //'This field is required',
189	    valid: '', //'This field is invalid',
190	    password: '', //'This password is to short',
191	    passwordmatch: '', //'This password doesn\'t match',
192	    fileinqueue: '', //'There is at least one file in the queue',
193	    incomplete: 'Some necessary data is missing.  Please scroll up and complete the highlighted fields.',
194	    send: 'send form...',
195	    sendagain: 'send again?',
196	    success: 'form sent!',
197	    error: 'error while sending!',
198	    parseerror: 'Can\'t unserialize query string:\n %e'
199	},
200	tooltip: {
201		gravity: 'nw'
202	},
203	onRequireError: function (element) {},
204	onValidError: function (element) {},
205	onPasswordError: function (element) {},
206	onFileError: function (element) {},
207	onBeforePrepare: function () {},
208	onBeforeSubmit: function (data) {},
209	onReset: function () {},
210	onComplete: function (textStatus, jqXHR) {},
211	onError: function (textStatus, error, jqXHR) {},
212	onSuccess: function (data, textStatus, jqXHR) {}
213};
214
215if($.fn.wl_Gallery) $.fn.wl_Gallery.defaults = {
216	group: 'wl_gallery',
217	editBtn: true,
218	deleteBtn: true,
219	fancybox: {},
220	onEdit: function (element, href, title) {},
221	onDelete: function (element, href, title) {}
222};
223
224if($.fn.wl_Multiselect) $.fn.wl_Multiselect.defaults = {
225	height: 200,
226	items: [],
227	selected: [],
228	showUsed: false,
229	onAdd: function (values) {},
230	onRemove: function (values) {},
231	onSelect: function (values) {},
232	onUnselect: function (values) {},
233	onSort: function (values) {}
234};
235
236if($.fn.wl_Number) $.fn.wl_Number.defaults = {
237	step: 1,
238	decimals: 0,
239	start: 0,
240	min: null,
241	max: null,
242	mousewheel: true,
243	onChange: function (value) {},
244	onError: function (value) {}
245};
246
247if($.fn.wl_Password) $.fn.wl_Password.defaults = {
248	confirm: true,
249	showStrength: true,
250	words: ['too short', 'bad', 'medium', 'good', 'very good', 'excellent'],
251	minLength: 3,
252	text: {
253		confirm: 'please confirm',
254		nomatch: 'password doesn\'t match'
255	}
256};
257
258if($.fn.wl_Slider) $.fn.wl_Slider.defaults = {
259	min: 0,
260	max: 100,
261	step: 1,
262	animate: false,
263	disabled: false,
264	orientation: 'horizontal',
265	range: false,
266	mousewheel: true,
267	connect: null,
268	tooltip: false,
269	tooltipGravity: ['s','w'],
270	tooltipPattern: "%n",
271	onSlide: function (value) {},
272	onChange: function (value) {}
273};
274
275if($.fn.wl_Time) $.fn.wl_Time.defaults = {
276	step: 5,
277	timeformat: 24,
278	roundtime: true,
279	time: null,
280	value: null,
281	mousewheel: true,
282	onDateChange: function (offset) {},
283	onHourChange: function (offset) {},
284	onChange: function (value) {}
285};
286
287if($.fn.wl_Valid) $.fn.wl_Valid.defaults = {
288	errorClass: 'error',
289	instant: true,
290	regex: /.*/,
291	minLength: 0,
292	onChange: function ($this, value) {},
293	onError: function ($this, value) {}
294};
295
296if($.fn.wl_Mail) $.fn.wl_Mail.defaults = {
297	regex: /^([\w-]+(?:\.[\w-]+)*)\@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$|(\[?(\d{1,3}\.){3}\d{1,3}\]?)$/i,
298	onChange: function (element, value) {
299		element.val(value.toLowerCase());
300	}
301};
302
303if($.fn.wl_URL) $.fn.wl_URL.defaults = {
304	regex: /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w]))*\.+(([\w#!:.?+=&%@!\-\/]))?/,
305	instant: false,
306	onChange: function (element, value) {
307		if (value != '' && !/^(ftp|http|https):\/\//.test(value)) element.val('http://' + value).trigger('change.wl_Valid');
308	}
309};
310
311if($.fn.wl_Widget) $.fn.wl_Widget.defaults = {
312	collapsed: false,
313	load: null,
314	reload: false,
315	removeContent: true,
316	collapsible: true,
317	sortable: true,
318	text: {
319		loading: 'loading...',
320		reload: 'reload',
321		collapse: 'collapse widget',
322		expand: 'expand widget'
323	},
324	onDrag: function () {},
325	onDrop: function () {},
326	onExpand: function () {},
327	onCollapse: function () {}
328};
329
330
331
332});

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.