mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Nevermind, I'm not using it. It looks like shit
This commit is contained in:
@@ -252,7 +252,7 @@ function setBGimage(id){
|
||||
var img = new Image();
|
||||
img.onload = function () {
|
||||
var colorThief = new ColorThief();
|
||||
$("body").css("background-color", rgbToHsl(colorThief.getColor(img)));
|
||||
$("body").css("background-color", colorThief.getColor(img));
|
||||
};
|
||||
img.crossOrigin = 'Anonymous';
|
||||
img.src = 'http://cors-anywhere.herokuapp.com/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
|
||||
Reference in New Issue
Block a user