Created
August 16, 2019 16:35
-
-
Save farhadhp/061d20794983c6f9b50a8a79e7fb0cb8 to your computer and use it in GitHub Desktop.
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
((colors, query) => | |
Array.from(document.querySelectorAll(query)).forEach(cell => | |
cell.setAttribute( | |
"fill", | |
`#${colors[Math.floor(Math.random() * colors.length)]}` | |
) | |
))(["acd5f2", "7fa8c9", "527ba0", "254e77"], ".user-contrib-cell"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment