Skip to content

Instantly share code, notes, and snippets.

@davidpadbury
Created May 20, 2011 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpadbury/983055 to your computer and use it in GitHub Desktop.
Save davidpadbury/983055 to your computer and use it in GitHub Desktop.
Really dull log function
function log(msg) {
var ul = $('ul.log');
if (!ul.length) {
ul = $('<ul>').addClass('log').prependTo('body');
}
$('<li>').text(msg).appendTo(ul);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment