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

Small fix for position player.fixed

parent a552c360
......@@ -31,10 +31,10 @@ $(function() {
/****************************************************/
if($('#player-container').offset()){
var topPosition = 0;
topPosition = $('#player-container').offset().top - $('#metaNav').height() + $('#Listen').height();
topPosition = $('#player-container').offset().top - $('#metaNav').height();
$(window).bind('scroll load',function (event) {
$('#player-container').removeClass('fixed');
var y = $(this).scrollTop();
var y = $(this).scrollTop() - $('#player-container').height();
if (topPosition!== 0 && y >= topPosition) {
$('#Listen').css({'min-height':$('#Listen').height()});
$('#player-container').addClass('fixed').removeClass('normal');
......
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