projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82e96b1
)
ieconsole - create css on the fly
author
Alan Knowles
<alan@akbkhome.com>
Thu, 4 Aug 2011 07:04:54 +0000
(07:04 +0000)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 7 Sep 2011 02:28:52 +0000
(10:28 +0800)
ux/ieconsole.js
patch
|
blob
|
history
diff --git
a/ux/ieconsole.js
b/ux/ieconsole.js
index
165051b
..
7b391cb
100644
(file)
--- a/
ux/ieconsole.js
+++ b/
ux/ieconsole.js
@@
-16,7
+16,36
@@
if(!window.console){
if(!document.getElementById(id)){
console.d.id=id;
}
if(!document.getElementById(id)){
console.d.id=id;
}
+ var st = console.d.style;
+ st.position = 'absolute';
+ st.top = 0;
+ st.right = 0;
+ st.width='300px';
+ st.border = '1px solid #999';
+ st.fontFamily = 'courier,monospace';
+ st.background = '#eee';
+ st.fontSize = '10px';
+ st.padding = '10px';
+ st.zIndex = 100000;
+ st.overflow = "auto";
+
+
console.hide();
console.hide();
+
+
+ var CSS = "\n" +
+ '#fauxconsole a{'+
+ ' float:right;'+
+ ' padding-left:1em;'+
+ ' padding-bottom:.5em;'+
+ ' text-align:right;'+
+ '}';
+ var htmDiv = document.createElement('div');
+ htmDiv.innerHTML = '<p> </p><style>'+CSS+'</style>';
+ document.body.appendChild(htmDiv);
+
+
+
},
hide:function(){
console.d.style.display='none';
},
hide:function(){
console.d.style.display='none';
@@
-25,6
+54,9
@@
if(!window.console){
console.d.style.display='block';
},
log:function(o){
console.d.style.display='block';
},
log:function(o){
+ if (!console.d) {
+ console.init();
+ }
console.d.innerHTML+='<br/>'+o;
console.show();
},
console.d.innerHTML+='<br/>'+o;
console.show();
},