-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
4 lines (4 loc) · 1.17 KB
/
index.html
1
2
3
4
<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <link rel="stylesheet" href="css/style.css">\n <title>Crypto Game</title>\n</head>\n<body>\n <h1>Welcome to the Crypto Game</h1>\n <div id="game">\n <!-- Game content goes here -->\n </div>\n <script src="js/script.js"></script>\n</body>\n</html>
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>\n<script src="js/nftInteraction.js"></script>\n<script>\n // Example usage\n document.getElementById("mintButton").addEventListener("click", function() {\n const toAddress = document.getElementById("toAddressInput").value;\n mintNFT(toAddress);\n });\n</script>
<div>\n <input type="text" id="toAddressInput" placeholder="Enter address to mint NFT">\n <button id="mintButton">Mint NFT</button>\n</div>
<div id="challenge">\n <button onclick="startChallenge()">Start Challenge</button>\n <button onclick="completeChallenge(10)">Complete Challenge (10 tokens)</button>\n</div>\n<div id="tokenDisplay">\n <p>Your Tokens: <span id="tokenCount">0</span></p>\n</div>