PageSourceSearch

https://www.echo-du-caquetoire.org/wp-content/themes/vegadays/fw/js/core.debug.js?rnd=1545926986

js echo-du-caquetoire.org collected 2026-10-03 01:26:43 UTC 2,274 bytes, 49 lines download raw bytes

1/**
2 * VegaDays Framework: Debug utilities
3 *
4 * @package	vegadays
5 * @since	vegadays 1.0
6 */
7
8
9function vegadays_debug_object(obj) {
10	"use strict";
11	var html = arguments[1] ? arguments[1] : false;				// Tags decorate
12	var recursive = arguments[2] ? arguments[2] : false;		// Show inner objects (arrays)
13	var showMethods = arguments[3] ? arguments[3] : false;		// Show object's methods
14	var level = arguments[4] ? arguments[4] : 0;				// Nesting level (for internal usage only)
15	var dispStr = "";
16	var addStr = "";
17	if (level>0) {
18		dispStr += (obj===null ? "null" : typeof(obj)) + (html ? "\n<br />" : "\n");
19		addStr = vegadays_replicate(html ? '&nbsp;' : ' ', level*2);
20	}
21	if (obj!==null) {
22		for (var prop in obj) {
23			if (!showMethods && typeof(obj[prop])=='function')	// || prop=='innerHTML' || prop=='outerHTML' || prop=='innerText' || prop=='outerText')
24				continue;
25			if (recursive && (typeof(obj[prop])=='object' || typeof(obj[prop])=='array') && obj[prop]!=obj)
26				dispStr += addStr + (html ? "<b>" : "")+prop+(html ? "</b>" : "")+'='+vegadays_debug_object(obj[prop], html, recursive, showMethods, level+1);
27			else
28				dispStr += addStr + (html ? "<b>" : "")+prop+(html ? "</b>" : "")+'='+(typeof(obj[prop])=='string' ? '"' : '')+obj[prop]+(typeof(obj[prop])=='string' ? '"' : '')+(html ? "\n<br />" : "\n");
29		}
30	}
31	return dispStr;	//decodeURI(dispStr);
32}
33
34function vegadays_debug_log(s) {
35	if (VEGADAYS_STORAGE['user_logged_in']) {
36		if (jQuery('.debug_log').length == 0) {
37			jQuery('body').append('<pre class="debug_log"><span class="debug_log_close" onclick="jQuery(\'.debug_log\').hide();">x</span></pre>'); 
38		}
39		jQuery('.debug_log').append('<br>'+s);
40		jQuery('.debug_log').show();
41	}
42}
43
44if (window.dcl===undefined) function dcl(s) { console.log(s); }
45if (window.dco===undefined) function dco(s,r) { console.log(vegadays_debug_object(s,false,r)); }
46if (window.dal===undefined) function dal(s) { if (VEGADAYS_STORAGE['user_logged_in']) alert(s); }
47if (window.dao===undefined) function dao(s,h,r) { if (VEGADAYS_STORAGE['user_logged_in']) alert(vegadays_debug_object(s,h,r)); }
48if (window.ddl===undefined) function ddl(s) { vegadays_debug_log(s); }
49if (window.ddo===undefined) function ddo(s,h,r) { vegadays_debug_log(vegadays_debug_object(s,h,r)); }

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.