Files
peya-nodejs-pool/website_example/pages/top10miners.html

93 lines
2.8 KiB
HTML
Raw Normal View History

2026-03-24 11:32:40 +01:00
<section class="page-hero page-hero-compact">
<div class="page-hero-copy">
<span class="eyebrow">Leaderboard</span>
<h3><span data-tkey="top10miners">Top 10 miners</span></h3>
<p class="hero-copy-text">
A clean leaderboard for the biggest contributors by hashrate, recent share activity, and submitted work.
</p>
</div>
<div class="page-hero-panel">
<div class="hero-kpi">
<span>Ranking</span>
<strong>Top 10</strong>
</div>
<div class="hero-kpi">
<span>Signal</span>
<strong>Live shares</strong>
</div>
</div>
</section>
2026-03-24 11:32:40 +01:00
<section class="section-block">
<div class="section-head">
<div>
<span class="eyebrow">Miners</span>
<h4>Pool leaderboard</h4>
</div>
</div>
<ul class="nav nav-tabs" id="blocksTabs">
</ul>
2026-03-24 11:32:40 +01:00
<div class="tab-content" id="tab-content">
</div>
</section>
<script id="siblingTabTemplate" type="text/x-handlebars-template">
2021-01-03 23:51:09 -05:00
<li id="blockTab{{coin}}" role="presentation" class="{{active}}"><a href="#{{coin}}" data-coin="{{coin}}">{{coin}} {{symbol}}</a></li>
</script>
<script id="siblingTemplate" type="text/x-handlebars-template">
2021-01-03 23:51:09 -05:00
<div role="tabpanel" class="tab-pane {{active}}" id="{{coin}}">
<div class="card">
<div id="top10miners" class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th class="col1 sort">#</th>
<th class="col2 sort"><span data-tkey="miner">Miner</span></th>
<th class="col3 sort"><span data-tkey="hashRate">Hash Rate</span></th>
<th class="col4 sort"><span data-tkey="lastShare">Last Share Submitted</span></th>
<th class="col5 sort"><span data-tkey="totalHashes">Total Hashes Submitted</span></th>
</tr>
</thead>
<tbody id="top10miners_rows{{coin}}">
</tbody>
</table>
</div>
</div>
</div>
</script>
<!-- Javascript -->
<script>
2021-01-03 23:51:09 -05:00
let ranOnce = false
let xhrGetMiners = {}
// Update current page
currentPage = {
destroy: function(){
if (xhrGetMiners) {
Object.keys(xhrGetMiners).forEach(key => {
if (xhrGetMiners[key])
xhrGetMiners[key].abort();
})
}
$('#blocksTabs a').off('click')
},
update: function(updateKey){
top10Miners_UpdateTop10(xhrGetMiners, api, updateKey)
2021-01-03 23:51:09 -05:00
}
};
2021-01-03 23:51:09 -05:00
function RunOnce() {
$('#blocksTabs a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
return true
}
2021-01-03 23:51:09 -05:00
top10Miners_InitTemplate(xhrGetMiners, ranOnce)
</script>