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.
65 lines
2.8 KiB
65 lines
2.8 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 = "https://hushpool.is/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 style="padding-top:18px">
|
|
<div>
|
|
<div>
|
|
<span style="float:right; margin-bottom: 8px;">
|
|
<small><span style="color:white">Miner Lookup:</span>
|
|
<input type="text" class="form-control input-lg" style="width:200px" placeholder="z-address" onkeypress="return searchKeyPress(event);">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default btn-lg" type="button">Search</button>
|
|
</span>
|
|
</small>
|
|
</span>
|
|
<span style="color:white">{{=capitalizeFirstLetter(it.stats.pools[pool].name)}} Miners</span>
|
|
<div>
|
|
<small><i class="fa fa-users"></i> <span id="statsMiners{{=pool}}">{{=it.stats.pools[pool].minerCount}}</span> Miners
|
|
<i class="fa fa-rocket"></i> <span id="statsWorkers{{=pool}}">{{=it.stats.pools[pool].workerCount}}</span> Workers
|
|
<i class="fa fa-cog"></i> <span id="statsWorkers{{=pool}}">{{=it.stats.pools[pool].shareCount}}</span> Shares </small>
|
|
</div>
|
|
</div>
|
|
<div style="color:white; padding:25px"><strong>Miner addresses are hidden for extreme privacy.</strong><br/><strong>Miner stats:</strong> https://hushpool.is/workers/z-address</div>
|
|
<div>
|
|
<table>
|
|
<thead>
|
|
<tr style="color:white">
|
|
<th>Miner</th>
|
|
<th>Shares</th>
|
|
<th>Efficiency</th>
|
|
<th>Hashrate</th>
|
|
</tr>
|
|
</thead>
|
|
{{ var minerindex = 0; }}
|
|
{{ for(var worker in it.stats.pools[pool].miners) { }}
|
|
{{ minerindex++; }}
|
|
{{var workerstat = it.stats.pools[pool].miners[worker];}}
|
|
<tr>
|
|
<td>Miner #{{=minerindex}}</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>
|
|
{{ } }}
|
|
|