mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Forgot something in remote
This commit is contained in:
@@ -27,7 +27,7 @@ socket.on("id", function(id)
|
|||||||
chan = arr[1].toLowerCase();
|
chan = arr[1].toLowerCase();
|
||||||
$("#chan").html(chan.substring(0,1).toUpperCase()+chan.substring(1).toLowerCase());
|
$("#chan").html(chan.substring(0,1).toUpperCase()+chan.substring(1).toLowerCase());
|
||||||
socket.on(chan.toLowerCase(), function(msg){
|
socket.on(chan.toLowerCase(), function(msg){
|
||||||
populate_list(msg, false);
|
channel_function(msg);
|
||||||
});
|
});
|
||||||
|
|
||||||
setup_youtube_listener(chan);
|
setup_youtube_listener(chan);
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ var check = false;
|
|||||||
return check; };
|
return check; };
|
||||||
|
|
||||||
socket.on(chan.toLowerCase(), function(msg){
|
socket.on(chan.toLowerCase(), function(msg){
|
||||||
|
channel_function(msg);
|
||||||
|
});
|
||||||
|
|
||||||
|
function channel_function(msg)
|
||||||
|
{
|
||||||
if(msg[0] == "list")
|
if(msg[0] == "list")
|
||||||
{
|
{
|
||||||
full_playlist = msg[1];
|
full_playlist = msg[1];
|
||||||
@@ -58,7 +63,7 @@ socket.on(chan.toLowerCase(), function(msg){
|
|||||||
|
|
||||||
populate_list(full_playlist);
|
populate_list(full_playlist);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
socket.on("skipping", function(obj)
|
socket.on("skipping", function(obj)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user