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