github.com/jonasnick/go-ethereum@v0.7.12-0.20150216215225-22176f05d387/cmd/mist/assets/util/test.html (about)

     1  <html>
     2  <head>
     3  <title>Utils</title>
     4  </head>
     5  <body onload="init();">
     6  <label>Nonce for 2ef47100e0787b915105fd5e3f4ff6752079d5cb</label>
     7  <p id="nonce"></p>
     8  
     9  <label>Connected peers</label>
    10  <p id="peers"></p>
    11  
    12  <label>Is mining</label>
    13  <p id="isMining"></p>
    14  
    15  <label>Is listening</label>
    16  <p id="isListen"></p>
    17  
    18  <label>Coinbase</label>
    19  <p id="coinbase"></p>
    20  
    21  <script type="text/javascript">
    22  
    23  function init() {
    24  	eth.getTxCountAt("2ef47100e0787b915105fd5e3f4ff6752079d5cb", function(nonce){
    25  			document.querySelector("#nonce").innerHTML = nonce;
    26  	})
    27  	eth.getPeerCount(function(peerLength){
    28  			document.querySelector("#peers").innerHTML = peerLength;
    29  	})
    30  	eth.getIsMining(function(mining){
    31  			document.querySelector("#isMining").innerHTML = mining;
    32  	})
    33  	eth.getIsListening(function(listen){
    34  			document.querySelector("#isListen").innerHTML = listen;
    35  	})
    36  	eth.getCoinBase(function(address){
    37  			document.querySelector("#coinbase").innerHTML = address;
    38  	})
    39  }
    40  </script>
    41  </body>
    42  </html>
    43