Skip to content

Commit

Permalink
Display session code to organisers
Browse files Browse the repository at this point in the history
  • Loading branch information
vojta001 committed Apr 1, 2021
1 parent a5bc7c6 commit bdcbb8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/html/game.page.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ end -}}

{{- define "header" }}
<h1>{{ .P.Edges.Session.Edges.Game.Name }}</h1>
<h1>{{ .P.Edges.Session.Edges.Game.Name }}<span id="session-code"> ({{ .P.Edges.Session.Code }})</span></h1>
{{ end -}}

{{- define "main" }}
Expand Down
8 changes: 8 additions & 0 deletions ui/static/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ body.organiser #controls {
justify-content: flex-end;
}

#session-code {
display: none;
}

body.organiser #session-code {
display: inline;
}

@keyframes appear {
from {
transform: scale(2, 2);
Expand Down

0 comments on commit bdcbb8c

Please sign in to comment.