Created
January 27, 2021 08:31
-
-
Save ducksoupdev/7970db7fde1001c2c8f8af200e1dc992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cryptoEs from 'https://cdn.skypack.dev/crypto-es' | |
const hash = cryptoEs.MD5("[email protected]") | |
const img = document.querySelector('img') | |
img.src = `https://www.gravatar.com/avatar/${hash.toString()}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment