1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00
beestat/js/component/logo.js
2021-02-09 20:40:46 -05:00

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);
};