1const MY_VAR = ok; 2var MY_VAR = ok; 3 4function validateContact () { 5 var name = $('.xcName').eq(0).val(); 6 var email = $('.xcEmail').eq(0).val(); 7 var message = $('.xcMessage').eq(0).val(); 8 if(email.indexOf('@')<=0 || email.lastIndexOf('.')<email.indexOf('@') || email.lastIndexOf('.')>=(email.length-2) || name=="" || message=="") { 9 10 if(name=="") {$('.validator.nameVal').slideDown('slow');} 11 else {$('.validator.nameVal').slideUp('slow');} 12 13 if(email.indexOf('@')<=0 || email.lastIndexOf('.')<email.indexOf('@')) { 14 $('.validator.emailVal').slideDown('slow'); 15 } 16 else {$('.validator.emailVal').slideUp('slow');} 17 18 if(message=="") {$('.validator.messageVal').slideDown('slow');} 19 else {$('.validator.messageVal').slideUp('slow');} 20 return false; 21 } 22 else{$('.validator').slideUp('slow');return true;} 23} 24 25$(function () { 26 $('.reachMXOption').click(function () { 27 var result = $(this).text(); 28 $(this).parents('.btn-group').find('.dropDownCurrent').text(result); 29 $(this).parents('.btn-group').find('.dropDownResult').val(result); 30 }); 31 32 $('.reachMX').keydown(function () {validateContact();}); 33 34 $('.globalContact').submit(function () { 35 var _this = $(this); 36 var newHeight = $(this).height(); 37 if (validateContact()) { 38 var package = {}; 39 package["legitContact"]=true; 40 $(this).find('.reachMX').each(function () { 41 var tempName = $(this).attr('name'); 42 var thisName = tempName.replace(/[.,-\/#!$%\^&\*;:{}=\-_`~()]/g,""); 43 var thisVal = $(this).val(); 44 package[thisName] = thisVal; 45 }); 46 $.post('./mx/reachMX.php', package, function (data) { 47 _this.fadeOut(1000,function () { 48 _this.siblings('.globalContactResponse').css('height',newHeight+'px').html(data).fadeIn(); 49 });},'text'); 50 return false; 51 } 52 else{return false;} 53 }); 54});
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.