Skip to content

Commit

Permalink
Merge pull request #29 from matallen/race-add-belt
Browse files Browse the repository at this point in the history
updated the race-to-black vertical chart with belt colors
  • Loading branch information
etsauer authored Jun 6, 2019
2 parents 3c41cb8 + c98a3cf commit c5477cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/webapp/mojo-raceToBlack-vertical.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
.even td{
background-color: f9f9f9;
}
.belt{ color: white; }
.belt-black{ background-color: black !important;}
.belt-red{ background-color: #af0505 !important;}
.belt-grey{ background-color: grey !important;}
.belt-blue{ background-color: #3333bd !important;}
</style>

<script>
Expand Down Expand Up @@ -107,7 +112,7 @@
var c3 = newRow.insertCell(2);
var c3t = document.createTextNode("");
c3.innerHTML=json['labels'][i] +"<br/>"+json['datasets'][0]['data'][i]+"pts";
c3.className="col col-3";
c3.className="col col-3 belt belt-"+json['custom2'][i];
c3.appendChild(c3t);
// add Pts
Expand All @@ -130,3 +135,4 @@
window.frameElement.style.height=window.frameElement.contentWindow.document.body.scrollHeight+'px';
}
</script>

0 comments on commit c5477cd

Please sign in to comment.