var contactform = [];
var checkIfCalled = true;
var renderGoogleInvisibleRecaptchaFront = function() {
// prevent form submit from enter key
jQuery("input[name=_wpcf7]").attr("class","formid");
jQuery('.wpcf7-form').on('keyup keypress', "input", function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode === 13) {
e.preventDefault();
return false;
}
});jQuery('.wpcf7-submit').each(function(index){var checkexclude = 0;
var form = jQuery(this).closest('.wpcf7-form');
var value = jQuery(form).find(".formid").val();
// check form exclude from invisible recaptcha
if(checkexclude == 0){
// Hide the form orig submit button
form.find('.wpcf7-submit').hide();// Fetch class and value of orig submit button
btnClasses = form.find('.wpcf7-submit').attr('class');
btnValue = form.find('.wpcf7-submit').attr('value');// Add custom button and recaptcha holderform.find('.wpcf7-submit').after('<input type="button" id="wpcf-custom-btn-'+index+'" class="'+btnClasses+' recaptcha-btn recaptcha-btn-type-css" value="'+btnValue+'" title="'+btnValue+'" >');
form.append('<div class="recaptcha-holder" id="recaptcha-holder-'+index+'"></div>');
// Recaptcha rendenr from here
var holderId = grecaptcha.render('recaptcha-holder-'+index,{
'sitekey':'6Le-SMEaAAAAACNNqi-_rKRDfY9GfJlE5uQA0uWZ',
'size': 'invisible',
'badge' : 'bottomright', // possible values: bottomright, bottomleft, inline
'callback' : function (recaptchaToken) {
//console.log(recaptchaToken);
var response=jQuery('#recaptcha-holder-'+index).find('.g-recaptcha-response').val();
//console.log(response);
//Remove old response and store new respone
jQuery('#recaptcha-holder-'+index).parent().find(".respose_post").remove();
jQuery('#recaptcha-holder-'+index).after('<input type="hidden" name="g-recaptcha-response" value="'+response+'" class="respose_post">')
grecaptcha.reset(holderId);if(typeof customCF7Validator !== 'undefined'){
if(!customCF7Validator(form)){
return;
}
}
// Call default Validator function
else if(contactFormDefaultValidator(form)){
return;
}
else{
// hide the custom button and show orig submit button again and submit the form
jQuery('#wpcf-custom-btn-'+index).hide();
form.find('input[type=submit]').show();
form.find("input[type=submit]").click();
form.find('input[type=submit]').hide();
jQuery('#wpcf-custom-btn-'+index).attr('style','');
}
}
},false);// action call when click on custom button
jQuery('#wpcf-custom-btn-'+index).click(function(event){
event.preventDefault();
// Call custom validator function
if(typeof customCF7Validator == 'function'){
if(!customCF7Validator(form)){
return false;
}
}
// Call default Validator function
else if(contactFormDefaultValidator(form)){
return false;
}
else if(grecaptcha.getResponse(holderId) != ''){
grecaptcha.reset(holderId);
}
else{
// execute the recaptcha challenge
grecaptcha.execute(holderId);
}
});
}
});
}
(function (m, a, z, e) {
var s, t;
try {
t = m.sessionStorage.getItem('maze-us');
} catch (err) {}if (!t) {
t = new Date().getTime();
try {
m.sessionStorage.setItem('maze-us', t);
} catch (err) {}
}s = a.createElement('script');
s.src = z + '?t=' + t + '&apiKey=' + e;
s.async = true;
a.getElementsByTagName('head')[0].appendChild(s);
m.mazeUniversalSnippetApiKey = e;
})(window, document, 'https://snippet.maze.co/maze-universal-loader.js', 'e91d35ef-5b8b-4288-8672-f0c79f3fce96');
if(! ('CSS' in window) || !CSS.supports('color', 'var(--color-var)')) {
var cfStyle = document.getElementById('sage/css-css');
if(cfStyle) {
var href = cfStyle.getAttribute('href');
href = href.replace('style.css', 'style-fallback.css');
cfStyle.setAttribute('href', href);
}
}
document.getElementsByTagName("html")[0].className += " js";
var breeze_prefetch = {"local_url":"https:\/\/spiga.mx","ignore_remote_prefetch":"1","ignore_list":["\/wp-admin\/admin-ajax.php","\/wp-json\/contact-form-7\/v1\/contact-forms\/","\/wp-admin\/"]};
https://spiga.mx/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://spiga.mx/wp-content/plugins/cf7-invisible-recaptcha/js/cf7_invisible_recaptcha.js
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js?v=next');
var url = window.location.origin + '?ob=open-bridge';
fbq('set', 'openbridge', '525357885556015', url);
fbq('init', '525357885556015', {}, {
"agent": "wordpress-6.3.1-3.0.13"
})
fbq('track', 'PageView', []);
Planner