Skip to content

Commit

Permalink
Upload examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nothans authored Dec 9, 2021
1 parent a9a5f8e commit 601d533
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/body-background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<title>CheerLights Body Background Color Example</title>

</head>

<body>
<script src="../cheerlights.js"></script>

<script>
CheerLights.getColor(setBodyBackgroundColor);

function setBodyBackgroundColor(color) {
document.body.style.backgroundColor = color.htmlName;
}
</script>

</body>
</html>

0 comments on commit 601d533

Please sign in to comment.