Skip to content

Commit

Permalink
percent in gauges
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Mar 11, 2024
1 parent 4cdf1a7 commit bb7c078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,9 @@ function uploadFile() {
if (!$(this).hasClass('do-not-calc')) {
if ($(this).data("sect") === 1) {
total1 += isNaN(parseInt($(this).val())) ? 0 : parseInt($(this).val());
$("#score1").text(total1);
$("#score4").text(total1);
total1pc = 100 * (total1 / 112);
$("#score1").text(total1pc + '%');
$("#score4").text(total1pc + '%');
}
if ($(this).data("sect") === 12) {
total2 += isNaN(parseInt($(this).val())) ? 0 : parseInt($(this).val());
Expand Down

0 comments on commit bb7c078

Please sign in to comment.