PageSourceSearch

https://www.messe-offenbach.de/wp-content/cache/autoptimize/js/aut…_single_e4baba933fcea4a255b4feb9ea1fa5b3.js

js messe-offenbach.de collected 2026-10-05 00:41:44 UTC 7,209 bytes, 104 lines download raw bytes

1(function($)
2{$.fn.avia_ajax_form=function(variables)
3{var defaults={sendPath:'send.php',responseContainer:'.ajaxresponse'};var options=$.extend(defaults,variables);return this.each(function()
4{var form=$(this),form_sent=false,msgFieldsWithError=form.data('fields-with-error'),send={formElements:form.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:false,button:form.find('input:submit'),dataObj:{},withError:[]},responseContainer=form.next(options.responseContainer).eq(0);send.button.on('click',checkElements);if($.avia_utilities.isMobile)
5{send.formElements.each(function(i)
6{var currentElement=$(this),is_email=currentElement.hasClass('is_email');if(is_email)currentElement.attr('type','email');});}
7function checkElements(e)
8{send.validationError=false;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)
9{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=true;if(currentElement.is(':checkbox'))
10{if(currentElement.is(':checked'))
11{value=true;}
12else
13{value='';}}
14send.dataObj[name]=encodeURIComponent(value);if(classes&&classes.match(/is_empty/))
15{if(value==''||value==null)
16{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
17else
18{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
19nomatch=false;}
20if(classes&&classes.match(/is_email/))
21{if(!value.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/))
22{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
23else
24{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
25nomatch=false;}
26if(classes&&classes.match(/is_ext_email/))
27{if(!value.match(/^[\w\.\-ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/))
28{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
29else
30{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
31nomatch=false;}
32if(classes&&classes.match(/is_special_email/))
33{if(!value.match(/^[a-zA-Z0-9.!#$%&'*+\-\/=?^_`{|}~ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/))
34{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
35else
36{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
37nomatch=false;}
38if(classes&&classes.match(/is_phone/))
39{if(!value.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/))
40{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
41else
42{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
43nomatch=false;}
44if(classes&&classes.match(/is_number/))
45{if(!value.match(/^-?\s*(0|[1-9]\d*)([\.,]\d+)?$/))
46{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
47else
48{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
49nomatch=false;}
50if(classes&&classes.match(/is_positiv_number/))
51{if(!(av_isNumeric(value))||value==""||value<0)
52{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;send.withError.push(label);}
53else
54{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
55nomatch=false;}
56if(classes&&classes.match(/captcha/)&&!classes.match(/recaptcha/))
57{var verifier=form.find("#"+name+"_verifier").val(),lastVer=verifier.charAt(verifier.length-1),finalVer=verifier.charAt(lastVer);if(value!=finalVer)
58{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
59else
60{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
61nomatch=false;}
62if(nomatch&&value!='')
63{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}});form.find('.av-fields-with-error').remove();if(send.validationError==false)
64{if(form.data('av-custom-send'))
65{mailchimp_send();}
66else
67{send_ajax_form();}}
68else
69{if(form.is('.av-show-form-errors')&&send.withError.length>0)
70{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=[];}}
71return false;}
72function send_ajax_form()
73{if(form_sent)
74{return false;}
75if(send.button.hasClass('avia_button_inactive'))
76{return false;}
77form_sent=true;send.button.addClass('av-sending-button');send.button.val(send.button.data('sending-label'));var redirect_to=form.data('avia-redirect')||false,action=form.attr('action'),label=form.is('.av-form-labels-style');if(label)
78{return;}
79responseContainer.load(action+' '+options.responseContainer,send.dataObj,function()
80{if(redirect_to&&action!=redirect_to)
81{form.attr('action',redirect_to);location.href=redirect_to;}
82else
83{responseContainer.removeClass('hidden').css({display:"block"});form.slideUp(400,function(){responseContainer.slideDown(400,function(){$('body').trigger('av_resize_finished');});send.formElements.val('');});}});}
84function mailchimp_send()
85{if(form_sent)
86{return false;}
87form_sent=true;var original_label=send.button.val();send.button.addClass('av-sending-button');send.button.val(send.button.data('sending-label'));send.dataObj.ajax_mailchimp=true;var redirect_to=form.data('avia-redirect')||false,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()
88{if(error_msg_container.length)
89{error_msg_container.slideUp(400,function()
90{error_msg_container.remove();$('body').trigger('av_resize_finished');});}},success:function(responseText)
91{var response=jQuery("<div>").append(jQuery.parseHTML(responseText)),error=response.find('.av-form-error-container');if(error.length)
92{form_sent=false;form.prepend(error);error.css({display:"none"}).slideDown(400,function()
93{$('body').trigger('av_resize_finished');});send.button.removeClass('av-sending-button');send.button.val(original_label);}
94else
95{if(redirect_to&&action!=redirect_to)
96{form.attr('action',redirect_to);location.href=redirect_to;}
97else
98{var success_text=response.find(options.responseContainer+"_"+form_id);responseContainer.html(success_text).removeClass('hidden').css({display:"block"});form.slideUp(400,function()
99{responseContainer.slideDown(400,function()
100{$('body').trigger('av_resize_finished');});send.formElements.val('');});}}},error:function()
101{},complete:function()
102{}});}
103function av_isNumeric(obj)
104{var type=typeof obj;return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj));}});};})(jQuery);

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.