release/live to main #7

Merged
mischa.spelt merged 91 commits from release/live into main 2024-09-12 15:09:01 +02:00
Showing only changes of commit 8ce3a1d7b3 - Show all commits

View File

@@ -148,15 +148,17 @@
title: $(".now-playing-header .title"),
artist: $(".now-playing-header .artist"),
};
console.log($nowPlaying);
$(document).on('onAirUpdated', function (evt, data) {
var title = data.current.title;
var artist = data.current.artist;
console.log(data);
var title = data.current ? data.current.title : '';
var artist = data.current ? data.current.artist : '';
if (data.inProgram) {
title = data.program.name;
artist = data.program.tagline;
}
$nowPlaying.title.text(data.current.title).attr('title', data.current.title);
$nowPlaying.artist.text(data.current.artist).attr('title', data.current.artist);
$nowPlaying.title.text(title).attr('title', title);
$nowPlaying.artist.text(artist).attr('title', artist);
$nowPlaying.container.slideDown();
document.title = title + " - " + artist + " | NH Gooi";