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:
@@ -32,6 +32,10 @@ io.on('connection', function(socket){
|
|||||||
var tot_lists = [];
|
var tot_lists = [];
|
||||||
var in_list = false;
|
var in_list = false;
|
||||||
|
|
||||||
|
socket.on('chat', function (data) {
|
||||||
|
io.sockets.emit('chat,'+coll, guid + " said: " + data);
|
||||||
|
});
|
||||||
|
|
||||||
socket.on('frontpage_lists', function()
|
socket.on('frontpage_lists', function()
|
||||||
{
|
{
|
||||||
var playlists_to_send = [];
|
var playlists_to_send = [];
|
||||||
@@ -301,7 +305,7 @@ io.on('connection', function(socket){
|
|||||||
//console.log(coll);
|
//console.log(coll);
|
||||||
db.collection(coll).find({views:{$exists:true}}, function(err, docs){
|
db.collection(coll).find({views:{$exists:true}}, function(err, docs){
|
||||||
//console.log(docs);
|
//console.log(docs);
|
||||||
console.log(docs + " yy here?");
|
//console.log(docs + " yy here?");
|
||||||
if(docs.length != 0)
|
if(docs.length != 0)
|
||||||
{
|
{
|
||||||
if(docs[0]["adminpass"] == "" || docs[0]["adminpass"] == hash_pass(pw))
|
if(docs[0]["adminpass"] == "" || docs[0]["adminpass"] == hash_pass(pw))
|
||||||
|
|||||||
@@ -71,8 +71,14 @@ socket.on(chan.toLowerCase()+",viewers", function(view)
|
|||||||
getTitle(song_title, viewers);
|
getTitle(song_title, viewers);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
socket.on("chat,"+chan.toLowerCase(), function(data)
|
||||||
|
{
|
||||||
|
console.log(data);
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
|
|
||||||
$("#settings").sideNav({
|
$("#settings").sideNav({
|
||||||
menuWidth: 300, // Default is 240
|
menuWidth: 300, // Default is 240
|
||||||
edge: 'right', // Choose the horizontal origin
|
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) {
|
function getRandomInt(min, max) {
|
||||||
return Math.floor(Math.random() * (max - min)) + min;
|
return Math.floor(Math.random() * (max - min)) + min;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user