Skip to content

Commit cf40d68

Browse files
save file
1 parent 6c6e148 commit cf40d68

File tree

1 file changed

+52
-15
lines changed

1 file changed

+52
-15
lines changed

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

Lines changed: 52 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@
1313
{height:100%;display:flex;flex-direction:column}
1414
#hdr
1515
{display:flex;align-items:center;margin:0;margin-bottom:5px}
16-
1716
#spc
1817
{flex:1}
1918

19+
#isolate
20+
{margin-right:10px}
21+
#console-clear
22+
{margin-right:10px}
23+
#word-wrap
24+
{margin-right:20px;/*color:gray*/}
25+
26+
27+
2028
.ext-button
2129
{border:1px solid lightgray;padding:2px 5px;cursor:pointer;display:flex;align-items:center;margin-right:10px}
2230
.ext-button [type=checkbox]
@@ -37,11 +45,47 @@
3745

3846
<div id=root>
3947
<div id=hdr>
40-
<span id=spc></span>
41-
<div id=console-persist class=ext-button>console.persist<input type=checkbox></div>
42-
<div id=console-log class=ext-button>console.log<input type=checkbox checked></div>
43-
<div id=word-wrap class=ext-button>wrap<input type=checkbox checked></div>
44-
<button id=clear>clear</button>
48+
<span id=isolate class=radio>
49+
<input type=checkbox>
50+
isolate
51+
</span>
52+
53+
<span id=allow-scripts class=radio>
54+
<input type=checkbox checked disabled>
55+
allow-scripts
56+
</span>
57+
<span id=allow-modals class=radio>
58+
<input type=checkbox checked>
59+
allow-modals
60+
</span>
61+
<span id=allow-popups class=radio style='margin-right:30px'>
62+
<input type=checkbox checked>
63+
allow-popups
64+
</span>
65+
66+
<div style='flex:1'></div>
67+
68+
<span id=console-show class=radio>
69+
<input type=checkbox checked>
70+
console
71+
</span>
72+
<span id=console-echo class=radio>
73+
<input type=checkbox checked>
74+
echo
75+
</span>
76+
<span id=console-persist class=radio>
77+
<input type=checkbox>
78+
persist
79+
</span>
80+
<span id=console-clear class=radio>
81+
clear
82+
</span>
83+
84+
<span id=word-wrap class=ext-button>
85+
<input type=checkbox checked>
86+
wrap
87+
</div>
88+
4589
<button id=kill>kill</button>
4690
</div>
4791

@@ -276,15 +320,8 @@
276320

277321
async function onload(){
278322

279-
var win = iframe.contentWindow;
280-
281-
win.focus();
282-
win.console.log = log;
283-
win.console.clear = clear;
284-
win.console.error = error;
285-
win.console.write = write;
286-
win.console.groupCollapsed = groupCollapsed;
287-
323+
324+
288325
if(!chk.persist){
289326
clear();
290327
}

0 commit comments

Comments
 (0)