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{ #next_title{
position: absolute; align-self: center;
top: 45%;
right: 0px;
width: 8rem; width: 8rem;
overflow: hidden; overflow: hidden;
color: white; color: white;
display:flex;
} }
</style> </style>
</head> </head>

View File

@@ -42,7 +42,7 @@ customMessageBus.onMessage = function(event) {
nextTitle = json_parsed.title; nextTitle = json_parsed.title;
$("#next_title").html(nextTitle); $("#next_title").html(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", "block"); $("#next_song").css("display", "flex");
break; 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){ function chromecastListener(evt, data){
var json_parsed = JSON.parse(event); console.log(data);
var json_parsed = JSON.parse(data);
switch(json_parsed){ switch(json_parsed){
case -1: case -1:
socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()}); socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()});