PageSourceSearch

https://ncbeonline.com/wp-content/cache/autoptimize/js/autoptimize…8f00cf421dfc22847bc5d22834b45e.js?ver=6.7.2

js ncbeonline.com collected 2026-10-01 15:27:07 UTC 5,396 bytes, 78 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,send={formElements:form.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:false,button:form.find('input:submit'),dataObj:{}},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.each(function(i)
9{var currentElement=$(this),surroundingElement=currentElement.parent(),value=currentElement.val(),name=currentElement.attr('name'),classes=currentElement.attr('class'),nomatch=true;if(currentElement.is(':checkbox'))
10{if(currentElement.is(':checked')){value=true}else{value=''}}
11send.dataObj[name]=encodeURIComponent(value);if(classes&&classes.match(/is_empty/))
12{if(value==''||value==null)
13{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
14else
15{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
16nomatch=false;}
17if(classes&&classes.match(/is_email/))
18{if(!value.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/))
19{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
20else
21{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
22nomatch=false;}
23if(classes&&classes.match(/is_ext_email/))
24{if(!value.match(/^[\w|\.|\-|ÄÖÜäöü]+@\w[\w|\.|\-|ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/))
25{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
26else
27{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
28nomatch=false;}
29if(classes&&classes.match(/is_phone/))
30{if(!value.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/))
31{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
32else
33{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
34nomatch=false;}
35if(classes&&classes.match(/is_number/))
36{if(!($.isNumeric(value))||value=="")
37{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
38else
39{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
40nomatch=false;}
41if(classes&&classes.match(/captcha/))
42{var verifier=form.find("#"+name+"_verifier").val(),lastVer=verifier.charAt(verifier.length-1),finalVer=verifier.charAt(lastVer);if(value!=finalVer)
43{surroundingElement.removeClass("valid error ajax_alert").addClass("error");send.validationError=true;}
44else
45{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}
46nomatch=false;}
47if(nomatch&&value!='')
48{surroundingElement.removeClass("valid error ajax_alert").addClass("valid");}});if(send.validationError==false)
49{if(form.data('av-custom-send'))
50{mailchimp_send();}
51else
52{send_ajax_form();}}
53return false;}
54function send_ajax_form()
55{if(form_sent){return false;}
56form_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');responseContainer.load(action+' '+options.responseContainer,send.dataObj,function()
57{if(redirect_to&&action!=redirect_to)
58{form.attr('action',redirect_to);location.href=redirect_to;}
59else
60{responseContainer.removeClass('hidden').css({display:"block"});form.slideUp(400,function(){responseContainer.slideDown(400,function(){$('body').trigger('av_resize_finished');});send.formElements.val('');});}});}
61function mailchimp_send()
62{if(form_sent){return false;}
63form_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()
64{if(error_msg_container.length)
65{error_msg_container.slideUp(400,function()
66{error_msg_container.remove();$('body').trigger('av_resize_finished');});}},success:function(responseText)
67{var response=jQuery("<div>").append(jQuery.parseHTML(responseText)),error=response.find('.av-form-error-container');if(error.length)
68{form_sent=false;form.prepend(error);error.css({display:"none"}).slideDown(400,function()
69{$('body').trigger('av_resize_finished');});send.button.removeClass('av-sending-button');send.button.val(original_label);}
70else
71{if(redirect_to&&action!=redirect_to)
72{form.attr('action',redirect_to);location.href=redirect_to;}
73else
74{var success_text=response.find(options.responseContainer+"_"+form_id);responseContainer.html(success_text).removeClass('hidden').css({display:"block"});form.slideUp(400,function()
75{responseContainer.slideDown(400,function()
76{$('body').trigger('av_resize_finished');});send.formElements.val('');});}}},error:function()
77{},complete:function()
78{}});}});};})(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.