Add demo links to README

This commit is contained in:
dcodeIO
2018-04-19 17:49:44 +02:00
parent 485c3fd9b2
commit 7d3fb86691
3 changed files with 9 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<title>Conway's Game Of Life - AssemblyScript</title>
<style>
html, body { height: 100%; margin: 0; overflow: hidden; color: #111; background: #fff; font-family: sans-serif; }
h1 { padding: 20px; font-size: 12pt; }
h1 { padding: 20px; font-size: 12pt; margin: 0; }
a { color: #111; text-decoration: none; }
a:hover { color: #851ba7; text-decoration: underline; }
canvas { position: absolute; top: 60px; left: 20px; width: calc(100% - 40px); height: calc(100% - 80px); background: #eee; }
@@ -83,6 +83,7 @@ fetch("build/optimized.wasm")
})();
}).catch(err => {
alert("Failed to load WASM: " + err.message + " (ad blocker, maybe?)");
throw err;
});
</script>