PageSourceSearch

https://www.oee.fr/wp-content/cache/wpo-minify/1790265710/assets/w…footer-avia-module-contact1779457174.min.js

js oee.fr collected 2026-09-24 22:43:56 UTC 6,996 bytes, 30 lines download raw bytes

1
2(function($){$.fn.avia_ajax_form=function(variables){var defaults={sendPath:'send.php',responseContainer:'.ajaxresponse'};var options=$.extend(defaults,variables);return this.each(function(){var form=$(this),form_sent=!1,msgFieldsWithError=form.data('fields-with-error'),send={formElements:form.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:!1,button:form.find('input:submit'),dataObj:{},withError:[]},responseContainer=form.next(options.responseContainer).eq(0);send.button.on('click',checkElements);if($.avia_utilities.isMobile){send.formElements.each(function(i){var currentElement=$(this),is_email=currentElement.hasClass('is_email');if(is_email)currentElement.attr('type','email');})}
3function checkElements(e){send.validationError=!1;send.datastring='ajax=true';send.formElements=form.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden], input[type=email]');send.formElements.each(function(i){var currentElement=$(this),surroundingElement=currentElement.parent(),value=currentElement.val(),label=surroundingElement.find("label").text().replace(/\*/g,'').trim(),name=currentElement.attr('name'),classes=currentElement.attr('class'),nomatch=!0;if(currentElement.is(':checkbox')){if(currentElement.is(':checked')){value=!0}else{value=''}}
4send.dataObj[name]=encodeURIComponent(value);if(classes&&classes.match(/is_empty/)){if(value==''||value==null){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
5nomatch=!1}
6if(classes&&classes.match(/is_email/)){if(!value.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/)){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
7nomatch=!1}
8if(classes&&classes.match(/is_ext_email/)){if(!value.match(/^[\w\.\-ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
9nomatch=!1}
10if(classes&&classes.match(/is_special_email/)){if(!value.match(/^[a-zA-Z0-9.!#$%&'*+\-\/=?^_`{|}~ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
11nomatch=!1}
12if(classes&&classes.match(/is_phone/)){if(!value.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/)){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
13nomatch=!1}
14if(classes&&classes.match(/is_number/)){if(!value.match(/^-?\s*(0|[1-9]\d*)([\.,]\d+)?$/)){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
15nomatch=!1}
16if(classes&&classes.match(/is_positiv_number/)){if(!(av_isNumeric(value))||value==""||value<0){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0;send.withError.push(label)}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
17nomatch=!1}
18if(classes&&classes.match(/captcha/)&&!classes.match(/recaptcha/)){var verifier=form.find("#"+name+"_verifier").val(),lastVer=verifier.charAt(verifier.length-1),finalVer=verifier.charAt(lastVer);if(value!=finalVer){surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=!0}else{surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}
19nomatch=!1}
20if(nomatch&&value!=''){surroundingElement.removeClass("valid error ajax_alert").addClass("valid")}});form.find('.av-fields-with-error').remove();if(send.validationError==!1){if(form.data('av-custom-send')){mailchimp_send()}else{send_ajax_form()}}else{if(form.is('.av-show-form-errors')&&send.withError.length>0){var withErrorFields=send.withError.join(', ');var withErrorContainer=$('<p class="av-fields-with-error"></p>').insertAfter($(send.button).parent());let msg=msgFieldsWithError?msgFieldsWithError+' ':'Found errors in the following field(s): ';withErrorContainer.text(msg+withErrorFields);send.withError=[]}}
21return!1}
22function send_ajax_form(){if(form_sent){return!1}
23if(send.button.hasClass('avia_button_inactive')){return!1}
24form_sent=!0;send.button.addClass('av-sending-button');send.button.val(send.button.data('sending-label'));var redirect_to=form.data('avia-redirect')||!1,action=form.attr('action'),label=form.is('.av-form-labels-style');if(label){return}
25responseContainer.load(action+' '+options.responseContainer,send.dataObj,function(){if(redirect_to&&action!=redirect_to){form.attr('action',redirect_to);location.href=redirect_to}else{responseContainer.removeClass('hidden').css({display:"block"});form.slideUp(400,function(){responseContainer.slideDown(400,function(){$('body').trigger('av_resize_finished')});send.formElements.val('')})}})}
26function mailchimp_send(){if(form_sent){return!1}
27form_sent=!0;var original_label=send.button.val();send.button.addClass('av-sending-button');send.button.val(send.button.data('sending-label'));send.dataObj.ajax_mailchimp=!0;var redirect_to=form.data('avia-redirect')||!1,action=form.attr('action'),error_msg_container=form.find('.av-form-error-container'),form_id=form.data('avia-form-id');$.ajax({url:action,type:"POST",data:send.dataObj,beforeSend:function(){if(error_msg_container.length){error_msg_container.slideUp(400,function(){error_msg_container.remove();$('body').trigger('av_resize_finished')})}},success:function(responseText){var response=jQuery("<div>").append(jQuery.parseHTML(responseText)),error=response.find('.av-form-error-container');if(error.length){form_sent=!1;form.prepend(error);error.css({display:"none"}).slideDown(400,function(){$('body').trigger('av_resize_finished')});send.button.removeClass('av-sending-button');send.button.val(original_label)}else{if(redirect_to&&action!=redirect_to){form.attr('action',redirect_to);location.href=redirect_to}else{var success_text=response.find(options.responseContainer+"_"+form_id);responseContainer.html(success_text).removeClass('hidden').css({display:"block"});form.slideUp(400,function(){responseContainer.slideDown(400,function(){$('body').trigger('av_resize_finished')});send.formElements.val('')})}}},error:function(){},complete:function(){}})}
28function av_isNumeric(obj){var type=typeof obj;return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj))}})}})(jQuery);
29
30

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.