Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion public/assets/js/picoreflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,15 @@ $(document).ready(function()

left = parseInt(x.totaltime-x.runtime);
eta = new Date(left * 1000).toISOString().substr(11, 8);
const now = new Date();
const eta_time = (new Date(now.getTime() + (left - now.getTimezoneOffset() * 60) * 1000)).toISOString().substring(11, 19);

updateProgress(parseFloat(x.runtime)/parseFloat(x.totaltime)*100);
$('#state').html('<span class="glyphicon glyphicon-time" style="font-size: 22px; font-weight: normal"></span><span style="font-family: Digi; font-size: 40px;">' + eta + '</span>');
$('#state').html(
'<span class="glyphicon glyphicon-time" style="font-size: 22px; font-weight: normal"></span> ' +
'<span style="font-family: Digi; font-size: 40px;">' + eta + '</span> ' +
'<span class="glyphicon glyphicon-info-sign" style="font-size: 22px; font-weight: normal" ' +
'title="Estimated completion time: '+eta_time+'"></span></span>');
$('#target_temp').html(parseInt(x.target));
$('#cost').html(x.currency_type + parseFloat(x.cost).toFixed(2));

Expand Down