Skip to content

Commit

Permalink
Added current color as a mouse hover
Browse files Browse the repository at this point in the history
  • Loading branch information
nothans committed Oct 30, 2024
1 parent d8ccad5 commit 7e428be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
return;
}
document.body.style.backgroundColor = color.htmlName;
document.body.title = `Current CheerLights color: ${color.htmlName}`;
}

document.body.addEventListener('click', () => {
Expand Down
3 changes: 2 additions & 1 deletion snow.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion solid-color-background.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7e428be

Please sign in to comment.