Commit 519d8db3 authored by Simon Daron's avatar Simon Daron
Browse files

Test... put fixed player on bottom

parent 69e217c6
......@@ -357,7 +357,8 @@ background-color:#ff6633; border-color:#fff;}
z-index:500;
position:fixed;
width:100%;
top:2em;
/*top:2em;*/
bottom:0em;
font-size:0.9em;
}
#player-container.fixed .padded{
......
......@@ -187,7 +187,7 @@ $(function() {
topPosition = $('#player-container').offset().top;
$(window).bind('scroll load',function (event) {
//$('#player-container').removeClass('fixed');
var y = $(this).scrollTop() - $('#Player').height();
var y = $(this).scrollTop() - $('#Player').height() + $('#metaNav').height() +5;
if (topPosition!== 0 && y >= topPosition) {
$('#Player').css({'min-height':$('#Player').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