Mobile styling, some toasts, more colors, now uses minified versions

This commit is contained in:
Nicolas A. Tonne
2015-04-30 21:46:26 +02:00
parent 291f6bfdc6
commit 97faaa922b
8 changed files with 101 additions and 64 deletions

View File

@@ -303,6 +303,7 @@ io.on('connection', function(socket){
if(lists[coll].length/2 <= docs[0]["skips"].length+1 && !contains(docs[0]["skips"], guid))
{
change_song(coll);
socket.emit("toast", "skip");
}else if(!contains(docs[0]["skips"], guid)){
db.collection(coll).update({views:{$exists:true}}, {$push:{skips:guid}}, function(err, d){
socket.emit("toast", (Math.ceil(lists[coll].length/2) - docs[0]["skips"].length-1) + " more are needed to skip!");