Skip to content

Commit 2895d00

Browse files
prevent senseless input if there is an error
1 parent bb53997 commit 2895d00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<h1>Schemascii Playground</h1>
4343
<div class="flex row">
4444
<div class="flex column">
45-
<p>Schemascii Source</p><textarea id="schemascii"></textarea>
45+
<p>Schemascii Source</p><textarea id="schemascii" disabled></textarea>
4646
</div>
4747
<div class="flex column">
48-
<p>CSS</p><textarea id="css"></textarea>
48+
<p>CSS</p><textarea id="css" disabled></textarea>
4949
</div>
5050
</div>
5151
<h2>Result</h2>
@@ -112,6 +112,8 @@ <h2>Errors</h2>
112112
}
113113
}, 100);
114114
});
115+
source.removeAttribute("disabled");
116+
css.removeAttribute("disabled");
115117
}
116118
main();
117119
</script>

0 commit comments

Comments
 (0)