mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
25 lines
563 B
JavaScript
25 lines
563 B
JavaScript
/**
|
|
* Logo
|
|
*
|
|
* @param {number} height The height of the logo
|
|
*/
|
|
beestat.component.logo = function(height) {
|
|
this.height_ = height || 48;
|
|
beestat.component.apply(this, arguments);
|
|
};
|
|
beestat.extend(beestat.component.logo, beestat.component);
|
|
|
|
/**
|
|
* Decorate
|
|
*
|
|
* @param {rocket.Elements} parent
|
|
*/
|
|
beestat.component.logo.prototype.decorate_ = function(parent) {
|
|
const logo = $.createElement('img')
|
|
.setAttribute('src', 'img/logo.png')
|
|
.style({
|
|
'height': this.height_ + 'px'
|
|
});
|
|
parent.appendChild(logo);
|
|
};
|