timescale appearance improved

This commit is contained in:
moneroexamples 2016-04-21 05:08:47 +00:00
parent 0a5ac0452d
commit 9e4e4022c8
2 changed files with 29 additions and 28 deletions

View file

@ -654,7 +654,7 @@ namespace xmreg {
// get mixins in time scale for visual representation
pair<string, double> mixin_times_scale = xmreg::timestamps_time_scale(
mixin_timestamps,
server_timestamp, 130);
server_timestamp, 160);
// add beginning and end to the mixin_times_scale
string timescale_str = string("|")

View file

@ -33,6 +33,34 @@
</table>
<h3>Outputs</h3>
<div class="center">
<table class="center" >
<tr>
<td>out_pub_key</td>
<td>amount</td>
</tr>
{{#outputs}}
<tr>
<td>{{out_pub_key}}</td>
<td>{{amount}}</td>
</tr>
{{/outputs}}
</table>
</div>
<h3>Inputs' mixins time scale (from genesis till {{server_time}};
resolution: {{timescales_scale}} days)</h3>
<div class="center">
<ul class="center">
{{#timescales}}
<li style="list-style-type: none; text-align: center; font-size: 8px">{{timescale}}</li>
{{/timescales}}
</ul>
</div>
<h3>Inputs {{inputs_no}}</h3>
<div class="center">
<table class="center">
@ -73,31 +101,4 @@
<h3>Mixins time scale (resolution: {{timescales_scale}} days)</h3>
<h4>From Gensis till {{server_time}}</h4>
<div class="center">
<ul class="center">
{{#timescales}}
<li style="list-style-type: none; text-align: center;">{{timescale}}</li>
{{/timescales}}
</ul>
</div>
<h3>Outputs</h3>
<div class="center">
<table class="center" >
<tr>
<td>out_pub_key</td>
<td>amount</td>
</tr>
{{#outputs}}
<tr>
<td>{{out_pub_key}}</td>
<td>{{amount}}</td>
</tr>
{{/outputs}}
</table>
</div>
</div>