Advertisement
captmicro

Untitled

May 23rd, 2013
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <div id="miningstats">
  2. WALLET ADDRESS: <text id="stats_btcaddr"></text>
  3. <br>
  4. ESTIMATED REWARD: <text id="stats_estreward"></text>
  5. <br>
  6. UNCONFIRMED REWARD: <text id="stats_unconfreward"></text>
  7. <br>
  8. CONFIRMED REWARD: <text id="stats_confreward"></text>
  9. <br>
  10. TOTAL REWARD: <text id="stats_totreward"></text>
  11. <br>
  12. TOTAL ESTIMATED REWARD: <text id="stats_totestreward"></text>
  13. <br>
  14. SEND THRESHOLD: <text id="stats_sendthresh"></text>
  15. <br>
  16. HASHRATE: <text id="stats_hashrate"></text>
  17. <br>
  18. </div>
  19. <script type="text/javascript">
  20. var ApiToken = "102880-f86e03a19dcafe671e6670af931784ec";
  21. function UpdateMiningStats()
  22. {
  23. $.get("https://mining.bitcoin.cz/accounts/profile/json/" + ApiToken, function(data) {
  24. var stats = $.parseJSON(data);
  25. $("#stats_btcaddr").text(stats.wallet);
  26. $("#stats_estreward").text(stats.estimated_reward);
  27. $("#stats_unconfreward").text(stats.unconfirmed_reward);
  28. $("#stats_confreward").text(stats.confirmed_reward);
  29. $("#stats_totreward").text(parseInt(stats.unconfirmed_reward)+parseInt(stats.confirmed_reward));
  30. /*$("#stats_totestreward").text(((int)stats.estimated_reward)+((int)stats.unconfirmed_reward)+((int)stats.confirmed_reward);*/
  31. $("#stats_sendthresh").text(stats.send_threshold);
  32. $("#stats_hashrate").text(stats.hashrate);
  33. });
  34. }
  35.  
  36. $(document).ready(function() {
  37. UpdateMiningStats();
  38. });
  39. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement