Web/scripts/support.js

29 lines
1.1 KiB
JavaScript

const support = [{
'name': 'Support me on Patreon',
'desc': 'Patreon is a great way of giving me money regularly. You automatically give me a set amount each month, and in return, you can get cool rewards like beta access to my game or visual fanciness for your Minecraft character when using my mods.',
'link': 'https://patreon.com/Ellpeck',
'icon': 'patreon'
},
{
'name': 'Donate with PayPal',
'desc': 'If you prefer the idea of giving me some money as a one-time payment, using PayPal is probably your best bet. It\'s quick and easy, and it helps me out just the same way.',
'link': 'https://paypal.me/Ellpeck',
'icon': 'paypal'
}
];
let sp = '';
for (way of support) {
sp += '<div class="row align-items-center">';
sp += '<div class="col-md-auto">';
sp += '<a class="btn btn-light support-button rounded-0" href="' + way['link'] + '"><img src="res/support/' + way['icon'] + '.png" class="support-image" alt="">' + way['name'] + '</a>';
sp += '</div>';
sp += '<div class="col">';
sp += way['desc'];
sp += '</div>';
sp += '</div>';
}
$('#support-list').html(sp);