Skip to content

Commit e31c6a0

Browse files
typos, add version
1 parent 727f15c commit e31c6a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
<body>
4242
<h1>Schemascii Playground</h1>
43+
<h2 id="version">Loading version...</h2>
4344
<div class="flex row">
4445
<div class="flex column">
4546
<h2>Schemascii Source</h2><textarea id="schemascii" disabled></textarea>
@@ -55,7 +56,7 @@ <h2>Messages</h2>
5556
<h2>Errors</h2>
5657
<pre id="errors"></pre>
5758
<h2>More Information</h2>
58-
<p><a href="https://github.com/dragoncoder047/schemascii/" targer="_blank">https://github.com/dragoncoder047/schemascii/</a></p>
59+
<p><a href="https://github.com/dragoncoder047/schemascii/" target="_blank">https://github.com/dragoncoder047/schemascii/</a></p>
5960
</body>
6061
<script>
6162
// cSpell:ignore pyodide pyproject pyimport
@@ -65,7 +66,6 @@ <h2>More Information</h2>
6566
var console = document.getElementById("console");
6667
var source = document.getElementById("schemascii");
6768
var style_elem = document.getElementById("custom-css");
68-
var render_button = document.getElementById("render");
6969
var schemascii;
7070
async function main() {
7171
try {
@@ -76,6 +76,7 @@ <h2>More Information</h2>
7676
info("done\nFetching current Schemascii version... ");
7777
var pyproject_toml = await fetch("pyproject.toml").then(x => x.text());
7878
var ver = /version = "([\d.]+)"/.exec(pyproject_toml)[1];
79+
document.getElementById("version").textContent = `using Schemascii version ${ver}`;
7980
info(`${ver}\nInstalling schemascii-${ver} ... `);
8081
await pyodide.pyimport("micropip", { errorCallback: error, messageCallback: info })
8182
.install(`https://dragoncoder047.github.io/schemascii/dist/schemascii-${ver}-py3-none-any.whl`);
@@ -102,6 +103,7 @@ <h2>More Information</h2>
102103
var timeout = null;
103104
source.addEventListener("input", () => {
104105
if (timeout) clearTimeout(timeout);
106+
// Debouncing
105107
timeout = setTimeout(async () => {
106108
console.textContent = "";
107109
errors.textContent = "";

0 commit comments

Comments
 (0)