mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-30 21:52:18 +00:00
Add demo links to README
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user