Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Show disqualified drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
der-eismann committed Oct 22, 2020
1 parent 2163d38 commit 90d50cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ <h5>Misc:</h5>
</thead>
<tbody>
<tr v-for="driver in Ranking.RankingData" :style="RowBackground(driver.IsPlayer, driver.AI)">
<td style="text-align: center;">{{ driver.LapData.PitStatus == 0 || driver.LapData.ResultStatus == 6 || driver.LapData.ResultStatus == 7 ? '' : '⛽' }}</td>
<td>{{ driver.LapData.ResultStatus == 6 || driver.LapData.ResultStatus == 7 ? 'DNF' : driver.LapData.CarPosition }}</td>
<td style="text-align: center;">{{ driver.LapData.PitStatus == 0 || driver.LapData.ResultStatus == 4 || driver.LapData.ResultStatus == 6 || driver.LapData.ResultStatus == 7 ? '' : '⛽' }}</td>
<td>{{ PositionOrResult(driver.LapData.ResultStatus, driver.LapData.CarPosition) }}</td>
<td><span :class="Flag(driver.Nation)"></span></td>
<td>{{ driver.Name }}</td>
<td><img :src="TyreCompoundImg(driver.Tyres)"></td>
Expand Down
9 changes: 9 additions & 0 deletions static/js/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ var telemetry = new Vue({
return ""
}
},
PositionOrResult(status, pos) {
if (status == 6 || status == 7) {
return "DNF"
}
if (status == 4) {
return "DSQ"
}
return pos
},
GridPosDiff(pos, grid) {
if ((pos - grid) > 0) {
return '▼'
Expand Down

0 comments on commit 90d50cf

Please sign in to comment.