Skip to content

Commit

Permalink
add end time
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikb351 committed Dec 12, 2023
1 parent 33e2116 commit c179f53
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions standings.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ <h4>Over The Garden Wall</h4>
<th>#</th>
<th>Team</th>
<th>Start Time</th>
<th>End Time</th>
</tr>
</table>
</div>
Expand Down Expand Up @@ -203,17 +204,19 @@ <h4>Over The Garden Wall</h4>
complete: function (results, file) {
// console.log("Parsing complete:", results, file);
// results.data.
const leaderboard = results.data.filter(function (row){
const leaderboard = results.data.filter(function (row) {
if (row["Team Name"] == "")
return false;
else
return true
}).map(function(row) {
}).map(function (row) {

return {
name: row["Team Name"],
size: row["Team Size"],
time: row["Start Time"]
time: row["Start Time"],
end: row["End Time"],
duration: row["Time"]
}
})
const leaderboard1 = [
Expand Down Expand Up @@ -389,6 +392,22 @@ <h4>Over The Garden Wall</h4>
}
return `${time}pm`;
});
// end
teams
.append("td")
.attr("class", ({ duration }) => {
if (duration.toLowerCase() == "dnf") {
return "";
}
return `time`;
})
.append("span")
.text(({ duration }) => {
if (duration.toLowerCase() == "dnf") {
return "-";
}
return `${duration.replace(":","h")}m`;
});
}
})

Expand Down

0 comments on commit c179f53

Please sign in to comment.