X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=web-static%2Findex.html;h=62bfc62d6329ff85fc942ec5bc63e821647f3ab0;hb=391787fd6661af8ec0e24ff61c8c6364da9708b9;hp=dbd31b623072948b293b9d25a4926a2f8e65c833;hpb=baea66d3f8ad2fb8161dd063a9fcc135583b07a1;p=p2pool.git diff --git a/web-static/index.html b/web-static/index.html index dbd31b6..62bfc62 100644 --- a/web-static/index.html +++ b/web-static/index.html @@ -11,7 +11,7 @@ function values(o){ res = []; for(var x in o) res.push(o[x]); return res; } - d3.json('/local_stats', function(local_stats) { + d3.json('../local_stats', function(local_stats) { d3.select('#peers_in').text(local_stats.peers.incoming); d3.select('#peers_out').text(local_stats.peers.outgoing); @@ -35,7 +35,7 @@ var time_to_share = local_stats.attempts_to_share/local; d3.select('#time_to_share').text(d3.format('.3r')(time_to_share/3600) + " hours"); - d3.json('/global_stats', function(global_stats) { + d3.json('../global_stats', function(global_stats) { d3.select('#pool_rate').text(d3.format('.3s')(global_stats.pool_hash_rate) + 'H/s'); d3.select('#pool_stale').text(d3.format('.2p')(global_stats.pool_stale_prop)); d3.select('#difficulty').text(d3.format('.3r')(global_stats.min_difficulty)); @@ -47,16 +47,16 @@ }); }); - d3.json('/web/version', function(version) { + d3.json('../web/version', function(version) { d3.selectAll('#version').text(version); }); - d3.json('/web/currency_info', function(currency_info) { + d3.json('../web/currency_info', function(currency_info) { d3.selectAll('.symbol').text(currency_info.symbol); - d3.json('/current_payouts', function(pays) { - d3.json('/payout_addr', function(addr) { - d3.select('#payout_addr').text(addr); + d3.json('../current_payouts', function(pays) { + d3.json('../payout_addr', function(addr) { + d3.select('#payout_addr').text(addr).attr('href', currency_info.address_explorer_url_prefix + addr); d3.select('#payout_amount').text(addr in pays ? pays[addr] : 0); }); @@ -71,7 +71,7 @@ total_tr.append('td').text(d3.sum(arr, function(addr){return pays[addr]}).toFixed(8)); }); - d3.json('/recent_blocks', function(blocks) { + d3.json('../recent_blocks', function(blocks) { var tr = d3.select('#blocks').selectAll().data(blocks).enter().append('tr'); tr.append('td').text(function(block){return new Date(1000*block.ts).toString()}); tr.append('td').text(function(block){return block.number}); @@ -80,7 +80,7 @@ }); }); - d3.json('/web/best_share_hash', function(c) { + d3.json('../web/best_share_hash', function(c) { d3.select('#best_share').append('a').attr('href', 'share.html#' + c).text(c.substr(-8)); }); @@ -90,21 +90,22 @@ d3.select(id).selectAll().data(d).enter().append('span').text(' ').append('a').attr('href', function(c){return 'share.html#' + c}).text(function(c){return c.substr(-8)}); }); } - fill('/web/verified_heads', '#verified_heads'); - fill('/web/heads', '#heads'); - fill('/web/verified_tails', '#verified_tails'); - fill('/web/tails', '#tails'); + fill('../web/verified_heads', '#verified_heads'); + fill('../web/heads', '#heads'); + fill('../web/verified_tails', '#verified_tails'); + fill('../web/tails', '#tails'); + fill('../web/my_share_hashes', '#my_share_hashes'); -

P2Pool

+

P2Pool

Graphs

Version:

Pool rate: ( DOA+orphan) Share difficulty:

Node uptime: days Peers: out, in

Local rate: ( DOA) Expected time to share:

Shares: total ( orphaned, dead) Efficiency:

-

Payout if a block were found NOW: to . Expected after mining for 24 hours:

+

Payout if a block were found NOW: to . Expected after mining for 24 hours: per block.

Current block value: Expected time to block:

@@ -114,6 +115,7 @@

Heads:

Verified tails:

Tails:

+

My shares:

Blocks found in last day:

Note that blocks may have been orphaned from the P2Pool chain and so not be here.