Commit 68aa5212 authored by Simon Daron's avatar Simon Daron Committed by fred
Browse files

add a withoutPlaylist class to player when it has no playlist

parent 3947309c
......@@ -267,10 +267,10 @@ $(function() {
//doLog(JSON.stringify(self.playlist, null, '\t'));
if(self.playlist.length >= 1){
self.element.show();
$('#Player').addClass('withPlaylist');
$('#Player').addClass('withPlaylist').removeClass('withoutPlaylist');
}else{
self.element.hide();
$('#Player').removeClass('withPlaylist');
$('#Player').removeClass('withPlaylist').addClass('withoutPlaylist');
}
}
});
......
......@@ -49,7 +49,7 @@
<h1><span id="radioPanik" class="inBlock">Radio Panik</span> <span id="frequence" class="inBlock">105.4 FM</span></h1>
<!--{% block logo %}<img class="logo" src="{{ STATIC_URL }}/img/LogoPanik.jpg"/>{% endblock %}-->
</div>
<div id="Player" class="{% block player-class %}{% endblock %}">
<div id="Player" class="withoutPlaylist">
{% block listen %}{% player %}{% endblock %}
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment