");
jQuery("body").append(overlay_opacity);
var overlay = jQuery("
");
jQuery("body").append(overlay);
}
}
if (typeof (remove_overlay_contact_bank_6396) !== "function")
{
function remove_overlay_contact_bank_6396() {
jQuery(".loader_opacity").remove();
jQuery(".opacity_overlay").remove();
}
}
if (typeof (only_characters_contact_bank_6396) !== "function")
{
function only_characters_contact_bank_6396(event, timestamp, max_limit, value) {
var content = jQuery("#ux_txt_singal_line_text_" + timestamp).val();
var characters_length = content.length;
max_limit !== "" ? jQuery("#ux_txt_singal_line_text_" + timestamp).attr("maxlength", max_limit) : "";
if (max_limit === "")
{
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "none");
} else if (characters_length > max_limit) {
var lastIndex = content.lastIndexOf(" ");
jQuery("#ux_txt_singal_line_text_" + timestamp).val(content.substring(0, lastIndex));
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").addClass("field_label");
jQuery("#ux_text_appear_after_counter_" + timestamp).text(max_limit - characters_length + " " + value);
} else {
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").addClass("field_label");
jQuery("#ux_text_appear_after_counter_" + timestamp).text(max_limit - characters_length + " " + value);
}
}
}
if (typeof (only_digits_contact_bank_6396) !== "function")
{
function only_digits_contact_bank_6396(event, timestamp, max_limit, text_appear)
{
var content = jQuery("#ux_txt_singal_line_text_" + timestamp).val();
var words = content.split(/\s+/);
var words_length = words.length;
jQuery("#ux_txt_singal_line_text_" + timestamp).removeAttr("maxlength", "");
var value = text_appear;
if (words_length > max_limit) {
event.preventDefault();
var lastIndex = content.lastIndexOf(" ");
jQuery("#ux_txt_singal_line_text_" + timestamp).val(content.substring(0, lastIndex));
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").addClass("field_label");
if (max_limit > words_length)
{
jQuery("#ux_text_appear_after_counter_" + timestamp).text(max_limit - words_length + " " + value);
}
}
else
{
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").addClass("field_label");
jQuery("#ux_text_appear_after_counter_" + timestamp).text(max_limit - words_length + " " + value);
}
}
}
if (typeof (apply_input_masking_contact_bank_6396) !== "function")
{
function apply_input_masking_contact_bank_6396(input_id, timestamp, input_mask_type, custom_mask_value) {
switch (input_mask_type) {
case "none":
jQuery("#ux_txt_singal_line_text_" + timestamp).unmask();
break;
case "us_phone":
jQuery("#ux_txt_singal_line_text_" + timestamp).unmask();
jQuery("#ux_txt_singal_line_text_" + timestamp).mask("(999)999-9999");
break;
case "date":
jQuery("#ux_txt_singal_line_text_" + timestamp).unmask();
jQuery("#ux_txt_singal_line_text_" + timestamp).mask("99/99/9999");
break;
case "custom":
jQuery("#ux_txt_singal_line_text_" + timestamp).unmask();
jQuery("#ux_txt_singal_line_text_" + timestamp).mask(custom_mask_value);
break;
}
}
}
if (typeof (change_label_placement_contact_bank_6396) !== "function")
{
function change_label_placement_contact_bank_6396(input_id, timestamp, label_placement_type, control_name)
{
switch (label_placement_type)
{
case "above":
jQuery("#field_label_" + timestamp).css("display", "block");
if (control_name == "radio-list" || control_name == "checkbox-list")
{
jQuery("#ux_txt_check_box_" + timestamp).insertAfter("#field_label_" + timestamp);
}
else
{
jQuery("#ux_txt_singal_line_text_" + timestamp).insertAfter("#field_label_" + timestamp);
}
jQuery("#ux_text_appear_after_counter_" + timestamp).css({"position": "", "margin-top": "", "margin-left": ""});
jQuery("#ux_txt_singal_line_text_" + timestamp).css({"display": "block", "margin-left": "9px", "margin-right": "0"});
jQuery("#ux_sub_div_" + timestamp).removeClass("field_label").removeClass("control-label");
break;
case "below":
jQuery("#field_label_" + timestamp).css("display", "block");
if (control_name == "radio-list" || control_name == "checkbox-list")
{
jQuery("#ux_txt_check_box_" + timestamp).insertBefore(jQuery("#field_label_" + timestamp).addClass("field_label").addClass("control-label"));
}
else
{
jQuery("#ux_txt_singal_line_text_" + timestamp).insertBefore(jQuery("#field_label_" + timestamp).addClass("field_label").addClass("control-label")).css({"margin-right": "0", "margin-bottom": "-8% "});
}
jQuery("#ux_text_appear_after_counter_" + timestamp).css({"position": ""});
jQuery("#ux_sub_div_" + timestamp).addClass("field_label").addClass("control-label").css("padding-bottom", "10px");
break;
case "left":
jQuery("#field_label_" + timestamp).css("display", "");
if(control_name == "radio-list" || control_name == "checkbox-list")
{
jQuery("#ux_txt_check_box_" + timestamp);
}
jQuery("#ux_text_appear_after_counter_" + timestamp).css({"position": "relative", "margin-top": "", "margin-left": "30%"});
jQuery("#ux_txt_singal_line_text_" + timestamp).css({"display": "inline-block", "margin-left": "0px", "margin-right": "0"});
jQuery("#ux_sub_div_" + timestamp).addClass("field_label").addClass("control-label");
break;
case "right":
jQuery("#field_label_" + timestamp).css("display", "");
if(control_name == "radio-list" || control_name == "checkbox-list")
{
jQuery("#ux_txt_check_box_" + timestamp).prependTo("#field_label_" + timestamp);
}
jQuery("#ux_text_appear_after_counter_" + timestamp).css({"position": "", "margin-top": "", "margin-left": ""});
jQuery("#ux_txt_singal_line_text_" + timestamp).css({"display": "inline-block", "margin-left": "0px", "margin-right": "5%"});
jQuery("#ux_sub_div_" + timestamp).addClass("field_label").addClass("control-label");
break;
case "hidden":
jQuery("#field_label_" + timestamp).addClass("field_label").addClass("control-label");
jQuery("#ux_text_appear_after_counter_" + timestamp).css({"position": "", "margin-top": "", "margin-left": ""});
jQuery("#ux_txt_singal_line_text_" + timestamp).css({"display": "block", "margin-left": "9px"});
if(control_name == "radio-list" || control_name == "checkbox-list")
{
jQuery("#ux_txt_check_box_" + timestamp).insertAfter("#field_label_" + timestamp);
}
else
{
jQuery("#ux_txt_singal_line_text_" + timestamp).insertAfter("#field_label_" + timestamp).css({"margin-right": "0"});
}
jQuery("#field_label_" + timestamp).css("display", "none");
break;
}
}
}
if (typeof (number_settings_contact_bank_6396) !== "function")
{
function number_settings_contact_bank_6396(timestamp, event, step_number_cb, min_number, max_number)
{
var count = 0;
var step_count = 0;
step_number_cb = parseInt(step_number_cb);
min_number = parseInt(min_number);
max_number = parseInt(max_number);
var input_number = parseInt(jQuery("#ux_txt_singal_line_text_" + timestamp).val());
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "none");
if (min_number !== "" && max_number !== "")
{
jQuery("#ux_btn_save_changes").removeAttr("disabled","disabled");
if (input_number > max_number)
{
count = 1;
}
else if (jQuery.trim(input_number) < min_number)
{
count = 1;
}
}
if (input_number % step_number_cb !== 0 && step_number_cb !== "") {
step_count = 1;
}
if (count === 1 && step_count === 1) {
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").html("Please enter number between " + min_number + " and " + max_number + " Please Increment By " + step_number_cb).addClass("field_label");
jQuery("#ux_btn_save_changes").attr("disabled","disabled");
}
else if (step_count === 1)
{
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").html("Please Increment By " + step_number_cb).addClass("field_label");
jQuery("#ux_btn_save_changes").attr("disabled","disabled");
}
else if (count === 1)
{
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "block").html("Please enter number between " + min_number + " and " + max_number + "").addClass("field_label");
jQuery("#ux_btn_save_changes").attr("disabled","disabled");
}
if (input_number === "")
{
jQuery("#ux_text_appear_after_counter_" + timestamp).css("display", "none");
jQuery("#ux_btn_save_changes").attr("disabled","disabled");
}
}
}
if (typeof (submit_form_contact_bank_6396) !== "function")
{
function submit_form_contact_bank_6396(controls_ids, form_name, save_submssion, page_url, submission_enable_disable, submission_limit, redirect_type, redirect_url,form_success_message)
{
var form_id = "6";
var id_count = "8";
var url_redirect_after_submit = redirect_type == "page" ? page_url : redirect_url;
jQuery("#ux_frm_main_container_6396").validate({
errorClass: "custom-error",
rules:
{
ux_txt_singal_line_text_1551276309 :
{
required: true
},
ux_txt_singal_line_text_2147483647 :
{
required: true
},
ux_txt_singal_line_text_1551276310 :
{
required: true
},
ux_chk_gdpr_compliance_agree_form_6396:
{
required: true
},
},
messages:
{
ux_txt_singal_line_text_1551276309: "Dies ist ein MUSS-Feld",
ux_txt_singal_line_text_2147483647: "Dies ist ein MUSS-Feld",
ux_txt_singal_line_text_1551276310: "Das ist ein MUSS-Feld",
ux_chk_gdpr_compliance_agree_form_6396: "This field is Required!",
},
errorPlacement: function(error, element)
{
error.insertAfter(element.parent());
error.insertAfter(element.parent());
error.insertAfter(element.parent());
error.insertAfter(element.parent());
},
submitHandler: function ()
{
jQuery("html, body").animate({ scrollTop: 0 }, "slow");
if ((submission_enable_disable == "disable") || (submission_enable_disable == "enable" && id_count < submission_limit))
{
jQuery("#form_error_message_frontend_6396").css("display", "none");
jQuery("#form_success_message_frontend_6396").css("display", "block");
jQuery("#success_message_text_6396").text("Kindly wait until the form is submitted.");
}
jQuery.post(ajaxurl, {
form_id : form_id,
save_submssion : save_submssion,
submission_limit : submission_limit,
submission_enable_disable : submission_enable_disable,
data : base64_encode_contact_bank(jQuery(form_name).serialize()),
controls_ids : JSON.stringify(controls_ids),
param : "frontend_form_module",
action : "contact_bank_frontend_ajax_call"
},
function(data)
{
if ((submission_enable_disable == "disable") || (submission_enable_disable == "enable" && id_count < submission_limit))
{
jQuery("#form_success_message_frontend_6396").css("display", "block");
overlay_loading_contact_bank_6396();
jQuery("#success_message_text_6396").text(form_success_message);
setTimeout(function ()
{
remove_overlay_contact_bank_6396();
window.location.href = url_redirect_after_submit;
}, 3000);
}
else
{
jQuery("#form_error_message_frontend_6396").css("display", "block");
}
});
}
});
}
}
var price_arr = [];
jQuery(document).ready(function () {
var timestamp = 1551276309;
var control_name = 'first_name';
var label_placement_type = "above";
var input_mask_type = "";
var custom_mask = "";
change_label_placement_contact_bank_6396("ux_ddl_label_placement_" + timestamp, timestamp, label_placement_type, control_name);
apply_input_masking_contact_bank_6396("ux_txt_singal_line_text_" + timestamp, timestamp, input_mask_type, custom_mask);
if(control_name == "select")
{
jQuery("#ux_txt_singal_line_text_" + timestamp).val("");
}
var timestamp = 2147483647;
var control_name = 'text';
var label_placement_type = "above";
var input_mask_type = "none";
var custom_mask = "999,999,999,999";
change_label_placement_contact_bank_6396("ux_ddl_label_placement_" + timestamp, timestamp, label_placement_type, control_name);
apply_input_masking_contact_bank_6396("ux_txt_singal_line_text_" + timestamp, timestamp, input_mask_type, custom_mask);
if(control_name == "select")
{
jQuery("#ux_txt_singal_line_text_" + timestamp).val("");
}
var timestamp = 1551276310;
var control_name = 'email';
var label_placement_type = "above";
var input_mask_type = "";
var custom_mask = "";
change_label_placement_contact_bank_6396("ux_ddl_label_placement_" + timestamp, timestamp, label_placement_type, control_name);
apply_input_masking_contact_bank_6396("ux_txt_singal_line_text_" + timestamp, timestamp, input_mask_type, custom_mask);
if(control_name == "select")
{
jQuery("#ux_txt_singal_line_text_" + timestamp).val("");
}
var timestamp = 1551276312;
var control_name = 'paragraph';
var label_placement_type = "above";
var input_mask_type = "none";
var custom_mask = "999,999,999,999";
change_label_placement_contact_bank_6396("ux_ddl_label_placement_" + timestamp, timestamp, label_placement_type, control_name);
apply_input_masking_contact_bank_6396("ux_txt_singal_line_text_" + timestamp, timestamp, input_mask_type, custom_mask);
if(control_name == "select")
{
jQuery("#ux_txt_singal_line_text_" + timestamp).val("");
}
});