Added some stying, and made player controls work again

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-14 19:38:46 +02:00
parent 5192258888
commit 8a4458e764
10 changed files with 177 additions and 422 deletions

View File

@@ -78,21 +78,20 @@ function populate_list(msg)
{
player_name = "#jplayer";
}else player_name = "#player";
$("#playlist").css({height: $(".video-container").height()});
$("#playlist").css({height: $(".video-container").height()-5});
$("#playlist").css({overflow: "hidden"});
if(scroller === false)
{
myScroll = new IScroll('#playlist', {
mouseWheel: true,
scrollbars: true,
scrollY: true,
interactiveScrollbars: true,
fadeScrollbars: false
});
scroller = true;
myScroll.maxScrollY = myScroll.maxScrollY - 5;
}else
{
myScroll.refresh();
myScroll.maxScrollY = myScroll.maxScrollY - 5; //Hackish solution for not being able to scroll fully to the bottom, don't understand why this is fucked
}
}
}
@@ -102,10 +101,11 @@ function populate_list(msg)
//ytplayer.pauseVideo();
}else{
myScroll.refresh();
myScroll.maxScrollY = myScroll.maxScrollY - 5;
}
$("#settings").css("visibility", "visible");
$("#settings").css("opacity", "0.7");
$("#settings").css("opacity", "1");
$("#wrapper").css("opacity", "1");
}