Kontakt

Hier finden Sie unsere Kontaktmöglichkeiten zusammengefasst

Anschrift  

Getränke Roennfeldt

Friedrichstädter Str 36-40

24768 Rendsburg

Tel.:              04331 / 46040

Fax:              04331 / 460416

                     Mail:            Info@getraenke-roennfeldt.de


jQuery("#preloader-pwvvpj").fadeOut(500, function() { jQuery("#ecf-form-pwvvpj").fadeIn(300); });

Ladda.bind('.ladda-button');

$(function() {

/* Validation */ $("#form-pwvvpj").validate({ /* Rules for form validation */ rules: { name0:{required: true},email1:{required: true,email: true},text2:{required: true},message3:{required: true,minlength: 10},

}, /* Messages for form validation */ messages: { name0:{required: "Diese Felder werden benötigt"},email1:{required: "Diese Felder werden benötigt"},text2:{required: "Diese Felder werden benötigt"},message3:{required: "Diese Felder werden benötigt"} }, /* Do not change code below */ errorPlacement: function(error, element) { error.insertAfter(element.parent()); },

submitHandler: function(form) { ecf_onsubmit(jQuery('.form-pwvvpj'));

},

invalidHandler: function(form) { Ladda.stopAll(); },

onkeyup: false, onfocusout: false, onclick: false

}); });

/* Form Submit ( Ajax ) */ function ecf_onsubmit(form) {

if (form.attr('action') == '#') {

data = {}; eldat = []; data['action'] = 'ecf_deliver_mail'; data['formid'] = '123'; data['security'] = '5be435b0fe';

jQuery('input, textarea', form).each(function(key) {

items = {};

if (typeof $(this).data('type') === 'undefined') { return true; }

items['type'] = $(this).data('type'); items['label'] = $(this).data('label'); items['value'] = this.value; items['name'] = this.name;

eldat.push(items);

});

data['allelmnt'] = JSON.stringify(eldat);

submitForm();

return false;

}

}

/* Start submitForm */ function submitForm() {

jQuery.ajax({ url: 'https://getraenke-roennfeldt.de/wp-admin/admin-ajax.php', type: 'POST', dataType: 'json', data: data, success: function(data) {

if (data.Ok == true) {

$("#form-pwvvpj").get(0).reset();

if (data.msg == 'redirect') { window.location = "http://"; } else { notifyme('Ihr Nachricht wurde erfolgreich versendet', 'n', 'success', 'left middle'); }

} else { $("#form-pwvvpj").get(0).reset(); notifyme(data.msg, 'n', 'error', 'left middle'); }

Ladda.stopAll();

} });

}

/* Notify */ function notifyme(msg, b, typ, pos) { if (b == 'n') { b = 'cf-submittedpwvvpj'; } else { b = 'atcpwvvpj'; }

$("#" + b).gnotify(msg, { style: "nbootstrap", elementPosition: pos, className: typ });

msg = null; typ = null;

}

});