File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3030
3131 < body >
3232 < h1 > Schemascii Playground</ h1 >
33- < div class ="flex row ">
33+ < div class ="flex row " style =" width: 100% " >
3434 < div class ="flex column ">
3535 < div class ="flex row ">
3636 < p style ="flex: 1 "> Schemascii Source</ p >
@@ -67,7 +67,7 @@ <h1>Schemascii Playground</h1>
6767 info ( `Installing schemascii-${ ver } ... ` ) ;
6868 await pyodide . runPythonAsync ( `import micropip\nawait micropip.install("https://dragoncoder047.github.io/schemascii/dist/schemascii-${ ver } -py3-none-any.whl")` ) ;
6969 schemascii = pyodide . pyimport ( "schemascii" ) ;
70- setup ( ) ;
70+ await setup ( ) ;
7171 console . textContent = "ready\n" ;
7272 } catch ( e ) {
7373 error ( `\nJS Error:\n${ e . stack } \n` ) ;
@@ -80,7 +80,8 @@ <h1>Schemascii Playground</h1>
8080 function error ( text ) {
8181 errors . textContent += text ;
8282 }
83- function setup ( ) {
83+ async function setup ( ) {
84+ css . value = await fetch ( "schemascii_example.css" ) . then ( x => x . text ( ) ) ;
8485 css . addEventListener ( "input" , ( ) => {
8586 style_elem . innerHTML = css . value ;
8687 } ) ;
You can’t perform that action at this time.
0 commit comments