Skip to content

Instantly share code, notes, and snippets.

@nailton
Forked from luanrm/random.js
Created December 21, 2016 19:40
Show Gist options
  • Save nailton/9b62ecc51d2d3a9074bf9f16a1ae5f7e to your computer and use it in GitHub Desktop.
Save nailton/9b62ecc51d2d3a9074bf9f16a1ae5f7e to your computer and use it in GitHub Desktop.
var cores = [
"#F44336",
"#E91E63",
"#9C27B0",
"#673AB7",
"#3F51B5",
"#2196F3",
"#03A9F4",
"#00BCD4",
"#009688",
"#4CAF50",
"#8BC34A",
"#CDDC39",
"#FFEB3B",
"#FFC107",
"#FF9800",
"#FF5722",
"#795548",
"#607D8B",
"#FF8A65",
"#FFB74D",
"#FFD54F",
"#AED581",
"#81C784",
"#4DB6AC",
"#7986CB",
"#9575CD",
"#BA68C8",
"#F06292",
"#F48FB1",
"#E57373",
];
var css = document.getElementsByClassName("esg-click-to-play-video");
for (x = 0; x < css.length; x++) {
css[x].style.color = cores[x];
console.log(cores[x]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment