Fixed the remote, and removed materializecss stupid slider that struggles with click events

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-07 18:49:12 +02:00
parent 2b9d891098
commit 8de799b748
5 changed files with 74 additions and 21 deletions

View File

@@ -12,11 +12,13 @@ socket.on("id", function(id)
{
socket.on(id, function(arr)
{
console.log(arr);
if(arr[0] == "volume")
{
$("#volume").slider("value", arr[1]);
ytplayer.setVolume(arr[1]);
localStorage.setItem("volume", arr[1]);
choose_button(arr[1], false);
}else if(arr[0] == "channel")
{
socket.emit("change_channel");