diff options
Diffstat (limited to 'doc/html/donation.js')
-rw-r--r-- | doc/html/donation.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/html/donation.js b/doc/html/donation.js new file mode 100644 index 00000000..2718bbc9 --- /dev/null +++ b/doc/html/donation.js @@ -0,0 +1,9 @@ +document.addEventListener('DOMContentLoaded', function() { + document.getElementById('currency-form').addEventListener('submit', function(e) { + e.preventDefault(); + const select = this.querySelector('select'); + if (select.value) { + window.open(select.value, '_blank'); + } + }); +}); |