Created
February 4, 2020 10:49
-
-
Save danhollick/4a71f0495a66a5fd746d79ea1af042b8 to your computer and use it in GitHub Desktop.
Using Color function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="background" class="background-color"> | |
<h3 class="foreground-color">The quick brown fox</h3> | |
<h2 class="foreground-color">The quick brown fox</h2> | |
</div> | |
<script> | |
// ... | |
changeColor('background-color', message.background) | |
changeColor('foreground-color', message.foreground) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment