Skip to content

Commit 7c8b1f8

Browse files
save file
1 parent 4bd90f9 commit 7c8b1f8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

utils/misc/nodejs-terminal/html/webcontainer-iframe/examples/webcontainer-iframe-v1.0-example.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
<input value=iframe type=button>
7979
</div>
8080

81+
<!--
8182
<webcontainer-iframe component=page></webcontainer-iframe>
83+
-->
8284

8385

8486
<log-mod component></log-mod>
@@ -92,7 +94,15 @@
9294

9395
function initdom(){
9496

95-
$('#hdr [value=iframe]').onclick = e=>{};
97+
$('#hdr [value=iframe]').onclick = async e=>{
98+
99+
var node = document.createElement('webcontainer-iframe');
100+
node.setAttribute('component','page');
101+
document.body.append(node);
102+
var result = await mod.build({root:node,mod});
103+
console.log(result);
104+
105+
};
96106

97107
}//initdom
98108

0 commit comments

Comments
 (0)