Skip to content

Commit 3560d7f

Browse files
save file
1 parent ffd754f commit 3560d7f

1 file changed

Lines changed: 18 additions & 41 deletions

File tree

‎utils/editors/html-editor/html/output-html/v2.0/output-html-v2.0.html‎

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
.radio
1616
{border:1px solid lightgray;padding:2px 10px;border-radius:5px;cursor:pointer;display:flex;align-items:center}
17+
1718
#isolate
1819
{margin-right:10px}
1920
#allow-scripts
@@ -37,34 +38,17 @@
3738
</style>
3839

3940
<div id=hdr>
40-
<span id=isolate class=radio>
41-
<input type=checkbox>
42-
isolate
43-
</span>
41+
42+
<output-settings v1.0 component=page>
43+
</output-settings>
4444

4545
<span id=allow-scripts class=radio>
4646
<input type=checkbox checked disabled>
4747
allow-scripts
4848
</span>
49-
<span id=allow-modals class=radio>
50-
<input type=checkbox checked>
51-
allow-modals
52-
</span>
53-
<span id=allow-popups class=radio style='margin-right:30px'>
54-
<input type=checkbox checked>
55-
allow-popups
56-
</span>
5749

5850
<div style='flex:1'></div>
5951

60-
<span id=console-show class=radio>
61-
<input type=checkbox checked>
62-
console
63-
</span>
64-
<span id=console-echo class=radio>
65-
<input type=checkbox checked>
66-
echo
67-
</span>
6852
<span id=console-persist class=radio>
6953
<input type=checkbox>
7054
persist
@@ -74,6 +58,7 @@
7458
</span>
7559

7660
<button id=kill>kill</button>
61+
7762
</div>
7863

7964

@@ -83,7 +68,6 @@
8368
-->
8469
<div id=hldr>
8570
<iframe></iframe>
86-
<div id=glass></div>
8771
</div>
8872

8973
<div id=slider></div>
@@ -126,7 +110,6 @@
126110
var hldr;
127111
var iframe;
128112
var def_sandbox;
129-
var glass;
130113

131114

132115
var sandbox_url = {};
@@ -191,7 +174,6 @@
191174

192175
hldr = $(shadow,'#hldr');
193176
iframe = $(shadow,'iframe');
194-
glass = $(shadow,'#glass');
195177

196178

197179
$.slider(hldr,'#slider',webconsole.host,null,{root:shadow,mode:'horiz'});
@@ -250,17 +232,6 @@
250232

251233

252234

253-
obj.glass = function(show=true){
254-
255-
var display = 'none';
256-
if(show){
257-
display = 'block';
258-
}
259-
glass.style.display = display;
260-
261-
}//glass
262-
263-
264235
obj.horiz = function(){
265236

266237
host.style.width = '100%';
@@ -297,22 +268,27 @@
297268

298269
iframe.remove();
299270
iframe = iframe.cloneNode();
300-
debug(sandbox_url);
301-
build.sandbox();
302271

303-
iframe.setAttribute('allow',iframe_allow);
304-
debug(iframe_allow);
272+
//build.sandbox();
273+
var attr = settings.sandbox();
274+
iframe.setAttribute('sandbox',attr);
275+
276+
var attr = settings.permissions();
277+
iframe.setAttribute('allow',attr);
278+
279+
/*
305280
if(chk.isolate.checked){
306281
src += '?isolate';
307282
}
308283
iframe.src = src;
284+
*/
309285
debug(src);
310286
iframe.onload = onload;
311287
hldr.append(iframe);
312288

313289
}//iframe
314290

315-
291+
/*
316292
build.sandbox = function(){
317293
318294
var attr = iframe_sandbox;
@@ -334,8 +310,9 @@
334310
iframe.setAttribute('sandbox',attr);
335311
336312
}//sandbox
337-
338-
313+
*/
314+
315+
339316
function sandbox1(html){
340317
debug('sandbox1');
341318
var src = iframe_src;

0 commit comments

Comments
 (0)