$(document).ready(function(){$('.eintragen-url-input.focus').focus();$('.eintragen-weiter-url').click(function(event){url=$('.eintragen-url-input').val();if(url&&!url.match(/^http([s]?):\/\/.*/)){$(this).parent().find('.hinweis').html('Bitte geben Sie eine URL beginnend mit http:// oder https:// ein.');event.preventDefault()}});$('input[name=rolle]').click(function(){if(!$(this).closest('.panel').find('.panel-heading').hasClass('panel-success')){$(this).closest('.panel').find('.panel-heading').addClass('panel-success');$(this).closest('.panel').removeClass('panel-active') $('#collapse-kontaktdaten').closest('.panel').addClass('panel-active') $('#collapse-kontaktdaten').collapse('show');$('.eintragen-weiter-rolle').parent().find('.hinweis').remove();$('.eintragen-weiter-rolle').remove();scroll_to_element('.panel:has(#collapse-kontaktdaten)');$('input#vorname').focus()} ga4_event('click','firma_eintragen','rolle_gewaehlt')});$('.eintragen-weiter-rolle').click(function(event){$(this).parent().find('.hinweis').html('Bitte treffen Sie eine Auswahl.');event.preventDefault()});$('#collapse-kontaktdaten input[type=email]').on('input',function(){if($(this).val().indexOf('@')>-1&&$(this).val().indexOf('.')>-1&&$('#collapse-daten').hasClass('in')===!1){$(this).closest('.panel').find('.panel-heading').addClass('panel-success');$(this).closest('.panel').removeClass('panel-active') $('#collapse-daten').closest('.panel').addClass('panel-active') $('#collapse-daten').collapse('show');$('.eintragen-weiter-kontaktdaten').parent().find('.hinweis').remove();$('.eintragen-weiter-kontaktdaten').remove();scroll_to_element('.panel:has(#collapse-daten)');ga4_event('click','firma_eintragen','kontaktdaten_eingegeben')}});$('.eintragen-weiter-kontaktdaten').click(function(event){$(this).parent().find('.hinweis').html('Bitte geben Sie Ihre E-Mail-Adresse an');event.preventDefault()});$('#eintragsformular input').on('keyup keypress',function(e){var keyCode=e.keyCode||e.which;if(keyCode===13){e.preventDefault();return !1}})});$(window).load(function(){})