-
-
Save JohnnyJumper/9882951ba7366aeca1a946279f244491 to your computer and use it in GitHub Desktop.
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Basic .crypto integration</title> | |
</head> | |
<body> | |
<div id="main" style=" | |
display: flex; | |
flex-direction: column; | |
height: 100vh;" | |
> | |
<input id="input" /> | |
<button onclick="resolve()">Resolve</button> | |
<div id="records" style="display: flex; flex-direction: column;"> | |
</div> | |
</div> | |
<!-- This exposes keccak_256 hash function --> | |
<script | |
src="https://cdnjs.cloudflare.com/ajax/libs/js-sha3/0.8.0/sha3.min.js" | |
integrity="sha512-PmGDkK2UHGzTUfkFGcJ8YSrD/swUXekcca+1wWlrwALIZho9JX+3ddaaI9wmmf8PmgDIpMtx6TU8YBJAZS0mPQ==" | |
crossorigin="anonymous"> | |
</script> | |
<!-- This exposes the ethers.js library as a global variable: ethers --> | |
<script src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js" | |
type="application/javascript"></script> | |
<!-- This are our custom files --> | |
<script src="ethers.js"></script> | |
<script src="index.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment