mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added other color to playbar for more fun
This commit is contained in:
@@ -533,6 +533,11 @@ var Player = {
|
||||
if(window.location.pathname != "/") {
|
||||
document.getElementById("main-container").style.backgroundColor = Helper.rgbToHsl(color,true);
|
||||
$("meta[name=theme-color]").attr("content", Helper.rgbToHex(color[0], color[1], color[2]));
|
||||
var new_color = Helper.rgbToHex(color[0], color[1], color[2]);
|
||||
new_color = Helper.hexToComplimentary(new_color);
|
||||
new_color = Helper.hexToRgb(new_color);
|
||||
new_color = Helper.rgbToHsl([new_color.r, new_color.g, new_color.b], true);
|
||||
$("#controls").css("background", new_color);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user