Meet The Masked Archer


November 25, 2021

errorClass: “mcfi_inline_error”,
errorElement: “div”,
// Validate fields on keyup, focusout and blur.
onkeyup: false,
onfocusout: function(element) {
if (!mc.isTooEarly(element)) {
jQuery(element).valid();
}
},
onblur: function(element) {
if (!mc.isTooEarly(element)) {
jQuery(element).valid();
}
},
// Grouping fields makes jQuery Validation display one error for all the fields in the group
// It doesn’t have anything to do with how the fields are validated (together or separately),
// it’s strictly for visual display of errors
groups: mc.getGroups(),
// Place a field’s inline error HTML just before the div.mc-ft-field-group closing tag
errorPlacement: function(error, element) {
element.closest(‘.mc-ft-field-group’).append(error);
},
// Submit the form via ajax (see: jQuery Form plugin)
submitHandler: function(form) {
jQuery(form).ajaxSubmit(mc.ajaxOptions);
}
});
window.mc.ajaxOptions = {
url: mc.getAjaxSubmitUrl(),
type: ‘GET’,
dataType: ‘json’,
contentType: “application/json; charset=utf-8”,
success: mc.mce_success_cb
};
// Evil Popup
jQuery(‘#mc_embed_signup_bark_footer a.mc_embed_close’).click(function(){
mc.closePopup();
});
jQuery(document).keydown(function(e){
keycode = (e == null) ? event.keyCode : e.which;
if (keycode == 27 && typeof mc.showPopup != ‘undefined’) mc.closePopup();
});
}(jQuery));
// Set this to 100 so that this function only runs once.
advagg_mod_2.count = 100;
}
}
catch(e) {
if (advagg_mod_2.count >= 40) {
// Throw the exception if this still fails after running 40 times.
throw e;
}
else {
// Try again in 250 ms.
window.setTimeout(advagg_mod_2, 250);
}
}
}
function advagg_mod_2_check() {
if (window.jQuery && window.Drupal && window.Drupal.settings) {
advagg_mod_2();
}
else {
window.setTimeout(advagg_mod_2_check, 250);
}
}
advagg_mod_2_check();SOURCE: https://thebark.com/content/meet-masked-archer