|
25 | 25 | #word-wrap |
26 | 26 | {margin-right:20px;/*color:gray*/} |
27 | 27 |
|
| 28 | + #iframe-show |
| 29 | + {margin-right:20px} |
28 | 30 |
|
29 | 31 | #kill |
30 | 32 | {font-size:16px;padding:5px 10px;min-width:60px} |
|
58 | 60 |
|
59 | 61 | <div style='flex:1'></div> |
60 | 62 |
|
61 | | - <span id=console class=radio> |
62 | | - <input type=checkbox> |
63 | | - console |
| 63 | + <span id=output-type> |
| 64 | + <span id=pretty-print class=radio> |
| 65 | + <input type=checkbox checked> |
| 66 | + prettyPrint |
| 67 | + </span> |
| 68 | + <span id=console class=radio> |
| 69 | + <input type=checkbox> |
| 70 | + console |
| 71 | + </span> |
64 | 72 | </span> |
| 73 | + |
65 | 74 | <span id=console-echo class=radio> |
66 | 75 | <input type=checkbox checked> |
67 | 76 | echo |
|
183 | 192 | chk['allow-modals'] = $.chkbox(shadow,'#allow-modals'); |
184 | 193 | chk['allow-popups'] = $.chkbox(shadow,'#allow-popups'); |
185 | 194 |
|
| 195 | + var r = $(shadow,'#output-type'); |
| 196 | + chk.type = $.chkbox.group(r,'#pretty-print','#console'); |
| 197 | + chk.type.callback = btn.type; |
| 198 | + /* |
| 199 | + chk.pretty = $.chkbox(shadow,'#pretty-print'); |
186 | 200 | chk.console = $.chkbox(shadow,'#console'); |
| 201 | + */ |
| 202 | + |
187 | 203 | chk['console-echo'] = $.chkbox(shadow,'#console-echo'); |
188 | 204 | chk['console-persist'] = $.chkbox(shadow,'#console-persist',false); |
189 | 205 | $(shadow,'#console-clear').onclick = btn.console.clear; |
|
224 | 240 | */ |
225 | 241 |
|
226 | 242 |
|
| 243 | + btn.type = function(){ |
| 244 | + |
| 245 | + console.log(arguments); |
| 246 | + |
| 247 | + }//type |
| 248 | + |
| 249 | + |
227 | 250 | btn.console.clear = function(){ |
228 | 251 | debug('btn.clear'); |
229 | 252 | clear(); |
|
266 | 289 |
|
267 | 290 |
|
268 | 291 | obj.on.message = function(json){ |
269 | | - console.log('output.message',json); |
| 292 | + //console.log('output.message',json); |
270 | 293 | var {name,args} = json; |
271 | 294 | //webconsole[name].apply(null,args); |
272 | 295 | fn[name].apply(null,args); |
|
0 commit comments