mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Switch standalone bracket display to highlight current match without connectors, rather than saved match with connectors.
This commit is contained in:
@@ -170,7 +170,7 @@ var handleScorePosted = function(data) {
|
||||
$("#finalMatchName").text(data.MatchType + " " + data.Match.DisplayName);
|
||||
|
||||
// Reload the bracket to reflect any changes.
|
||||
$("#bracketSvg").attr("src", "/api/bracket/svg?v=" + new Date().getTime());
|
||||
$("#bracketSvg").attr("src", "/api/bracket/svg?activeMatch=saved&v=" + new Date().getTime());
|
||||
};
|
||||
|
||||
// Handles a websocket message to play a sound to signal match start/stop/etc.
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
|
||||
var websocket;
|
||||
|
||||
// Handles a websocket message to populate the final score data, which also triggers a bracket update.
|
||||
const handleScorePosted = function(data) {
|
||||
$("#bracketSvg").attr("src", "/api/bracket/svg?v=" + new Date().getTime());
|
||||
// Handles a websocket message to load a new match.
|
||||
const handleMatchLoad = function(data) {
|
||||
$("#bracketSvg").attr("src", "/api/bracket/svg?activeMatch=current&v=" + new Date().getTime());
|
||||
};
|
||||
|
||||
$(function() {
|
||||
// Set up the websocket back to the server.
|
||||
websocket = new CheesyWebsocket("/displays/bracket/websocket", {
|
||||
scorePosted: function(event) { handleScorePosted(event.data); },
|
||||
matchLoad: function(event) { handleMatchLoad(event.data); },
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user