minor logs

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-11 01:29:41 +02:00
parent c8f8a3e0dd
commit 6cbe19d4f2
3 changed files with 3 additions and 5 deletions

View File

@@ -98,7 +98,6 @@ socket.on("skipping", function(obj)
function set_conf(conf_array) function set_conf(conf_array)
{ {
console.log("startTime");
if(conf_array['adminpass'] == "" || w_p == false) hasadmin = false; if(conf_array['adminpass'] == "" || w_p == false) hasadmin = false;
else hasadmin = true; else hasadmin = true;
music = conf_array["allvideos"]; music = conf_array["allvideos"];

View File

@@ -85,7 +85,6 @@ $(document).ready(function (){
var playlists = []; var playlists = [];
socket.emit('frontpage_lists'); socket.emit('frontpage_lists');
socket.on('playlists', function(msg){ socket.on('playlists', function(msg){
console.log(msg);
populate_channels(msg); populate_channels(msg);
}) })

View File

@@ -27,7 +27,7 @@ function setup_youtube_listener(channel)
{ {
socket.on(channel.toLowerCase()+",np", function(obj) socket.on(channel.toLowerCase()+",np", function(obj)
{ {
console.log(obj); //console.log(obj);
if(obj[0].length == 0){ if(obj[0].length == 0){
console.log("Empty list"); console.log("Empty list");
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!"; document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
@@ -37,7 +37,7 @@ function setup_youtube_listener(channel)
importOldList(channel.toLowerCasettings-barse()); importOldList(channel.toLowerCasettings-barse());
} }
else{ else{
console.log("gotten new song"); //console.log("gotten new song");
$("#player_overlay").addClass("hide"); $("#player_overlay").addClass("hide");
video_id = obj[0][0]["id"]; video_id = obj[0][0]["id"];
conf = obj[1][0]; conf = obj[1][0];
@@ -257,7 +257,7 @@ function setBGimage(id){
var img = new Image(); var img = new Image();
img.onload = function () { img.onload = function () {
var colorThief = new ColorThief(); var colorThief = new ColorThief();
console.log(rgbToHsl(colorThief.getColor(img))); //console.log(rgbToHsl(colorThief.getColor(img)));
document.getElementsByTagName("body")[0].style.backgroundColor = rgbToHsl(colorThief.getColor(img)) document.getElementsByTagName("body")[0].style.backgroundColor = rgbToHsl(colorThief.getColor(img))
//$("body").css("background-color", rgbToHsl(colorThief.getColor(img))); //$("body").css("background-color", rgbToHsl(colorThief.getColor(img)));
//$("body").css("background-color", colorThief.getColor(img)); //$("body").css("background-color", colorThief.getColor(img));