Studiocam ingebouwd

This commit is contained in:
2020-06-12 17:38:08 +02:00
parent e52c814c7b
commit eba3a75045

View File

@@ -236,6 +236,12 @@
<label>Luister NH Gooi Radio</label>
</a>
</li>
<li class="watch-studio">
<a href='{{route('kijk.studio')}}' title="Kijk live mee in de radiostudio van NH Gooi">
<span class="fa fa-camera"></span>
<label>Studiocam</label>
</a>
</li>
<li class="watch-live">
<a href='{{route('kijk.live')}}' title="Kijk live naar NH Gooi TV">
<span class="fa fa-camera"></span>
@@ -429,6 +435,7 @@
title: $(".now-playing-header .title"),
artist: $(".now-playing-header .artist"),
controls: $(".now-playing-header .controls"),
studiocam: $(".now-playing-header .watch-studio"),
programLink: $(".now-playing-header .program-link a"),
programLabel: $(".now-playing-header .program-link a > label"),
first: true
@@ -442,6 +449,7 @@
$nowPlaying.title.text(data.current.title).attr('title', data.current.title);
$nowPlaying.artist.text(data.current.artist).attr('title', data.current.artist);
}
$nowPlaying.studiocam.toggle(data.stream);
$nowPlaying.programLink.attr('href', '{{route("programma")}}' + data.program.url);
if($nowPlaying.first) { $nowPlaying.controls.hide(); }
$nowPlaying.container.slideDown(function() {