aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/html/home.html
blob: 7116f5dde7916a8eec99c3bced550f7b5a62d9ca (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype>
<html>
<head>
<title>Ethereum</title>
<script type="text/javascript" src="../ext/bignumber.min.js"></script>
<script type="text/javascript" src="../ext/ethereum.js/dist/ethereum.js"></script>
<style type="text/css">
    body {
        font-family: Helvetica;
    }
    div.logo {
        width: 192px;
        margin: 40px auto;
    }
</style>
</head>
<body>
    <div class="logo"><img src="logo.png"></img></div>
    <h1>Info</h1>

    <table width="100%">
        <tr>
            <td>Block number</td>
            <td id="number"></td>
        </tr>

        <tr>
            <td>Peer count</td>
            <td id="peer_count"></td>
        </tr>

        <tr>
            <td>Accounts</td>
            <td id="accounts"></td>
        </tr>

        <tr>
            <td>Gas price</td>
            <td id="gas_price"></td>
        </tr>

        <tr>
            <td>Mining</td>
            <td id="mining"></td>
        </tr>

        <tr>
            <td>Listening</td>
            <td id="listening"></td>
        </tr>

        <tr>
            <td>Coinbase</td>
            <td id="coinbase"></td>
        </tr>
    </table>
</body>

<script type="text/javascript">
    var web3 = require('web3');
    var eth = web3.eth;

    web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));

    document.querySelector("#number").innerHTML = eth.number;
    document.querySelector("#coinbase").innerHTML = eth.coinbase
    document.querySelector("#peer_count").innerHTML = eth.peerCount;
    document.querySelector("#accounts").innerHTML = eth.accounts;
    document.querySelector("#gas_price").innerHTML = eth.gasPrice;
    document.querySelector("#mining").innerHTML = eth.mining;
    document.querySelector("#listening").innerHTML = eth.listening;
</script>

</html>