VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/doc/html/donation.js
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2025-01-06 11:50:20 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2025-01-06 11:50:20 +0100
commite8e0be2ad55fbcb88228c5e8e7e65922458e3a49 (patch)
tree1f4df72697e84cf47f77e9f5b96b68c0231995f6 /doc/html/donation.js
parenta8c904813b78d966acb16c1b1a1fca17f05524fb (diff)
downloadVeraCrypt-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.js9
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');
+ }
+ });
+});