PageSourceSearch

https://www.matill-retreat.com/typo3temp/assets/compressed/MpForms…d5c5bb475444ffc192227838d-min.js?1791497227

js matill-retreat.com collected 2026-10-09 18:17:50 UTC 2,277 bytes, 7 lines download raw bytes

1function MpForms(){this.childs_class=null;this.rangePickers={};this.getSiteLanguage=function(){return $('html').attr('lang').split('-')[0]};this.defaultDatePickerOptions={language:this.getSiteLanguage(),format:'dd.mm.yyyy',todayHighlight:!0,startDate:dayjs().format('DD.MM.YYYY'),autoclose:!0};this.initForms=function(){this.childs_class=new MpFormsChilds();this.filledListener();this.submitListener();this.goBackListener()};this.filledListener=function(){$('form.mpForm').each(function(index,el){let $form=$(el);$('.form-group',$form).each(function(index,element){let $formGroup=$(element);$('input, textarea, select',$formGroup).change(function(){if($(this).val()!=''){$formGroup.addClass('form-group--filled')}else{$formGroup.removeClass('form-group--filled')}})})})};this.formSwichtThx=function($form,message){$('.page',$form).hide();$('.thank-you-container',$form).show();$('.thank-you-container .message',$form).html(message)}
2this.goBackListener=function(){$('form.mpForm').each(function(index,el){var $form=$(this);$('.mpForms-goback',$form).click(function(){$('.page',$form).show();$('.thank-you-container',$form).hide();$('.thank-you-container .message',$form).text('');$form[0].reset();$form.removeClass('isSending')})})}
3this.submitFormAjax=function($form){var action=$form.attr('action');var data=$form.serializeArray();var _=this;$.ajax({url:action,type:"POST",data:data,success:function(response){(new Function(null))()
4_.formSwichtThx($form,response.message)},error:function(error){_.formSwichtThx($form,$('.thank-you-container',$form).data('error'))}})};this.submitListener=function(){var _=this;$('form.mpForm').each(function(index,el){let $form=$(this);$form.removeClass('isSending');$form.submit(function(e){if($form.hasClass('isSending')){e.preventDefault();return!1}
5if($form.parsley().isValid()){$form.addClass('isSending')};if($('.ajaxSubmit',$form).length>0){_.submitFormAjax($form);return!1}})})}
6this.getDefaultPickerOptions=function(){return JSON.parse(JSON.stringify(this.defaultDatePickerOptions))};this.initDatePickers=function(){this.setRangePickers();this.setSinglePickers()};this.initForms()}
7MpForms.prototype.setSinglePickers=function(){};MpForms.prototype.setRangePickers=function(){};MpForms.prototype.initSelect2=function(){alert('asdf')}

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.