/* create console.log if it doesn't exist */
if (!window.console) console = {};
-console.log = console.log || function(msg) { debug(msg); };
-console.warn = console.warn || function(msg) { debug(msg); };
-console.error = console.error || function(msg) { debug(msg); };
+console.log = console.log || function(msg) { };
+console.warn = console.warn || function(msg) { };
+console.error = console.error || function(msg) { };
function exception_error(location, e, ext_info) {
var msg = format_exception_error(location, e);
}
}
-var debug_last_class = "even";
-
-function debug(msg) {
-
- if (debug_last_class == "even") {
- debug_last_class = "odd";
- } else {
- debug_last_class = "even";
- }
-
- var c = $('debug_output');
- if (c && Element.visible(c)) {
- while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
- c.removeChild(c.lastChild);
- }
-
- var ts = make_timestamp();
- c.innerHTML = "<li class=\"" + debug_last_class + "\"><span class=\"debugTS\">[" + ts + "]</span> " +
- msg + "</li>" + c.innerHTML;
- }
-}
-
function getInitParam(key) {
return init_params[key];
}
try {
- if (getURLParam('debug')) {
- Element.show("debug_output");
- console.log('debug mode activated');
- }
-
loading_set_progress(30);
var query = "?op=rpc&subop=sanityCheck";
if (!hotkey_prefix) {
- if (keycode == 68 && shift_key) { // d
- if (!Element.visible("debug_output")) {
- Element.show("debug_output");
- console.log('debug mode activated');
- } else {
- Element.hide("debug_output");
- }
- return;
- }
-
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) {
//Element.show("hotkey_help_overlay");
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
-<ul id="debug_output" style='display : none'><li> </li></ul>
-
<div id="prefHeader">
<div class="topLinks">
<?php if (!SINGLE_USER_MODE) { ?>
<div id="notify" class="notify"><span id="notify_body"> </span></div>
<div id="infoBoxShadow"><div id="infoBox">BAH</div></div>
-
<div id="cmdline" style="display : none"></div>
<div id="errorBoxShadow" style="display : none">
border-width : 0px;
}
-#debug_output {
- position : absolute;
- width : 400px;
- height : 200px;
- right : 20px;
- bottom : 20px;
- z-index : 999;
- background-color : white;
- border : 1px solid #c0c0c0;
- overflow : auto;
- margin : 0px;
- padding : 0px;
- list-style-type : none;
-}
-
-#debug_output li {
- margin : 0px;
- padding : 0px;
- font-size : 11px;
-}
-
#dialog_overlay {
left : 0;
top : 0;
if (!genericSanityCheck())
return;
- if (getURLParam('debug')) {
- Element.show("debug_output");
- console.log('debug mode activated');
- }
-
var params = "&ua=" + param_escape(navigator.userAgent);
loading_set_progress(30);
if (!hotkey_prefix) {
- if (keycode == 68 && shift_key) { // d
- if (!Element.visible("debug_output")) {
- Element.show("debug_output");
- console.log('debug mode activated');
- } else {
- Element.hide("debug_output");
- }
-
- return;
- }
-
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) {
//Element.show("hotkey_help_overlay");
</div>
<div id="notify" class="notify"><span id="notify_body"> </span></div>
-
<div id="dialog_overlay" style="display : none"> </div>
-
-<ul id="debug_output" style='display : none'><li> </li></ul>
-
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
-
<div id="cmdline" style="display : none"></div>
<div id="auxDlg" style="display : none"></div>