The bar is comming

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 17:13:03 +01:00
parent bc17384dc9
commit 011fbf4530
7 changed files with 24 additions and 31 deletions

View File

@@ -9,7 +9,7 @@ var Youtube = {
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
$("#player_overlay").height($("#player").height());
if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide");
//if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide");
try{
ytplayer.stopVideo();
}catch(e){}
@@ -27,7 +27,8 @@ var Youtube = {
Youtube.getTitle(song_title, viewers);
Youtube.setBGimage(video_id);
if(player_ready && !window.mobilecheck())
//if(player_ready && !window.mobilecheck())
if(player_ready)
{
if(ytplayer.getVideoUrl().split('v=')[1] != video_id)
{
@@ -118,15 +119,15 @@ var Youtube = {
onPlayerReady: function(event) {
player_ready = true;
if(!window.mobilecheck())
{
/*if(!window.mobilecheck())
{*/
$("#player").css("opacity", "1");
$("#controls").css("opacity", "1");
$(".playlist").css("opacity", "1");
ytplayer.loadVideoById(video_id);
ytplayer.playVideo();
ytplayer.seekTo(seekTo);
}
//}
Youtube.readyLooks();
Playercontrols.initYoutubeControls(ytplayer);
Playercontrols.initSlider();