feat: add donation
This commit is contained in:
28
layouts/partials/extended_footer.html
Normal file
28
layouts/partials/extended_footer.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<script data-name="BMC-Widget"
|
||||
data-cfasync="false"
|
||||
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
|
||||
data-id="daemonlord"
|
||||
data-description="Support me on Buy me a coffee!"
|
||||
data-message="Thanks for Visiting!"
|
||||
data-color="#eec35e"
|
||||
data-position="Right"
|
||||
data-x_margin="18"
|
||||
data-y_margin="18">
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function openBMCWidget() {
|
||||
const container = document.getElementById('bmc-wbtn');
|
||||
if (container) container.click();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const supportLinks = document.querySelectorAll('a[data-identifier="support"]');
|
||||
supportLinks.forEach(link => {
|
||||
link.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
openBMCWidget();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user