Skip to content

Commit

Permalink
favicon; fix hash_wasm bug
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hardman <daniel.hardman@gmail.com>
  • Loading branch information
dhh1128 committed Sep 6, 2024
1 parent 928f602 commit 15f49b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ a:hover {
border-bottom: solid 1px #914f37;
}
a:visited { color: #914f37 }
label, textarea, input {
label, textarea, input, button {
display: inline-block;
}
label {
Expand Down
Binary file added assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
}
async function cqt() {
const uni_canonical = algorithm_1_14(el('input').value);
el('output').value = uni_canonical;
const encoder = new TextEncoder();
const utf8_canonical = encoder.encode(uni_canonical);
const sha256 = await crypto.subtle.digest('SHA-256', utf8_canonical);
el('sha256').value = hex_hash(sha256);
const blake3 = await hash_wasm.blake3(utf8_canonical);
const blake3 = await hashWasm.blake3(utf8_canonical);
el('blake3').value = hex_hash(blake3);
}

Expand Down

0 comments on commit 15f49b3

Please sign in to comment.