1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Update donation HTML page to use new PayPal donation links

We add javascript code to the page to handle dynamic selection of donation currency
This commit is contained in:
Mounir IDRASSI
2025-01-06 11:50:20 +01:00
parent a8c904813b
commit e8e0be2ad5
3 changed files with 145 additions and 31 deletions

9
doc/html/donation.js Normal file
View File

@@ -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');
}
});
});