10 lines
272 B
JavaScript
10 lines
272 B
JavaScript
|
const brandColors = require('../components/nonprofit-branding')
|
||
|
|
||
|
$('[if-branded]').each(function() {
|
||
|
var params = this.getAttribute("if-branded").split(',').map(function(s) { return s.trim() })
|
||
|
$(this).css(params[0], brandColors[params[1]])
|
||
|
})
|
||
|
|
||
|
exports = brandColors
|
||
|
|