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() { ...@@ -267,10 +267,10 @@ $(function() {
//doLog(JSON.stringify(self.playlist, null, '\t')); //doLog(JSON.stringify(self.playlist, null, '\t'));
if(self.playlist.length >= 1){ if(self.playlist.length >= 1){
self.element.show(); self.element.show();
$('#Player').addClass('withPlaylist'); $('#Player').addClass('withPlaylist').removeClass('withoutPlaylist');
}else{ }else{
self.element.hide(); self.element.hide();
$('#Player').removeClass('withPlaylist'); $('#Player').removeClass('withPlaylist').addClass('withoutPlaylist');
} }
} }
}); });
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<h1><span id="radioPanik" class="inBlock">Radio Panik</span> <span id="frequence" class="inBlock">105.4 FM</span></h1> <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 %}--> <!--{% block logo %}<img class="logo" src="{{ STATIC_URL }}/img/LogoPanik.jpg"/>{% endblock %}-->
</div> </div>
<div id="Player" class="{% block player-class %}{% endblock %}"> <div id="Player" class="withoutPlaylist">
{% block listen %}{% player %}{% endblock %} {% block listen %}{% player %}{% endblock %}
</div> </div>
</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