1jQuery(document).ready(function($) { 2 $('body').on('click', '.submitpostupform_sms', function(e){ 3 e.preventDefault(); 4 $(this).closest('form').submit(); 5 }); 6 $('body').on('submit', '.eaglepostupform_sms', function(){ 7 $(this).prepend('<input type="hidden" name="sms_submitted" value="1" />'); 8 var mobile_number = $(this).find('input[name="mobile_number"]').val(); 9 var rx = /[0-9]/gi; 10 var m = mobile_number.match(rx); 11 if(m && m.length == 10) 12 { 13 return true; 14 } 15 else 16 { 17 alert('Please enter your 10-digit mobile number. Your entry has '+m.length+' digits.'); 18 return false; 19 } 20 }); 21 /* 22 $('.eaglepostupform_sms input[name="mobile_number"]').keyup(function(){ 23 $(this).val($(this).val().replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,'$1-$2-$3')) 24 }); 25 */ 26 /* 27 $('.eaglepostupform_sms input[name="mobile_number"]').keyup(function(e){ 28 var key = e.charCode || e.keyCode || 0; 29 var $text = $(this); 30 if(key !== 8 && key !== 9) 31 { 32 if($text.val().length === 3) 33 { 34 $text.val($text.val() + '-'); 35 } 36 if($text.val().length === 7) 37 { 38 $text.val($text.val() + '-'); 39 } 40 } 41 return (key == 8 || key == 9 || key == 46 || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); 42 }); 43 */ 44});
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.