From: Alan Knowles Date: Thu, 4 Aug 2011 05:02:50 +0000 (+0800) Subject: ux/ieconsole.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=049178f0a74216b5692190af4f017389e388815a ux/ieconsole.js --- diff --git a/ux/ieconsole.js b/ux/ieconsole.js index 165051b089..bc9fb1a152 100644 --- a/ux/ieconsole.js +++ b/ux/ieconsole.js @@ -17,6 +17,34 @@ if(!window.console){ console.d.id=id; } console.hide(); + + document.head.appendChild( + document.createElement('style') + ).appendChild(document.createTextNode('' + + '#fauxconsole{' + + ' position:absolute;' + + ' top:0;'+ + ' right:0;'+ + ' width:300px;'+ + ' border:1px solid #999;'+ + ' font-family:courier,monospace;'+ + ' background:#eee;'+ + ' font-size:10px;'+ + ' padding:10px;'+ + '}'+ + 'html>body #fauxconsole{'+ + ' position:fixed;'+ + '}'+ + '#fauxconsole a{'+ + ' float:right;'+ + ' padding-left:1em;'+ + ' padding-bottom:.5em;'+ + ' text-align:right;'+ + '}' + )); + + + }, hide:function(){ console.d.style.display='none';