houdini/client/js/components/fundraising/add_header_image.js

6 lines
296 B
JavaScript
Raw Normal View History

if(app.header_image_url) {
var cssString = "display: block; background-image: url(" + app.header_image_url + ")"
document.getElementById('js-fundraisingHeader').className ='fundraisingHeader--image container'
document.getElementById('js-fundraisingHeader-image').style.cssText = cssString
}