Created
October 18, 2018 11:34
-
-
Save Deadlyelder/d5df20d893fa726894adc972134e2e08 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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Blah</title> | |
<script src="./node_modules/web3/dist/web3.min.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Test for static</h1> | |
</div> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> | |
<script> | |
if (typeof web3 !== 'undefined') { | |
web3 = new Web3(web3.currentProvider); | |
} else { | |
// set the provider you want from Web3.providers | |
web3 = new Web3(newWeb3.providers.HttpProvider("http://localhost:4545")); | |
} | |
web3.eth.defaultAccount = web3.eth.accounts[0]; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment