easter-egg added

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-07 12:11:33 +02:00
parent d9e961c088
commit d20a83efe7
2 changed files with 17 additions and 1 deletions

View File

@@ -71,8 +71,14 @@ socket.on(chan.toLowerCase()+",viewers", function(view)
getTitle(song_title, viewers);
});
socket.on("chat,"+chan.toLowerCase(), function(data)
{
console.log(data);
});
$(document).ready(function()
{
$("#settings").sideNav({
menuWidth: 300, // Default is 240
edge: 'right', // Choose the horizontal origin
@@ -245,6 +251,12 @@ function notifyUser(id, title) {
}
}
function chat(data)
{
socket.emit("chat", data);
return;
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}