Skip to content

Commit 40c1899

Browse files
expand it all + fetch default css
1 parent e159cad commit 40c1899

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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
});

0 commit comments

Comments
 (0)