I AM A STUPID MAN

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 20:24:45 +01:00
parent 48f14c644e
commit 73bf5feec8
4 changed files with 5 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ customMessageBus.onMessage = function(event) {
nextTitle = json_parsed.title; nextTitle = json_parsed.title;
$("#next_title").html("Next Song:<br>" + nextTitle); $("#next_title").html("Next Song:<br>" + nextTitle);
$("#next_pic").attr("src", "//img.youtube.com/vi/"+nextVideo+"/mqdefault.jpg"); $("#next_pic").attr("src", "//img.youtube.com/vi/"+nextVideo+"/mqdefault.jpg");
$("#next_song").css("display", "flex"); if(ytReady) $("#next_song").css("display", "flex");
break; break;
} }
} }
@@ -123,6 +123,7 @@ function onPlayerReady() {
$("#player").toggleClass("hide"); $("#player").toggleClass("hide");
$("#zoff-logo").toggleClass("center"); $("#zoff-logo").toggleClass("center");
$("#zoff-logo").toggleClass("lower_left"); $("#zoff-logo").toggleClass("lower_left");
$("#next_song").css("display", "flex");
console.log(videoId); console.log(videoId);
if(videoId){ if(videoId){
loading = true; loading = true;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -180,7 +180,7 @@ var Player = {
loadVideoById: function(id){ loadVideoById: function(id){
if(chromecastAvailable){ if(chromecastAvailable){
castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideoById", videoId: id}); castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideo", videoId: id});
} else { } else {
Player.player.loadVideoById(id); Player.player.loadVideoById(id);
} }