function donation_validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); }
// Restricts input for the given textbox to the given inputFilter. function donation_setInputFilter(textbox, inputFilter) { ["input", "keydown", "keyup", "mousedown", "mouseup", "select", "contextmenu", "drop"].forEach(function(event) { textbox.addEventListener(event, function() { if (inputFilter(this.value)) { this.oldValue = this.value; this.oldSelectionStart = this.selectionStart; this.oldSelectionEnd = this.selectionEnd; } else if (this.hasOwnProperty("oldValue")) { this.value = this.oldValue; this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd); } }); }); }
function donation_toggle_selected(el){ if(el) if(el.parentElement) var els = el.parentElement.getElementsByClassName("is-selected");
for ( i = 0; i < els.length; i++) {
const sel = els[i]; sel.classList.remove("is-selected");
}
if(el) el.classList.add("is-selected");
}
function donation_set_recurring(){
frmSend = document.getElementById('recurringForm');
}
function donation_set_single(){
frmSend = document.getElementById('singleForm');
}
function donation_show_special_amount(){
document.getElementById('special_amount').style.display = 'block';
document.getElementById('other_amount').focus();
}
function donation_hide_special_amount(){
document.getElementById('special_amount').style.display = 'none';
document.getElementById('special_amount').classList.remove("is-invalid");
}
function donation_set_email(){
if (donation_validateEmail(document.getElementById('email').value)){
donation_mark_email_valid();
document.getElementById('singleForm').custom.value=document.getElementById('email').value;
document.getElementById('recurringForm').custom.value=document.getElementById('email').value;
}
else {
donation_mark_email_invalid();
}
}
function donation_mark_email_invalid(){
document.getElementById('email_block').classList.add("is-invalid");
}
function donation_validate_amount(){
// alert(document.getElementById('special_amount').style.display);
if ((document.getElementById('special_amount').style.display == 'none')||(document.getElementById('special_amount').style.display == 'none')) {
return true;
}
if (document.getElementById('other_amount').value){ var val = (document.getElementById('other_amount').value*1);
if ((val > 0) && (val< 1000000)){
donation_mark_amount_valid();
return true;
} else {
donation_mark_amount_invalid();
return false;
}
} else {
donation_mark_amount_invalid();
return false;
}
}
function donation_mark_email_valid(){
document.getElementById('email_block').classList.remove("is-invalid");
}
function donation_mark_amount_invalid(){
document.getElementById('special_amount').classList.add("is-invalid");
}
function donation_mark_amount_valid(){
document.getElementById('special_amount').classList.remove("is-invalid");
}
Email:
A Szombat Alapítványt közvetlenül is támogathatod.
Bankszámla szám: OTP
11706016 20794477