Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptowizzard committed Feb 25, 2016
1 parent ebd64d2 commit 484e297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
renderer += '<table class="table table-striped" style="border:1:px;"><thead><tr><td>Month</td><td>Revenue(ETH)</td><td>Revenue(USD)</td><td>Cost(USD)</td></tr></thead>';
for (var i = 0; i < predictedRev.length; i++)
renderer += '<tr><td>' + i + '</td><td>' + format(predictedRev[i]) + '</td><td>' + format(predictedRev[i] * ethPrice) + '</td><td>' + format(cost.month) + '</td></tr>';
renderer += '<tr><td>Total</td><td>' + format(sumArray(predictedRev)) + '</td><td>' + format(sumArray(predictedRev) * ethPrice) + '</td><td>' + format(cost.month) + '</td></tr>';
renderer += '<tr><td>Total</td><td>' + format(sumArray(predictedRev)) + '</td><td>' + format(sumArray(predictedRev) * ethPrice) + '</td><td>' + format(12 * cost.month) + '</td></tr>';
renderer += '</table>';

document.getElementById('result').innerHTML = renderer;
Expand Down

0 comments on commit 484e297

Please sign in to comment.