1$(window).on('load', function() { 2/*var target = $('#start'); 3var targetHeight = target.outerHeight();*/ 4 5$(document).scroll(function(e){ 6 if(window.scrollY > 220){ 7 $('#logo_tafeu').css('margin-top', 18).fadeOut('fast'); 8 $('#top-panel').css('margin-top', -18).fadeIn('400'); 9 $('#logo_tafeu_small').css('margin-top', 0).fadeIn('400'); 10 } else { 11 $('#logo_tafeu_small').css('margin-top', -18).fadeOut('fast'); 12 $('#top-panel').css('margin-top', 0).fadeIn('400'); 13 $('#logo_tafeu').css('margin-top', 0).fadeIn('400'); 14 } 15}); 16}); 17 18function scrollResultIntoView(elementname) { 19 $('html, body').animate({ scrollTop: ($(elementname).offset().top) - ($(elementname).height() * 1.5) }, 'slow'); 20} 21 22function FormProcess1 (that, s_event, s_form, s_result, formData) { 23 s_event.preventDefault(); 24 $(s_form).stop().fadeTo('slow', 0.25); 25 $(s_form + ' :input, ' + s_form + ' :button').attr('disabled', true); 26 27 var $form = $( that ), 28 url = $form.attr( 'action' ); 29 var crequest = $.post( url, formData ); 30 31 crequest.done(function( data ) { 32 try { var json = JSON.parse(data); } catch (e) { json = data; } 33 if ( json.success === true || json.status == 'success' ) { 34 $(s_form).stop().fadeTo('slow', 0); 35 $(s_result).empty().append('<div class="popbox popbox-success">' + json.message + '</div>'); 36 } else { 37 $(s_form).stop().fadeIn() 38 $(s_form + ' :input, ' + s_form + ' :button').attr('disabled', false); 39 $(s_result).empty().append('<div class="popbox popbox-warning">' + json.errors.join('<br>') + '</div>'); 40 } 41 scrollResultIntoView(s_result); 42 }); 43 44 crequest.fail(function( data ) { 45 $(s_form).stop().fadeIn() 46 $(s_form + ' :input, ' + s_form + ':button').attr('disabled', false); 47 $(s_result).empty().append('<div class="popbox popbox-warning">Leider ist ein Fehler aufgetreten und Ihre Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es später erneut.</div>'); 48 scrollResultIntoView(s_result); 49 }); 50 51} 52 53$(document).ready(function() { 54 55 $("#kontaktformular").submit(function(event) { 56 var formData = { 57 'cfname' : $('#cfname').val(), 58 'cfemail' : $('#cfemail').val(), 59 'cfmsg' : $('#cfmsg').val(), 60 'cjs' : true 61 }; 62 FormProcess1(this, event, '#kontakt-form', '#kontakt-result', formData); 63 }); 64 65 $("#newssubscribe").submit(function(event) { 66 var formData = { 67 'EMAIL' : $('#nsemail').val(), 68 'ANREDE' : $('#anrede').val(), 69 'FNAME' : $('#fname').val(), 70 'LNAME' : $('#lname').val(), 71 'cjs' : true 72 }; 73 FormProcess1(this, event, '#newslettersub', '#newssub-result', formData); 74 }); 75 76 $("#newsunscribe").submit(function(event) { 77 var formData = { 78 'EMAIL' : $('#nuemail').val(), 79 'unsub' : 1, 80 'cjs' : true 81 }; 82 FormProcess1(this, event, '#newsletterun', '#newsun-result', formData); 83 }); 84 85})
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.