mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
easter-egg added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user