1function UnisiterIsValidEmail(email, strict) 2{ 3 if ( !strict ) email = email.replace(/^\s+|\s+$/g, ''); 4 return (/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i).test(email); 5} 6 7function UnisiterSetError(obj, text) 8{ 9 obj.parents("div").addClass('inputerror'); 10 obj.parents(".item").children(".hint").css('display','none'); 11 obj.parents(".item").children(".hinterror").css('display','table'); 12 obj.parents(".item").children(".hinterror").children("div").text(text); 13} 14 15jQuery(function ($) { 16 $('form.forms input').bind('change keyup input click', function() { 17 var obj = $(this); 18 obj.parents("div").removeClass('inputerror'); 19 obj.parents(".item").children(".hint").css('display','table'); 20 obj.parents(".item").children(".hinterror").css('display','none'); 21 }); 22});
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.