From 0bef00b83e965aa350df1cd6a16c6ac39c388d93 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 17:37:45 +0100 Subject: feat: Add initial draft for rust wasm It adds the initial tooling for build and publishing a static site with wasm. The generate code is barebones, that is just a PoC for tooling, later I'll add proper code logic and test for it. --- www/index.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 www/index.js (limited to 'www/index.js') diff --git a/www/index.js b/www/index.js new file mode 100644 index 0000000..c9baaf8 --- /dev/null +++ b/www/index.js @@ -0,0 +1,7 @@ +import * as wasm from "genpass"; + +function generatePassword() { + document.getElementById("password").innerHTML = wasm.generate(); +} + +document.getElementById("generate").onclick = generatePassword -- cgit v1.2.3