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:
9
doc/html/donation.js
Normal file
9
doc/html/donation.js
Normal 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');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user