mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
minor logs
This commit is contained in:
@@ -98,7 +98,6 @@ socket.on("skipping", function(obj)
|
||||
|
||||
function set_conf(conf_array)
|
||||
{
|
||||
console.log("startTime");
|
||||
if(conf_array['adminpass'] == "" || w_p == false) hasadmin = false;
|
||||
else hasadmin = true;
|
||||
music = conf_array["allvideos"];
|
||||
|
||||
@@ -85,7 +85,6 @@ $(document).ready(function (){
|
||||
var playlists = [];
|
||||
socket.emit('frontpage_lists');
|
||||
socket.on('playlists', function(msg){
|
||||
console.log(msg);
|
||||
populate_channels(msg);
|
||||
})
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ function setup_youtube_listener(channel)
|
||||
{
|
||||
socket.on(channel.toLowerCase()+",np", function(obj)
|
||||
{
|
||||
console.log(obj);
|
||||
//console.log(obj);
|
||||
if(obj[0].length == 0){
|
||||
console.log("Empty list");
|
||||
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
|
||||
@@ -37,7 +37,7 @@ function setup_youtube_listener(channel)
|
||||
importOldList(channel.toLowerCasettings-barse());
|
||||
}
|
||||
else{
|
||||
console.log("gotten new song");
|
||||
//console.log("gotten new song");
|
||||
$("#player_overlay").addClass("hide");
|
||||
video_id = obj[0][0]["id"];
|
||||
conf = obj[1][0];
|
||||
@@ -257,7 +257,7 @@ function setBGimage(id){
|
||||
var img = new Image();
|
||||
img.onload = function () {
|
||||
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))
|
||||
//$("body").css("background-color", rgbToHsl(colorThief.getColor(img)));
|
||||
//$("body").css("background-color", colorThief.getColor(img));
|
||||
|
||||
Reference in New Issue
Block a user