From eba3a75045bb1a6e49544c9f42d8fe0f8084bd7e Mon Sep 17 00:00:00 2001 From: Mischa Spelt Date: Fri, 12 Jun 2020 17:38:08 +0200 Subject: [PATCH] Studiocam ingebouwd --- resources/views/layouts/master.blade.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index b22c8835..49315280 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -236,6 +236,12 @@ +
  • + + + + +
  • @@ -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() {