/* FILE ARCHIVED ON 12:37:01 Jan 12, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 19:11:40 Jun 4, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* * Simple jQuery logger / debugger. * Based on: https://webarchive.library.unt.edu/eot2008/20090112123701/http://jquery.com/plugins/Authoring/ */ // global debug switch var DEBUG = true; // shamelessly ripped off from https://webarchive.library.unt.edu/eot2008/20090112123701/http://getfirebug.com/ if (!("console" in window) || !("firebug" in console)){ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; // create the logging div jQuery(document).ready( function(){ /*$(document.body).append('
');*/ } ); window.console = {}; for (var i = 0; i < names.length; ++i){ window.console[names[i]] = function(msg){ $('#DEBUG ul').append( '
  • ' + msg + '
  • ' ); } } } $.fn.debug = function() { return this.each(function(){ $.log(this); }); }; $.log = function(message){ // only do this if debugging is on if( window.DEBUG ){ console.debug(message); } };