Skip to content

Commit e2e9e65

Browse files
save file
1 parent e4410a3 commit e2e9e65

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

utils/editors/js-console/html/output-console/v3.0/output-console-v3.0.html

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#word-wrap
2626
{margin-right:20px;/*color:gray*/}
2727

28+
#iframe-show
29+
{margin-right:20px}
2830

2931
#kill
3032
{font-size:16px;padding:5px 10px;min-width:60px}
@@ -58,10 +60,17 @@
5860

5961
<div style='flex:1'></div>
6062

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>
6472
</span>
73+
6574
<span id=console-echo class=radio>
6675
<input type=checkbox checked>
6776
echo
@@ -183,7 +192,14 @@
183192
chk['allow-modals'] = $.chkbox(shadow,'#allow-modals');
184193
chk['allow-popups'] = $.chkbox(shadow,'#allow-popups');
185194

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');
186200
chk.console = $.chkbox(shadow,'#console');
201+
*/
202+
187203
chk['console-echo'] = $.chkbox(shadow,'#console-echo');
188204
chk['console-persist'] = $.chkbox(shadow,'#console-persist',false);
189205
$(shadow,'#console-clear').onclick = btn.console.clear;
@@ -224,6 +240,13 @@
224240
*/
225241

226242

243+
btn.type = function(){
244+
245+
console.log(arguments);
246+
247+
}//type
248+
249+
227250
btn.console.clear = function(){
228251
debug('btn.clear');
229252
clear();
@@ -266,7 +289,7 @@
266289

267290

268291
obj.on.message = function(json){
269-
console.log('output.message',json);
292+
//console.log('output.message',json);
270293
var {name,args} = json;
271294
//webconsole[name].apply(null,args);
272295
fn[name].apply(null,args);

0 commit comments

Comments
 (0)