mirror of https://github.com/BTCPrivate/z-nomp.git
commit
e1675cb5fe
|
@ -34,22 +34,29 @@
|
|||
</style>
|
||||
|
||||
{{ for(var pool in it.stats.pools) { }}
|
||||
|
||||
<div class="poolMinerTable">
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Blocks</th>
|
||||
<th>Transaction</th>
|
||||
<th>Miners</th>
|
||||
<th>Shares</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Blocks</th>
|
||||
<th>Time</th>
|
||||
<th>Miners</th>
|
||||
<th>Shares</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{ for(var p in it.stats.pools[pool].payments) { }}
|
||||
<tr>
|
||||
<td>{{=it.stats.pools[pool].payments[p].blocks}}</td>
|
||||
<td>{{=it.stats.pools[pool].payments[p].txid}}</td>
|
||||
<td>
|
||||
{{=it.stats.pools[pool].payments[p].blocks}}
|
||||
</td>
|
||||
<td>
|
||||
<script type="text/javascript">
|
||||
var utcSeconds = {{=it.stats.pools[pool].payments[p].time}};
|
||||
var d = new Date(0); // The 0 there is the key, which sets the date to the epoch
|
||||
d.setUTCSeconds(utcSeconds);
|
||||
document.write(d)
|
||||
</script>
|
||||
</td>
|
||||
<td>{{=it.stats.pools[pool].payments[p].miners}}</td>
|
||||
<td>{{=Math.round(it.stats.pools[pool].payments[p].shares)}}</td>
|
||||
<td>{{=it.stats.pools[pool].payments[p].paid}} {{=it.stats.pools[pool].symbol}}</td>
|
||||
|
|
|
@ -147,9 +147,11 @@
|
|||
<a href="https://explorer.zcha.in/blocks/{{=block[0]}}" target="_blank">{{=block[2]}}</a>
|
||||
{{ } else if (String(it.stats.pools[pool].name).startsWith("zclassic")) { }}
|
||||
<a href="https://classic.zcha.in/blocks/{{=block[0]}}" target="_blank">{{=block[2]}}</a>
|
||||
{{ } else if (String(it.stats.pools[pool].name).startsWith("hush")) { }}
|
||||
<a href="https://explorer.myhush.org/block/{{=block[0]}}" target="_blank">{{=block[2]}}</a>
|
||||
{{ } else { }}
|
||||
{{=block[2]}}
|
||||
{{ } }}
|
||||
{{=block[2]}}
|
||||
{{ } }}
|
||||
{{if (block[4] != null) { }}
|
||||
<span style="padding-left: 18px;"><small>{{=readableDate(block[4])}}</small></span>
|
||||
{{ } }}
|
||||
|
|
|
@ -32,7 +32,18 @@
|
|||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
<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();
|
||||
|
@ -46,7 +57,7 @@
|
|||
<div class="poolLabel">
|
||||
<span style="float:right; margin-bottom: 8px;">
|
||||
<small>Miner Lookup:
|
||||
<input type="text" class="form-control input-lg">
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue