Newsletter

{
            culture: 'de',
            dateFormat: 'dd.mm.yy',
            defaultErrorMessage: ''
        }
{
            $('#formData').slideDown('slow');
            $('#guestInfo').hide();
        }
{
            if($('#rejectionInfo >div[class*="field"]').length == 0){
                $('#eventRejectionData .submitButton').click();
            }
            else{
                $('#eventRejectionData').slideDown('slow');
                $('#guestInfo').hide();
            }
        }
{
			$('#linkAddCompanion').slideDown(100);
			$('#'+divId).slideUp(500, function(){
				var lastVisibleItem = $('#companions >div:visible').filter(':last');
				if(lastVisibleItem.length > 0){
					lastVisibleItem.after($(this));
			        var currentId = 0;
					$('#companions > div').each(function() {
						var currentElementId = $(this).attr('id');
						var newElementId = 'companion' + currentId;
						if (currentElementId != newElementId) {
							$(this).find('.field_empty > span').text(currentId+1);
							$(this).attr('id', newElementId);
							$(this).find('[id$=""' + currentElementId + '""], [for$=""' + currentElementId + '""]').each(function() {
								var $this = $(this);
								$this.attr('id', $this.attr('id').replace(currentElementId, newElementId));
								if (typeof $this.attr('for') != 'undefined')
									$this.attr('for', $this.attr('for').replace(currentElementId, newElementId));
							});
						}
						currentId = currentId + 1;
					})
				}
			});
		}
{
			var companions = $('#companions > div');
			companions.each(function(index, item){
				var companion = $(item);
				if(companion.is(':hidden')) {
					companion.slideDown(500, function() {
						// hide/show companion element after sliding it into view to avoid display issues in IE compatibility view
						window.setTimeout(function() {
							companion.hide();
							companion.show();
						}, 10);
					});
					if(index == companions.length - 1){
						$('#linkAddCompanion').slideUp(100);
					}
					return false;
				}
			});
		}
{
			function setTime(inputName) {
                var mwNow = new Date(), month = mwNow.getUTCMonth(), month = month * 1, month = month + 1;
                document.getElementById(inputName).value = mwNow.getUTCDate() + '.' + month + '.' +  mwNow.getUTCFullYear() + ' ' + mwNow.getUTCHours() + ':' + mwNow.getUTCMinutes() + ':' + mwNow.getUTCSeconds();
            }
            function validateForm() {
                var form = $('form:visible');
                var settings = $.data(form.get(0), "validator").settings;
                settings.ignore = "#companions :hidden";
                var validator = form.validate();
                if (!validator)
                    return true;
                var elementsToValidate = validator.elements();
                var valid = true;
                for (var i = 0; i < elementsToValidate.length; i++){ var element = $(elementsToValidate[i]); if (element.is(':visible') || (element.is(':checkbox') && element.parent().is(':visible'))) { validator.element(elementsToValidate[i]); valid = valid && validator.valid(); } } return valid; } function init() { setTime('mwhidtm'); var currentPage = 0; $('.field.phone input').mask('?+99(999)9999999999'); window.onunload = function(){}; $('.prevButton').click(function() { $('.page[data-pageIndex="' + currentPage + '"]').slideToggle('slow'); currentPage--; $('.page[data-pageIndex="' + currentPage + '"]').slideToggle('slow'); return false; }); $('.nextButton:not(.submitButton)').click(function() { if (validateForm()) { $('.page[data-pageIndex="' + currentPage + '"]').slideToggle('slow'); currentPage++; $('.page[data-pageIndex="' + currentPage + '"]').slideToggle('slow'); } return false; }); $('div.submitButton > input, input.submitButton, div.submitButton > button, button.submitButton').click(function(ev) {
                    if (validateForm()) {
                        setTime('mwhidtm1');
			            $('#companionCount').attr('value', $('#companions > div:visible').length);
			            var waitTimeout = window.setTimeout(function() {
				            $('#waitDiv').show();
				            window.clearTimeout(waitTimeout);
			            }, 100);
                        return true;
                    }
                    ev.stopPropagation();
                    return false;
		        });
                $('#btnReject').click(function() {
			        var waitTimeout = window.setTimeout(function() {
				        $('#waitDivReject').show();
				        window.clearTimeout(waitTimeout);
			        }, 100);
		        });
	        };
            function loadScript(url, filetype, callback){
			    var script;
			    if (filetype == 'js'){
				    script = document.createElement('script')
				    script.type = 'text/javascript';
				    script.src = url;
			    }
			    else {
				    script = document.createElement('link');
				    script.rel = 'stylesheet';
				    script.type = 'text/css';
				    script.href = url;
			    }
                if (typeof callback === 'function') {
			        if (script.readyState){  //IE
				        script.onreadystatechange = function(){
					        if (script.readyState == 'loaded' || script.readyState == 'complete'){
						        script.onreadystatechange = null;
						        callback();
					        }
				        };
			        } else {  //Others
				        script.onload = callback;
			        }
                }
			    document.getElementsByTagName('head')[0].appendChild(script);
		    }
            loadScript('https://sys.mailworx.info/App_Themes/jQueryUI/blitzer/jquery-ui-1.8.16.custom.css', 'css');
            (function loadScripts(toLoad) {
                if (!toLoad || toLoad.Length === 0)
                    return;
                function createCallback(script, loadedDelegate){
                    return function() {
                        if (!script[0]) {
                            loadedDelegate();
                        }
                        else {
                            loadScript(script[1], 'js', loadedDelegate);
                        }
                    }
                }
                var delegates = [];
                delegates.push(function() { $(init) });
                for (var i = toLoad.length - 1; i >= 0; i--) {
                    var loadedDelegate = delegates[delegates.length - 1];
                    delegates.push(createCallback(toLoad[i], loadedDelegate));
                }
                delegates[delegates.length-1]();
            })([
                [typeof jQuery === 'undefined', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js']
                ,[typeof jQuery === 'undefined' || typeof jQuery.fn.datepicker === 'undefined', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js']
                ,[typeof jQuery === 'undefined' || typeof jQuery.validator === 'undefined', 'https://sys.mailworx.info/Scripts/jquery.validate.min.js']
                ,[typeof jQuery === 'undefined' || typeof jQuery.validator === 'undefined' || typeof jQuery.validator.unobtrusive === 'undefined', 'https://sys.mailworx.info/Scripts/jquery.validate.unobtrusive.min.js']
                ,[typeof jQuery === 'undefined' || typeof jQuery.fn.mask === 'undefined', 'https://sys.mailworx.info/Scripts/jquery/jquery.maskedinput.min.js']
                ,[typeof window.Placeholders === 'undefined', 'https://sys.mailworx.info/Scripts/jquery/placeholders.min.js']
                ,[true, 'https://sys.mailworx.info/Scripts/jquery/mx-datepicker.js']
                ,[true, 'https://sys.mailworx.info/Scripts/jquery/jquery.validate.unobtrusive.extensions.js']
            ]);
        }
{
        var defaultRangeValidator = jQuery.validator.methods.range;
        jQuery.validator.methods.range = function (value, element, param) {
            if (element.type === 'checkbox') {
                // if it's a checkbox return true if it is checked
                return element.checked;
            } else {
                // otherwise run the default validation function
                return defaultRangeValidator.call(this, value, element, param);
            }
        }
    }

Melden Sie sich jetzt zum Newsletter an und erhalten Sie regelmäßig unseren Newsletter bequem in Ihr E-Mail-Postfach!

Anrede *

 

 

Mit dem Absenden dieses Formulars stimme ich der Verarbeitung meiner eingegebenen personenbezogenen Daten gemäß den Datenschutzbestimmungen zu.

Unser Tipp: Melden Sie sich als Lehrer/in kostenlos im neuen LERNEN WILL MEHR! Online-Lehrerzimmer an und erhalten Sie Zugang zu einem exklusiven Online-Serviceberreich mit vielen Downloads und kostenfreien Prüfexemplaren!