1$().ready(function () { 2 'use strict'; 3 4 // Registration =============================================================== 5 (function () { 6 var $form = $('#frm-registration-form'); 7 var $nick = $form.find('#frm-registration-form-nick'); 8 var $nickSnippet = $('#snippet-registration-nick'); 9 var $email = $form.find('#frm-registration-form-email'); 10 var $emailSnippet = $('#snippet-registration-email'); 11 12 $nick.on('blur', function () { 13 if ($(this).val().length > 0) { 14 $.nette.ajax({ 15 url: $(this).data('validation'), 16 data: {'registration-nick': $(this).val()}, 17 success: function () { 18 } 19 }); 20 } 21 }); 22 $nick.on('keyup', function () { 23 $(this).val().length <= 0 ? $nickSnippet.slideUp() : $nickSnippet.slideDown(); 24 }); 25 $email.on('blur', function () { 26 if ($(this).val().length > 0) { 27 $.nette.ajax({ 28 url: $(this).data('validation'), 29 data: {'registration-email': $(this).val()}, 30 success: function () { 31 } 32 }); 33 } 34 }); 35 $email.on('change', function () { 36 $(this).val().length <= 0 ? $emailSnippet.slideUp() : $emailSnippet.slideDown(); 37 }); 38 })(); 39});
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.