mirror of
				https://github.com/beestat/app.git
				synced 2025-11-03 18:37:01 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			61 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.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')
 | 
						|
  );
 | 
						|
 | 
						|
};
 |