Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active April 11, 2018 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/c070527f06b9e03943da2ace797ef2fa to your computer and use it in GitHub Desktop.
Save ryanburnette/c070527f06b9e03943da2ace797ef2fa to your computer and use it in GitHub Desktop.
pop the buffer colors on reserve grids on flica
['red','green'].forEach(function (color) {
document.querySelectorAll('.buffer-color-'+color).forEach(function (el) {
el.setAttribute('style','background-color:'+color+'!important;color:white!important;')
})
})
["red","green"].forEach(function(o){document.querySelectorAll(".buffer-color-"+o).forEach(function(r){r.setAttribute("style","background-color:"+o+"!important;color:white!important;")})});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment