mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-12-22 19:29:12 +00:00
repair selectors in js
This commit is contained in:
parent
d08e7db9bb
commit
1c78eefb81
1 changed files with 12 additions and 12 deletions
|
@ -3,7 +3,7 @@ room_name = null;
|
|||
event_info = null;
|
||||
|
||||
$(function() {
|
||||
$('#speaker').text('Content will appear soon.');
|
||||
$('#l3speaker').text('Content will appear soon.');
|
||||
});
|
||||
|
||||
function update_lower_third() {
|
||||
|
@ -23,8 +23,8 @@ function update_lower_third() {
|
|||
}
|
||||
|
||||
if (schedule['rooms'].length > 1 && !schedule['rooms'].includes(room_name)) {
|
||||
$('#title').text('Error')
|
||||
$('#speaker').text('Invalid room_name. Valid names: ' + schedule['rooms'].join(', '));
|
||||
$('#l3title').text('Error')
|
||||
$('#l3speaker').text('Invalid room_name. Valid names: ' + schedule['rooms'].join(', '));
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -48,19 +48,19 @@ function update_lower_third() {
|
|||
}
|
||||
|
||||
if (current_talk) {
|
||||
$('#title').text(current_talk['title']);
|
||||
$('#speaker').text(current_talk['persons'].join(', '));
|
||||
$('#info_line').text(current_talk['infoline']);
|
||||
$('#l3title').text(current_talk['title']);
|
||||
$('#l3speaker').text(current_talk['persons'].join(', '));
|
||||
$('#l3info_line').text(current_talk['infoline']);
|
||||
} else {
|
||||
$('#title').text(event_info['no_talk']);
|
||||
$('#speaker').text('');
|
||||
$('#info_line').text('');
|
||||
$('#l3title').text(event_info['no_talk']);
|
||||
$('#l3speaker').text('');
|
||||
$('#l3info_line').text('');
|
||||
}
|
||||
|
||||
if (current_talk && current_talk['track']) {
|
||||
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
|
||||
$('#l3box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
|
||||
} else {
|
||||
$('#box').css('border-bottom', 'none');
|
||||
$('#l3box').css('border-bottom', 'none');
|
||||
}
|
||||
}
|
||||
window.setInterval(update_lower_third, 1000);
|
||||
|
@ -69,7 +69,7 @@ function update_schedule() {
|
|||
$.getJSON('../event.json', function(data) {
|
||||
event_info = data;
|
||||
|
||||
$('#box').css('background-color', data['color']);
|
||||
$('#l3box').css('background-color', data['color']);
|
||||
});
|
||||
$.getJSON('../schedule.json', function(data) {
|
||||
console.info('schedule updated with ' + data['talks'].length + ' talks in ' + data['rooms'].length + ' rooms');
|
||||
|
|
Loading…
Reference in a new issue