Skip to content

Commit

Permalink
Show the heat name in topbar title (#12)
Browse files Browse the repository at this point in the history
* Update title display to use heat display name

* Update the documentation on this change
  • Loading branch information
klaasnicolaas authored May 28, 2024
1 parent f64105e commit 36013b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stream_overlays/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This overlay is designed by the [Dutch Drone Squad](https://dutchdronesquad.nl)

### Topbar

The title in the top bar consists of a heat name and event name which dynamically adapts to what is set in RotorHazard.

![alt Screenshot of topbar](https://raw.githubusercontent.com/dutchdronesquad/rh-stream-overlays/main/assets/overlays/topbar-dds.png)

URL to use: `RH-IP:5000/stream/overlay/dds/topbar`
Expand Down Expand Up @@ -41,6 +43,8 @@ This overlay is designed by the [Liga Colombiana Drone Racing](https://ligacolom

### Topbar

The title in the top bar consists of a heat name that changes dynamically and the organization name of LCDR (static).

![alt Screenshot of topbar](https://raw.githubusercontent.com/dutchdronesquad/rh-stream-overlays/main/assets/overlays/topbar-lcdr.png)

URL to use: `RH-IP:5000/stream/overlay/lcdr/topbar`
Expand Down
2 changes: 1 addition & 1 deletion stream_overlays/static/js/main/stream_topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ $(document).ready(function () {
if (race.heat == 0) {
heatName = __("Practice");
} else {
heatName = __("Heat") + " " + race.heat;
heatName = race.displayname;
}
$("#js--heat-title").text(heatName);
});
Expand Down

0 comments on commit 36013b9

Please sign in to comment.