Remove remaining 2019-specific code.

This commit is contained in:
Patrick Fairbank
2020-03-22 13:59:07 -07:00
parent 80454117c7
commit de976ab59f
3 changed files with 35 additions and 53 deletions

View File

@@ -99,8 +99,8 @@ var handleMatchTime = function(data) {
// Handles a websocket message to update the match score.
var handleRealtimeScore = function(data) {
$("#redScore").text(data.Red.ScoreSummary.Score - data.Red.ScoreSummary.HabClimbPoints);
$("#blueScore").text(data.Blue.ScoreSummary.Score - data.Blue.ScoreSummary.HabClimbPoints);
$("#redScore").text(data.Red.ScoreSummary.Score - data.Red.ScoreSummary.EndgamePoints);
$("#blueScore").text(data.Blue.ScoreSummary.Score - data.Blue.ScoreSummary.EndgamePoints);
};
$(function() {

View File

@@ -78,12 +78,10 @@ var handleMatchTime = function(data) {
$("#commitMatchScore").hide();
break;
case "POST_MATCH":
$("#preMatchMessage").hide();
$("#postMatchMessage").hide();
$("#commitMatchScore").css("display", "flex");
break;
default:
$("#preMatchMessage").hide();
$("#postMatchMessage").hide();
$("#commitMatchScore").hide();
}