[UPDATE] cleanup
This commit is contained in:
parent
464a16d83d
commit
f79cbc6c1e
@ -1,52 +0,0 @@
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
|
||||
var blockdata = [
|
||||
{section block $BLOCKSFOUND step=-1}{ldelim}
|
||||
blockHeight: "{$BLOCKSFOUND[block].height}",
|
||||
estShares: {$BLOCKSFOUND[block].estshares},
|
||||
actShares: {$BLOCKSFOUND[block].shares|default:"0"},
|
||||
{if $USEBLOCKAVERAGE}
|
||||
avgShares: {$BLOCKSFOUND[block].block_avg|default:"0"},
|
||||
{/if}
|
||||
{if $GLOBAL.config.payout_system == 'pplns'}
|
||||
pplnsShares: {$BLOCKSFOUND[block].pplns_shares|default:"0"},
|
||||
{/if}
|
||||
{rdelim},
|
||||
{/section}
|
||||
];
|
||||
|
||||
Morris.Area({
|
||||
element: 'block-area-chart',
|
||||
data: blockdata,
|
||||
xkey: 'blockHeight',
|
||||
ykeys : ['estShares', {if $USEBLOCKAVERAGE}'avgShares', {/if}{if $GLOBAL.config.payout_system == 'pplns'}'pplnsShares', {/if} 'actShares'],
|
||||
labels : ['Expected Shares', {if $USEBLOCKAVERAGE}'Average Shares', {/if}{if $GLOBAL.config.payout_system == 'pplns'}'PPLNS Shares',{/if} 'Actual Shares'],
|
||||
pointSize: 2,
|
||||
hideHover: 'auto',
|
||||
resize: true
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
Block Shares
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="panel-group">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="flot-chart">
|
||||
<div id="block-area-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user