Skip to content

Instantly share code, notes, and snippets.

@arya
Created February 18, 2009 00:04
Show Gist options
  • Save arya/66083 to your computer and use it in GitHub Desktop.
Save arya/66083 to your computer and use it in GitHub Desktop.
<fb:user-agent includes="ie 6,ie 7">
<script type="text/javascript">
console.log = function(msg) {
var el = document.createElement('div');
$(el).text(msg);
$('#debug_console').append(el);
};
</script>
<style>
div#debug_console {
position: absolute;
top: 0;
left: 0;
width: 100%;
font-size: 11px;
z-index: 10000;
color: black;
height: 200px;
overflow: scroll;
background-color: white;
filter: alpha(opacity=80);
}
</style>
<div id="debug_console"></div>
</fb:user-agent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment