Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
((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
You can’t perform that action at this time.