Garrett-Bodley / SHAlala

Turn Your SHA1 into Music If You Want to Do That For Some Reason
https://garrett-bodley.github.io/SHAlala/
4 stars 1 forks source link

When uploading/selecting file, clear text input. Similarly when typing, clear file upload field #13

Closed gregsadetsky closed 7 months ago

Garrett-Bodley commented 7 months ago

I have it set up such that the SHA is a hash of fileInput + textInput. If either one is empty they get initialized as an empty Uint8Array and don't affect the SHA. I thought it'd be fun to be like "What does this file sound like?" and then go "What does this file sound like + my thoughts/notes/sentence/etc". But maybe it's better to keep the two distinct?

Or maybe write something to make it clear that the two are being combined to generate the SHA?

gregsadetsky commented 7 months ago

Ah, I didn't get that! Yeah I think if it's clear it's a fun thing of either file, either text either both!