aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/test.html
blob: eb55bf6670580d5fa548f607f37dd1e112c03396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<title>jeffcoin</title>
<body>
<h1>Jeff Coin</h1>

<img src="file:///Users/jeffrey/Desktop/iconnew.png">

<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>

<script type="text/javascript">
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)
    })
}

// Any test related actions here please
function tests() {
    eth.getBlock(1, function(block) {
        debug("queried block:", block)              
    })
}
</script>

<div id="debug" style="border: 1px solid block"></div>

</body>
</html>