Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
Latest commit
22 lines (20 loc) · 502 Bytes
/
Copy pathscript.js
File metadata and controls
22 lines (20 loc) · 502 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
functioncompile(){
varhtml=document.getElementById('html');
varcss=document.getElementById('css');
varjs=document.getElementById('js');
varcode=document.getElementById('code').contentWindow.document;
document.body.onkeyup=function(){
code.open();
code.writeln(
html.value+
'<style>'+
css.value+
'</style>'+
'<script>'+
js.value+
'</script>'
);
code.close();
};
}
compile();