mirror of https://github.com/BTCPrivate/z-nomp.git
84 lines
2.9 KiB
HTML
84 lines
2.9 KiB
HTML
<style>
|
|
#bottomNotes {
|
|
display: block;
|
|
padding-left: 18px;
|
|
padding-right: 18px;
|
|
padding-bottom: 18px;
|
|
}
|
|
#topPool {
|
|
padding-top: 18px;
|
|
padding-left: 18px;
|
|
padding-right: 18px;
|
|
}
|
|
#topPool > div > div > svg {
|
|
display: block;
|
|
height: 280px;
|
|
}
|
|
.poolWrapper {
|
|
border: solid 1px #c7c7c7;
|
|
border-radius: 5px;
|
|
padding: 5px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.poolLabel {
|
|
font-size: 1.2em;
|
|
text-align: center;
|
|
padding: 4px;
|
|
}
|
|
.poolMinerTable {
|
|
|
|
}
|
|
table {
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(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">
|
|
<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="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 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}}</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>
|
|
{{ } }}
|