From 7e428bef40d4b359c7b1615207621b091c813e4b Mon Sep 17 00:00:00 2001 From: Hans Scharler Date: Wed, 30 Oct 2024 15:03:37 -0400 Subject: [PATCH] Added current color as a mouse hover --- logo.html | 1 + snow.html | 3 ++- solid-color-background.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/logo.html b/logo.html index 37ce238..4f439b9 100644 --- a/logo.html +++ b/logo.html @@ -47,6 +47,7 @@ return; } document.body.style.backgroundColor = color.htmlName; + document.body.title = `Current CheerLights color: ${color.htmlName}`; } document.body.addEventListener('click', () => { diff --git a/snow.html b/snow.html index 082a3f5..9c365c7 100644 --- a/snow.html +++ b/snow.html @@ -49,7 +49,8 @@ return; } document.body.style.backgroundColor = color.htmlName; - } + document.body.title = `Current CheerLights color: ${color.htmlName}`; + function createSnowflake() { const snowflake = document.createElement('div'); diff --git a/solid-color-background.html b/solid-color-background.html index 56ca513..d058639 100644 --- a/solid-color-background.html +++ b/solid-color-background.html @@ -36,7 +36,7 @@ return; } document.body.style.backgroundColor = color.htmlName; - } + document.body.title = `Current CheerLights color: ${color.htmlName}`; document.body.addEventListener('click', () => { window.open(CHEERLIGHTS_URL, '_blank');