File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 <!-- <script type="module" src="./scripts/editor.ts"></script> -->
3131
3232 < style >
33+ # playground-container {
34+ display : flex;
35+ gap : 2% ;
36+ width : 100% ;
37+ height : 80vh ;
38+ }
39+
3340 # input-container ,
3441 # output-container {
35- width : 48% ;
42+ flex : 1 ;
43+ width : 100% ;
44+ }
45+
46+ # input-content ,
47+ # output-content {
48+ width : 100% ;
3649 height : 100% ;
37- display : inline-block;
3850 }
3951 </ style >
4052 </ head >
4355
4456 < h1 > WCC Playground</ h1 >
4557
46- < h2 > Input</ h2 >
47- < div id ="input-container "> </ div >
58+ < div id ="playground-container ">
59+ < div id ="input-container ">
60+ < h2 > Input</ h2 >
61+ < div id ="input-content "> </ div >
62+ </ div >
4863
49- < h2 > Output</ h2 >
50- < div id ="output-container "> </ div >
64+ < div id ="output-container ">
65+ < h2 > Output</ h2 >
66+ < div id ="output-content "> </ div >
67+ </ div >
68+ </ div >
5169
5270 < wcc-footer > </ wcc-footer >
5371 </ body >
Original file line number Diff line number Diff line change 11import * as monaco from "monaco-editor/esm/vs/editor/editor.main.js" ;
22
3- const inputContainer = document . getElementById ( "input-container " ) as HTMLDivElement ;
4- const outputContainer = document . getElementById ( "output-container " ) as HTMLDivElement ;
3+ const inputContainer = document . getElementById ( "input-content " ) as HTMLDivElement ;
4+ const outputContainer = document . getElementById ( "output-content " ) as HTMLDivElement ;
55const workerUrl = new URL ( "./repl.ts" , import . meta. url ) ;
66const worker = new Worker ( workerUrl , { type : "module" } ) ;
77
@@ -17,7 +17,7 @@ const inputContents = `
1717 </style>
1818
1919 <footer class="footer">
20- <h4>My Blog © ${ new Date ( ) . getFullYear ( ) } </h4>
20+ <h4>My Blog © \ ${new Date().getFullYear()}</h4>
2121 </footer>
2222 \`;
2323
You can’t perform that action at this time.
0 commit comments