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

Fix bug on page Listen

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