File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
< body >
32
32
< h1 > Schemascii Playground</ h1 >
33
- < div class ="flex row ">
33
+ < div class ="flex row " style =" width: 100% " >
34
34
< div class ="flex column ">
35
35
< div class ="flex row ">
36
36
< p style ="flex: 1 "> Schemascii Source</ p >
@@ -67,7 +67,7 @@ <h1>Schemascii Playground</h1>
67
67
info ( `Installing schemascii-${ ver } ... ` ) ;
68
68
await pyodide . runPythonAsync ( `import micropip\nawait micropip.install("https://dragoncoder047.github.io/schemascii/dist/schemascii-${ ver } -py3-none-any.whl")` ) ;
69
69
schemascii = pyodide . pyimport ( "schemascii" ) ;
70
- setup ( ) ;
70
+ await setup ( ) ;
71
71
console . textContent = "ready\n" ;
72
72
} catch ( e ) {
73
73
error ( `\nJS Error:\n${ e . stack } \n` ) ;
@@ -80,7 +80,8 @@ <h1>Schemascii Playground</h1>
80
80
function error ( text ) {
81
81
errors . textContent += text ;
82
82
}
83
- function setup ( ) {
83
+ async function setup ( ) {
84
+ css . value = await fetch ( "schemascii_example.css" ) . then ( x => x . text ( ) ) ;
84
85
css . addEventListener ( "input" , ( ) => {
85
86
style_elem . innerHTML = css . value ;
86
87
} ) ;
You can’t perform that action at this time.
0 commit comments