mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Added a way of ensuring correct versions between server and client
This commit is contained in:
		@@ -413,6 +413,16 @@ 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]));
 | 
			
		||||
					/*chromecast_icon_color = Helper.rgbToHsl(color,true).replace("hsl(", "").replace("%)", "").replace("%", "").replace(" ", "").replace(" ", "");
 | 
			
		||||
					console.log(chromecast_icon_color);
 | 
			
		||||
					chromecast_icon_color = chromecast_icon_color.split(",");
 | 
			
		||||
					console.log(chromecast_icon_color);
 | 
			
		||||
					chromecast_icon_color = Helper.hslToRgb(parseInt(chromecast_icon_color[0]), parseFloat(chromecast_icon_color[1]) / 100, parseFloat(chromecast_icon_color[2]) / 100);
 | 
			
		||||
					console.log(chromecast_icon_color);
 | 
			
		||||
					chromecast_icon_color = Helper.rgbToHex(parseInt(chromecast_icon_color[0]), parseInt(chromecast_icon_color[1]), parseInt(chromecast_icon_color[2]));
 | 
			
		||||
					console.log(chromecast_icon_color);
 | 
			
		||||
 | 
			
		||||
					$(".castButton").attr("style", "display:" + $(".castButton").css("display") + ";--disconnected-color" + chromecast_icon_color + ";");*/
 | 
			
		||||
				}
 | 
			
		||||
			};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user