mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
62 lines
1.8 KiB
JavaScript
62 lines
1.8 KiB
JavaScript
/**
|
|
* Helpful footer stuff.
|
|
*/
|
|
beestat.component.card.footer = function() {
|
|
beestat.component.card.apply(this, arguments);
|
|
};
|
|
beestat.extend(beestat.component.card.footer, beestat.component.card);
|
|
|
|
beestat.component.card.footer.prototype.box_shadow_ = false;
|
|
|
|
beestat.component.card.footer.prototype.decorate_contents_ = function(parent) {
|
|
parent.style('background', beestat.style.color.bluegray.light);
|
|
|
|
var footer = $.createElement('div')
|
|
.style({
|
|
'text-align': 'center'
|
|
});
|
|
parent.appendChild(footer);
|
|
|
|
var footer_links = $.createElement('div');
|
|
footer.appendChild(footer_links);
|
|
|
|
footer_links.appendChild(
|
|
$.createElement('a')
|
|
.setAttribute('href', 'https://doc.beestat.io/')
|
|
.setAttribute('target', '_blank')
|
|
.innerText('Help')
|
|
);
|
|
footer_links.appendChild($.createElement('span').innerText(' • '));
|
|
|
|
footer_links.appendChild(
|
|
$.createElement('a')
|
|
.setAttribute('href', 'https://community.beestat.io/')
|
|
.setAttribute('target', '_blank')
|
|
.innerText('Feedback')
|
|
);
|
|
footer_links.appendChild($.createElement('span').innerText(' • '));
|
|
|
|
footer_links.appendChild(
|
|
$.createElement('a')
|
|
.setAttribute('href', 'https://beestat.io/privacy/')
|
|
.setAttribute('target', '_blank')
|
|
.innerText('Privacy')
|
|
);
|
|
footer_links.appendChild($.createElement('span').innerText(' • '));
|
|
|
|
footer_links.appendChild(
|
|
$.createElement('a')
|
|
.innerText('Newsletter')
|
|
.addEventListener('click', function() {
|
|
(new beestat.component.modal.newsletter()).render();
|
|
})
|
|
);
|
|
footer_links.appendChild($.createElement('span').innerText(' • '));
|
|
|
|
footer_links.appendChild(
|
|
$.createElement('a')
|
|
.setAttribute('href', 'mailto:contact@beestat.io')
|
|
.innerText('Contact')
|
|
);
|
|
};
|