Commit c17b3ffb authored by Simon Daron's avatar Simon Daron
Browse files

Fix bug on page Listen

parent 9ad53cbb
......@@ -50,12 +50,12 @@ $(function() {
topPosition = $('#player-container').offset().top;
$(window).bind('scroll load',function (event) {
//$('#player-container').removeClass('fixed');
var y = $(this).scrollTop() - $('#Listen').height();
var y = $(this).scrollTop() - $('#Player').height();
if (topPosition!== 0 && y >= topPosition) {
$('#Listen').css({'min-height':$('#Listen').height()});
$('#Player').css({'min-height':$('#Player').height()});
$('#player-container').addClass('fixed').removeClass('normal');
} else {
$('#Listen').css({'min-height':'auto'});
$('#Player').css({'min-height':'auto'});
$('#player-container').removeClass('fixed').addClass('normal');
}
});
......
......@@ -37,7 +37,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 %}-->
</a>
<div id="Listen" class="{% block player-class %}{% endblock %}">
<div id="Player" class="{% block player-class %}{% endblock %}">
{% block listen %}{% player %}{% endblock %}
</div>
</div>
......
{% extends "base.html" %}
{% load paniktags %}
{% block bodyID %}Player{% endblock %}
{% block main %}
<div class="padded">
<ul class="custom columns list">
......
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