This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 19:43:51 +01:00
parent 692b0361c6
commit ced8db7de1
4 changed files with 7 additions and 7 deletions

View File

@@ -54,12 +54,11 @@
}
#next_title{
position: absolute;
top: 45%;
right: 0px;
align-self: center;
width: 8rem;
overflow: hidden;
color: white;
display:flex;
}
</style>
</head>

View File

@@ -42,7 +42,7 @@ customMessageBus.onMessage = function(event) {
nextTitle = json_parsed.title;
$("#next_title").html(nextTitle);
$("#next_pic").attr("src", "//img.youtube.com/vi/"+nextVideo+"/mqdefault.jpg");
$("#next_song").css("display", "block");
$("#next_song").css("display", "flex");
break;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -299,8 +299,9 @@ function hide_native(way){
}
}
function chromecastListener(evt,event){
var json_parsed = JSON.parse(event);
function chromecastListener(evt, data){
console.log(data);
var json_parsed = JSON.parse(data);
switch(json_parsed){
case -1:
socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()});