diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2025-01-06 11:50:20 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2025-01-06 11:50:20 +0100 |
commit | e8e0be2ad55fbcb88228c5e8e7e65922458e3a49 (patch) | |
tree | 1f4df72697e84cf47f77e9f5b96b68c0231995f6 /doc/html/donation.js | |
parent | a8c904813b78d966acb16c1b1a1fca17f05524fb (diff) | |
download | VeraCrypt-e8e0be2ad55fbcb88228c5e8e7e65922458e3a49.tar.gz VeraCrypt-e8e0be2ad55fbcb88228c5e8e7e65922458e3a49.zip |
Update donation HTML page to use new PayPal donation links
We add javascript code to the page to handle dynamic selection of donation currency
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'); + } + }); +}); |