mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added scroll to top buttons in playlist
This commit is contained in:
@@ -212,6 +212,9 @@ var Youtube = {
|
||||
var color = colorThief.getColor(img);
|
||||
|
||||
document.getElementsByTagName("body")[0].style.backgroundColor = Helper.rgbToHsl(color);
|
||||
document.getElementById("top-button").style.backgroundColor = Helper.rgbToHsl(color);
|
||||
document.getElementById("bottom-button").style.backgroundColor = Helper.rgbToHsl(color);
|
||||
|
||||
$("meta[name=theme-color]").attr("content", Helper.rgbToHex(color[0], color[1], color[2]));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user