-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuymeacoffee-widget
More file actions
25 lines (22 loc) · 1.19 KB
/
buymeacoffee-widget
File metadata and controls
25 lines (22 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div><!-- buymeacoffee widget -->
<button id="buyMeACoffee">☕ Buy Me a Coffee</button>
<script>
const buyMeACoffeeButton = document.getElementById('buyMeACoffee');
buyMeACoffeeButton.addEventListener('click', () => {
window.open('https://erickouassi.com/donate.html', '_blank');
});
// Inline CSS using JavaScript
buyMeACoffeeButton.style.fontWeight = 'bold';
buyMeACoffeeButton.style.backgroundColor = '#FF0000';
buyMeACoffeeButton.style.border = 'none';
buyMeACoffeeButton.style.color = 'white';
buyMeACoffeeButton.style.padding = '15px 32px';
buyMeACoffeeButton.style.textAlign = 'center';
buyMeACoffeeButton.style.textDecoration = 'none';
buyMeACoffeeButton.style.display = 'inline-block';
buyMeACoffeeButton.style.fontSize = '16px';
buyMeACoffeeButton.style.margin = '4px 2px';
buyMeACoffeeButton.style.cursor = 'pointer';
buyMeACoffeeButton.style.borderRadius = '5px';
</script>
</div>