node */
+ $(document).ready(function () {
+ $("body")
+ .append('
');
+ $("#jQueryDebug")
+ .css("display", "none")
+ .css("fontFamily", "monospace")
+ .css("backgroundColor", "#ffffff")
+ .css("color", "#000000")
+ .css("padding", "10px 0px 10px 0px")
+ .css("border", "4px solid #666699")
+ .css("margin", "4px 4px 4px 4px");
+ $("#jQueryDebug ol")
+ .css("margin", "0px 0px 0px 0px")
+ .css("paddingRight", "20px");
+ });
+
+ /* attach a function to each of the Firebug methods */
+ var names = [
+ "log", "debug", "info", "warn", "error", "assert",
+ "dir", "dirxml", "group", "groupEnd", "time", "timeEnd",
+ "count", "trace", "profile", "profileEnd"
+ ];
+ window.console = {};
+ for (var i = 0; i < names.length; i++) {
+ window.console[names[i]] = function(msg) {
+ $('#jQueryDebug')
+ .css("display", $._debug$ == true ? "block" : "none");
+ $('#jQueryDebug ol')
+ .append('
' + object2text(msg) + '').css;
+ $("#jQueryDebug ol li")
+ .css("borderBottom", "1px solid #cccccc")
+ .css("padding", "1px 10px 1px 10px");
+ }
+ }
+
+ /* indicate that we are the one who is proving the Firebug interface */
+ window.console["jQueryDebug"] = true;
+ }
+ });
+
+})(jQuery);
+