diff --git a/www b/www deleted file mode 160000 index c155d97..0000000 --- a/www +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c155d97212d9444f8165ad7f21f0b4a8306fcc5a diff --git a/www/.bin/create-wasm-app.js b/www/.bin/create-wasm-app.js new file mode 100755 index 0000000..2f42973 --- /dev/null +++ b/www/.bin/create-wasm-app.js @@ -0,0 +1,24 @@ +#!/usr/bin/env node + +const { spawn } = require("child_process"); +const fs = require("fs"); + +let folderName = '.'; + +if (process.argv.length >= 3) { + folderName = process.argv[2]; + if (!fs.existsSync(folderName)) { + fs.mkdirSync(folderName); + } +} + +const clone = spawn("git", ["clone", "https://github.com/rustwasm/create-wasm-app.git", folderName]); + +clone.on("close", code => { + if (code !== 0) { + console.error("cloning the template failed!") + process.exit(code); + } else { + console.log("🦀 Rust + 🕸 Wasm = ❤"); + } +}); diff --git a/www/bootstrap.js b/www/bootstrap.js new file mode 100644 index 0000000..7934d62 --- /dev/null +++ b/www/bootstrap.js @@ -0,0 +1,5 @@ +// A dependency graph that contains any wasm must all be imported +// asynchronously. This `bootstrap.js` file does the single async import, so +// that no one else needs to worry about it again. +import("./index.js") + .catch(e => console.error("Error importing `index.js`:", e)); diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..1112bc6 --- /dev/null +++ b/www/index.html @@ -0,0 +1,287 @@ + + + + + + Chess25 + + + + + + +
+ +
+

Chess25

+ +
+ +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +