aboutsummaryrefslogtreecommitdiffstats
path: root/html/matt-chat/index.html
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-01-05 08:57:24 -0500
committerelioat <elioat@tilde.institute>2025-01-05 08:57:24 -0500
commit1d621e71002a631f5b414f5fe5e1e0101a77f67c (patch)
treef3887af11ddd8a310f0af2552efe7c4db872182e /html/matt-chat/index.html
parente3b513e983ffb236149cb9ec314f04d340a4f627 (diff)
downloadtour-1d621e71002a631f5b414f5fe5e1e0101a77f67c.tar.gz
*
Diffstat (limited to 'html/matt-chat/index.html')
-rw-r--r--html/matt-chat/index.html14
1 files changed, 14 insertions, 0 deletions
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);