#portal-footer-wrapper {
display: none;
}
?????????? ?? ?????? ??????
?? ??????? ?????????? ?? ???????
?????? ??????? ???? ??????? ????, ? ?? ??????????? ?????? ?????????.
title
????? ?? ??? ??????
?? ??????? ???????? ??? ?????? ?? ???????? ???????, ???? ?????, ????????? ????. ??? ????? ???? ??????????? ???????????.
????? ????:
????? *VolkswagenVW ?????????? ?????????????? ?????, ??????? ???? ?????? ????:
??????: *
???????? ????: *
?????? ??: *
????? ??????: *
??? ??????? ?? ??????? ?????????
?????? ????? ??????
??????
??????
????????? ??????:
?? ???? ??? ??? ?????? ?????????? ?? ???????
?? -:????????? ??????
????? ??????
????: *
???: *
???? ?????, ??????? ???? ????????? ????:
?????????: *??????????????
???????:
??'?: *
????????: *
?????:
??????:
???????? ??????:
?????:
??????:?????????????????????????????????????????????????????????????????????(??)
???????:
????????? (?/??):
????????:
E-Mail:
????????? ????? ????? ????
???????? ???????? ?? ????? ??????????? ????, ????? ???????????? ??????????? ?????? ??????. ???? ???????????????? ???????? ??? ??????????? ??'???? ?? ?? ??????????? ?????? ??????.
??????????
var marken = new Object();
var modelle = new Object();
modelle['vw'] = new Array('Polo Sedan', 'Polo', 'Golf', 'Golf SportWagen', 'Beetle', 'Touran', 'Passat', 'Passat Variant', 'Arteon', 'Tiguan', 'Tiguan Allspace', 'Touareg', 'Caddy', 'Transporter', 'Caravelle', 'Multivan', 'Crafter', 'Amarok');modelle['lnf'] = new Array('Polo Sedan', 'Polo', 'Golf', 'Golf SportWagen', 'Beetle', 'Touran', 'Passat', 'Passat Variant', 'Arteon', 'Tiguan', 'Tiguan Allspace', 'Touareg', 'Caddy', 'Transporter', 'Caravelle', 'Multivan', 'Crafter', 'Amarok');
$('select[name="markenauswahl[]"]').on('change', function(){
// TODO!
var selection = $(this).val();
var model1selection = $('select[name="model1[]"]');
var model2selection = $('select[name="model2[]"]');
$('select[name="model1[]"] option:gt(0)').remove();
$('select[name="model2[]"] option:gt(0)').remove();
$.each(modelle[selection], function(k, v){
model1selection.append(
$('').val(v).html(v)
);
model2selection.append(
$('').val(v).html(v)
);
});
});
var kritkat = 'select[name="kritik-kategorie[]"]'
$(kritkat).on('change', function(){
var idx = $(kritkat + ' option:selected').index();
if(idx > 3) {
$(kritkat).parent().next().hide();
}
else {
$(kritkat).parent().next().show();
}
});
if($('input[name="antwkz"]').val() !== 'B'){
$('input[name="telpriv[]"]').addClass('mandatory');
$('input[name="telpriv[]"]').attr('required', 'required');
$('input[name="erreichbar[]"]').addClass('mandatory');
$('input[name="erreichbar[]"]').attr('required', 'required');
}
$('#idTelefon').click(
function() {
if ($('#idTelefon').is(':checked')) {
$('input[name="telpriv[]"]').addClass('mandatory');
$('input[name="telpriv[]"]').attr('required', 'required');
$('input[name="erreichbar[]"]').addClass('mandatory');
$('input[name="erreichbar[]"]').attr('required', 'required');
$('input[name="email[]"]').removeClass('mandatory');
$('input[name="email[]"]').removeAttr('required');
}
});
$('#idEMail').click(
function() {
if ($('#idEMail').is(':checked')) {
$('input[name="telpriv[]"]').removeClass('mandatory');
$('input[name="telpriv[]"]').removeAttr('required');
$('input[name="erreichbar[]"]').removeClass('mandatory');
$('input[name="erreichbar[]"]').removeAttr('required');
$('input[name="email[]"]').addClass('mandatory');
$('input[name="email[]"]').attr('required', 'required');
}
});
$('.contact-form').submit(function (ev) {
var frm = $('.overlay-form:not(.hide) .contact-form');
ev.preventDefault();
if(window.hasOwnProperty('wt')){
$('input[name="trackingid"]').val(window.wt.eid);
}
$.ajax({
type: frm.attr('method'),
url: frm.attr('action'),
data: frm.serializeArray(),
success: function (data) {
var category = $('input[name="header"]').val();
trackSubmit(category);
frm.replaceWith(''+data.message+'');
$('.location-selection').addClass('hide');
$('.service-appointment-greeting').addClass('hide');
},
error: function (data) {
if(data.status === 400){
$('.form-error-text').remove();
$('.input-item').removeClass('form-error');
$.each(data.responseJSON, function(k,v){
var item = $('.input-item[name="'+k+'"]');
item.addClass('form-error');
//this would add an error text
item.parent().before(''+v+'');
});
}
else{
frm.replaceWith(''+data.responseJSON.message+'');
}
}
});
});
$('input').blur(function() {
if ($(this).val() !== '') {
$(this).addClass('focus')
} else {
$(this).removeClass('focus');
}
});
$('input').focus(function() {
$(this).addClass('focus')
});
if(navigator.userAgent.match(/iPhone|iPad|iPod/i) ) {
$('#content').prepend('');
$('.closebtn').on('click', function(e){
history.back();
e.preventDefault();
});
$('body').css({
'background': '#ECEEEF'
});
$('#main-container').css({
'margin-top': '30px'
});
}
var trackSubmit = function (formname) {
if (window.utag) {
var data = $.extend({}, window.utag.data);
data.page_type = 'overlay';
data.event_aktion = 'submit';
data.event_kategorie = 'Kontakt';
data.event_detail = formname;
return window.utag.view(data);
}
}
// This is just a dirty hack. The event will trigger a 'tab-sync' which will click the appropriate tab.
setTimeout(function(){
$(window).trigger('storage');
}
,200);