forked from hush/hnomp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.6 KiB
60 lines
2.6 KiB
<script type="text/javascript">
|
|
function searchKeyPress(e)
|
|
{
|
|
// look for window.event in case event isn't passed in
|
|
e = e || window.event;
|
|
if (e.keyCode == 13)
|
|
{
|
|
document.getElementById('btnSearch').click();
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
$(document).ready(function(){
|
|
$('.btn-lg').click(function(){
|
|
window.location = "workers/" + $('.input-lg').val();
|
|
});
|
|
});
|
|
</script>
|
|
{{ function capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)} }}
|
|
{{ var i=0; for(var pool in it.stats.pools) { }}
|
|
<div id="topPool">
|
|
<div class="poolWrapper">
|
|
<div class="poolLabel">
|
|
<span style="float:right; margin-bottom: 8px;">
|
|
<small>Miner Lookup:
|
|
<input type="text" class="form-control input-lg" onkeypress="return searchKeyPress(event);">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default btn-lg" type="button">Lookup</button>
|
|
</span>
|
|
</small>
|
|
</span>
|
|
{{=capitalizeFirstLetter(it.stats.pools[pool].name)}} Top Miners
|
|
<small><i class="fas fa-users fa-fw"></i> <span id="statsMiners{{=pool}}">{{=it.stats.pools[pool].minerCount}}</span> Miners
|
|
<i class="fas fa-rocket fa-fw"></i> <span id="statsWorkers{{=pool}}">{{=it.stats.pools[pool].workerCount}}</span> Workers
|
|
<i class="fas fa-cog fa-fw"></i> <span id="statsWorkers{{=pool}}">{{=it.stats.pools[pool].shareCount}}</span> Shares </small>
|
|
</div>
|
|
<div class="poolMinerTable">
|
|
<table class="pure-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Address</th>
|
|
<th>Shares</th>
|
|
<th>Efficiency</th>
|
|
<th>Hashrate</th>
|
|
</tr>
|
|
</thead>
|
|
{{ for(var worker in it.stats.pools[pool].miners) { }}
|
|
{{var workerstat = it.stats.pools[pool].miners[worker];}}
|
|
<tr class="pure-table-odd">
|
|
<td><a href="/workers/{{=worker.split('.')[0]}}">{{=worker.length > 40 ? worker.substring(0, 20) + '...' + worker.substring(worker.length-20, worker.length): worker}}</a></td>
|
|
<td>{{=Math.round(workerstat.currRoundShares * 100) / 100}}</td>
|
|
<td>{{? workerstat.shares > 0}} {{=Math.floor(10000 * workerstat.shares / (workerstat.shares + workerstat.invalidshares)) / 100}}% {{??}} 0% {{?}}</td>
|
|
<td>{{=workerstat.hashrateString}}</td>
|
|
</tr>
|
|
{{ } }}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ } }}
|
|
|