This commit is contained in:
Nicolas A. Tonne
2015-06-07 23:32:56 +02:00
8 changed files with 96 additions and 29 deletions

View File

@@ -13,11 +13,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");