Disable banner by env file
Favicon aanpassen Logo aanpassen + subtitel toevoegd Tab ‘Nieuws’ uit het menu gehaalt Menu item ‘Gemist’ in menu plaaten App uit menu balk Adverteren toevoegen aan blauwe balk Wat draait in sidebar NH Gooi Radio Live Footer tekst NAW toevoegen aan contact pagina Op contactpagina: Chef redactie Delen bericht
This commit is contained in:
@@ -6,6 +6,43 @@
|
||||
@if($program->tagline)
|
||||
<p>{{$program->tagline}}</p>
|
||||
@endif
|
||||
<p class="now-playing-header-small">
|
||||
<strong>Nu:</strong>
|
||||
<span class="title"></span> -
|
||||
<span class="artist"></span>
|
||||
</p>
|
||||
<script type="text/javascript" src="/js/jquery-3.7.1.min.js"></script>
|
||||
<script>
|
||||
function updateOnAir() {
|
||||
$.ajax({
|
||||
url: '{{route('onair')}}',
|
||||
success: function (data) {
|
||||
$(document).trigger('onAirUpdated', data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function () {
|
||||
updateOnAir();
|
||||
var onAirUpdater = setInterval(updateOnAir, 5000);
|
||||
var $nowPlaying = {
|
||||
container: $(".now-playing-header-small").hide(),
|
||||
title: $(".now-playing-header-small .title"),
|
||||
artist: $(".now-playing-header-small .artist"),
|
||||
};
|
||||
$(document).on('onAirUpdated', function (evt, 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(title).attr('title', title);
|
||||
$nowPlaying.artist.text(artist).attr('title', artist);
|
||||
$nowPlaying.container.slideDown();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<h3 class="post_title">Daarna:</h3>
|
||||
<div class="podcast_items">
|
||||
|
||||
Reference in New Issue
Block a user