Last active
April 11, 2018 22:01
-
-
Save ryanburnette/c070527f06b9e03943da2ace797ef2fa to your computer and use it in GitHub Desktop.
pop the buffer colors on reserve grids on flica
This file contains 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
['red','green'].forEach(function (color) { | |
document.querySelectorAll('.buffer-color-'+color).forEach(function (el) { | |
el.setAttribute('style','background-color:'+color+'!important;color:white!important;') | |
}) | |
}) |
This file contains 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
["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