mirror of https://github.com/ethereum/go-ethereum
parent
aec3e26ea0
commit
a3c8f83562
@ -1,27 +1,40 @@ |
|||||||
<html> |
<html> |
||||||
<head> |
<head> |
||||||
<title>Epic Works (TM)</title> |
<title>jeffcoin</title> |
||||||
<body> |
<body> |
||||||
<h1>It just works!</h1> |
<h1>Jeff Coin</h1> |
||||||
|
|
||||||
<p>Play with me...</p> |
<img src="file:///Users/jeffrey/Desktop/iconnew.png"> |
||||||
|
|
||||||
<button onclick="test();">test</button> |
<div id="transactions"> |
||||||
<div id="out"></div> |
<input id="addr" type="text" placeholder="Receiver address"></input><br> |
||||||
<div id="in"></div> |
<input id="amount" type="text" placeholder="Amount"></input><br> |
||||||
<div id="debug"></div> |
<button onclick="createTransaction();">Send Tx</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div><button onclick="test();">Tests</button></div> |
||||||
|
|
||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
function test() { |
function createTransaction() { |
||||||
eth.send(function(data) { |
debug("test") |
||||||
debug(data) |
var addr = document.querySelector("#addr").value; |
||||||
document.getElementById("in").innerHTML ="and the other way around " + data.message; |
var amount = document.querySelector("#amount").value; |
||||||
|
|
||||||
|
eth.createTx(addr, amount, "100", "250", "", function(tx) { |
||||||
|
debug("received tx hash:", tx) |
||||||
}) |
}) |
||||||
} |
} |
||||||
|
|
||||||
|
// Any test related actions here please |
||||||
|
function tests() { |
||||||
|
eth.getBlock(1, function(block) { |
||||||
|
debug("queried block:", block) |
||||||
|
}) |
||||||
|
} |
||||||
</script> |
</script> |
||||||
|
|
||||||
|
<div id="debug" style="border: 1px solid block"></div> |
||||||
|
|
||||||
</body> |
</body> |
||||||
</html> |
</html> |
||||||
|
|
||||||
|
Loading…
Reference in new issue