Created
November 16, 2011 22:48
-
-
Save ibolmo/1371757 to your computer and use it in GitHub Desktop.
Simple logging mechanism for jsFiddle.net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ol { margin: 0 1em; padding: 1em; list-style: decimal !important } | |
| li { margin:0 0 1em; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function log(message, level){ | |
| new Element('li', { 'text': message, 'class': 'log ' + (level || 'info')}).inject(log.log); | |
| } | |
| window.addEvent('domready', function(){ | |
| log.log = new Element('ol').inject(document.body); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment