From 1d621e71002a631f5b414f5fe5e1e0101a77f67c Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 5 Jan 2025 08:57:24 -0500 Subject: * --- html/matt-chat/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'html/matt-chat') diff --git a/html/matt-chat/index.html b/html/matt-chat/index.html index 182e323..c76b6c6 100644 --- a/html/matt-chat/index.html +++ b/html/matt-chat/index.html @@ -772,6 +772,20 @@ Available commands:\n // Add the new theme class document.body.classList.add(`theme-${themeName}`); + // Update meta theme-color + const metaThemeColor = document.querySelector('meta[name="theme-color"]'); + if (metaThemeColor) { + switch(themeName) { + case 'molly-millions': + metaThemeColor.setAttribute('content', '#00ff00'); + break; + case 'professional': + default: + metaThemeColor.setAttribute('content', '#007BFF'); + break; + } + } + // Save to localStorage localStorage.setItem('selectedTheme', themeName); -- cgit 1.4.1-2-gfad0