mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Show playoff alliance numbers on audience display.
This commit is contained in:
@@ -69,6 +69,17 @@ var handleMatchLoad = function(data) {
|
||||
$("#" + blueSide + "Team2Avatar").attr("src", getAvatarUrl(currentMatch.Blue2));
|
||||
$("#" + blueSide + "Team3Avatar").attr("src", getAvatarUrl(currentMatch.Blue3));
|
||||
|
||||
// Show alliance numbers if this is an elimination match.
|
||||
if (currentMatch.Type === "elimination") {
|
||||
$("#" + redSide + "ElimAlliance").text(currentMatch.ElimRedAlliance);
|
||||
$("#" + blueSide + "ElimAlliance").text(currentMatch.ElimBlueAlliance);
|
||||
$(".elim-alliance").show();
|
||||
} else {
|
||||
$("#" + redSide + "ElimAlliance").text("");
|
||||
$("#" + blueSide + "ElimAlliance").text("");
|
||||
$(".elim-alliance").hide();
|
||||
}
|
||||
|
||||
if (data.Match.Type === "test") {
|
||||
$("#matchName").text(currentMatch.DisplayName);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user