|
128 | 128 | } |
129 | 129 | return ret; |
130 | 130 | } |
131 | | - }) |
| 131 | + }); |
| 132 | + /* Sixth console */ |
| 133 | + var console6 = $('<div class="console6">'); |
| 134 | + $('body').append(console6); |
| 135 | + var controller6 = console6.console({ |
| 136 | + promptLabel: 'Periodic> ', |
| 137 | + commandValidate:function(line){ |
| 138 | + if (line == "") return false; |
| 139 | + else return true; |
| 140 | + }, |
| 141 | + commandHandle:function(line){ |
| 142 | + return [{msg:"=> [12,42]", |
| 143 | + className:"jquery-console-message-value"}, |
| 144 | + {msg:":: [a]", |
| 145 | + className:"jquery-console-message-type"}] |
| 146 | + }, |
| 147 | + autofocus:true, |
| 148 | + animateScroll:true, |
| 149 | + promptHistory:true |
| 150 | + }); |
| 151 | + var counter = 0; |
| 152 | + setInterval(function() { |
| 153 | + controller6.report([{msg:"The counter is at " + (counter++) + ".", |
| 154 | + className:"jquery-console-message-value"}, |
| 155 | + {msg:(counter * 3) + " seconds have elapsed.", |
| 156 | + className:"jquery-console-message-type"}]); |
| 157 | + }, 3000); |
132 | 158 | }); |
133 | 159 | </script> |
134 | 160 | <style type="text/css" media="screen"> |
|
201 | 227 | { color:#187718; font-family:monospace; |
202 | 228 | padding:0.1em; } |
203 | 229 | div.console4 span.jquery-console-prompt-label { font-weight:bold } |
| 230 | + /* Sixth console */ |
| 231 | + div.console6 { font-size: 14px } |
| 232 | + div.console6 div.jquery-console-inner |
| 233 | + { width:900px; height:200px; background:#333; padding:0.5em; |
| 234 | + overflow:auto } |
| 235 | + div.console6 div.jquery-console-prompt-box |
| 236 | + { color:#fff; font-family:monospace; } |
| 237 | + div.console6 div.jquery-console-focus span.jquery-console-cursor |
| 238 | + { background:#fefefe; color:#333; font-weight:bold } |
| 239 | + div.console6 div.jquery-console-message-error |
| 240 | + { color:#ef0505; font-family:sans-serif; font-weight:bold; |
| 241 | + padding:0.1em; } |
| 242 | + div.console6 div.jquery-console-message-value |
| 243 | + { color:#1ad027; font-family:monospace; |
| 244 | + padding:0.1em; } |
| 245 | + div.console6 div.jquery-console-message-type |
| 246 | + { color:#52666f; font-family:monospace; |
| 247 | + padding:0.1em; } |
| 248 | + div.console6 span.jquery-console-prompt-label { font-weight:bold } |
204 | 249 | </style> |
205 | 250 | </head> |
206 | 251 | <body> |
|
0 commit comments