1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-23 22:51:02 +00:00

add room name to room info page

This commit is contained in:
Franzi 2023-02-28 19:11:10 +01:00
parent bb55df2723
commit 737a72f296
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 12 additions and 3 deletions

View file

@ -22,6 +22,12 @@ body {
text-align: center; text-align: center;
} }
#broadcast_tools_room_info_roomname {
font-size: 2em;
margin-bottom: 0.5em;
font-weight: bold;
}
#broadcast_tools_room_info_title { #broadcast_tools_room_info_title {
font-size: 6em; font-size: 6em;
margin-bottom: 0.2em; margin-bottom: 0.2em;

View file

@ -20,6 +20,8 @@ function update_room_info() {
return return
} }
$('#broadcast_tools_room_info_roomname').text(room_name);
if (!schedule) { if (!schedule) {
$('#broadcast_tools_room_info_speaker').text('Waiting for schedule ...') $('#broadcast_tools_room_info_speaker').text('Waiting for schedule ...')
return return
@ -52,7 +54,7 @@ function update_room_info() {
$('#broadcast_tools_room_info_qr').html(qr_info); $('#broadcast_tools_room_info_qr').html(qr_info);
} else { } else {
$('#broadcast_tools_room_info_title').text(event_info['name']); $('#broadcast_tools_room_info_title').text(event_info['name']);
$('#broadcast_tools_room_info_speaker').text(room_name); $('#broadcast_tools_room_info_speaker').text('');
$('#broadcast_tools_room_info_qr').text(''); $('#broadcast_tools_room_info_qr').text('');
} }

View file

@ -18,8 +18,9 @@
</head> </head>
<body id="broadcast_tools_room_info"> <body id="broadcast_tools_room_info">
<div id="broadcast_tools_room_info_header"> <div id="broadcast_tools_room_info_header">
<h1 id="broadcast_tools_room_info_title">Loading ...</p> <h1 id="broadcast_tools_room_info_roomname"></h1>
<h2 id="broadcast_tools_room_info_speaker">Content should appear soon. If not, please verify you have Javascript enabled.</h2> <h2 id="broadcast_tools_room_info_title">Loading ...</h2>
<h3 id="broadcast_tools_room_info_speaker">Content should appear soon. If not, please verify you have Javascript enabled.</h3>
</div> </div>
<div id="broadcast_tools_room_info_qr"></div> <div id="broadcast_tools_room_info_qr"></div>
</body> </body>