Created
January 9, 2015 00:06
-
-
Save francescoagati/220905560f817b792fa0 to your computer and use it in GitHub Desktop.
panel-custom-logo
This file contains hidden or 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
JSONPANEL(function() { | |
return { | |
initialize: function(element) { | |
var logo = veespo.get.custom().panel.logo; | |
html = ""; | |
html += '<div id="logo" style="background-image: url('+logo+');position: absolute;top: 5px;margin-left: auto;width: 100%;height: 216px;z-index: -1;background-repeat: no-repeat;margin-right: auto;background-position: 50% 50%;"></div>'; | |
element.innerHTML = html; | |
}, | |
render: function(element, response) { | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment