2014-04-20 17:58:02 -05:00
|
|
|
<html>
|
|
|
|
<head>
|
2014-04-23 04:51:34 -05:00
|
|
|
<title>jeffcoin</title>
|
2014-04-20 17:58:02 -05:00
|
|
|
<body>
|
2014-04-23 04:51:34 -05:00
|
|
|
<h1>Jeff Coin</h1>
|
2014-04-20 17:58:02 -05:00
|
|
|
|
2014-04-23 04:51:34 -05:00
|
|
|
<img src="file:///Users/jeffrey/Desktop/iconnew.png">
|
2014-04-20 17:58:02 -05:00
|
|
|
|
2014-04-23 04:51:34 -05:00
|
|
|
<div id="transactions">
|
|
|
|
<input id="addr" type="text" placeholder="Receiver address"></input><br>
|
|
|
|
<input id="amount" type="text" placeholder="Amount"></input><br>
|
|
|
|
<button onclick="createTransaction();">Send Tx</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div><button onclick="test();">Tests</button></div>
|
2014-04-20 17:58:02 -05:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2014-04-23 04:51:34 -05:00
|
|
|
function createTransaction() {
|
|
|
|
debug("test")
|
|
|
|
var addr = document.querySelector("#addr").value;
|
|
|
|
var amount = document.querySelector("#amount").value;
|
|
|
|
|
|
|
|
eth.createTx(addr, amount, "100", "250", "", function(tx) {
|
|
|
|
debug("received tx hash:", tx)
|
2014-04-20 17:58:02 -05:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2014-04-23 04:51:34 -05:00
|
|
|
// Any test related actions here please
|
|
|
|
function tests() {
|
|
|
|
eth.getBlock(1, function(block) {
|
|
|
|
debug("queried block:", block)
|
|
|
|
})
|
|
|
|
}
|
2014-04-20 17:58:02 -05:00
|
|
|
</script>
|
|
|
|
|
2014-04-23 04:51:34 -05:00
|
|
|
<div id="debug" style="border: 1px solid block"></div>
|
|
|
|
|
2014-04-20 17:58:02 -05:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|