1 2 3$(document).ready(function () { 4 5 var regex_emailaddress = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 6 7 8 9 10 11 $("#BTN_Login_JS").click(function () { 12 valideatecontactus(); 13 return false; 14 }); 15 16 17 if (document.getElementById('TXT_UserName')) { 18 $("#TXT_UserName").keydown(function (e) { 19 var code = (e.keyCode ? e.keyCode : e.which); 20 if (code == 13) { 21 valideatecontactus(); 22 return false; 23 } 24 }); 25 } 26 27 if (document.getElementById('TXT_Pwd')) { 28 $("#TXT_Pwd").keydown(function (e) { 29 var code = (e.keyCode ? e.keyCode : e.which); 30 if (code == 13) { 31 valideatecontactus(); 32 return false; 33 } 34 }); 35 } 36 37 38 function valideatecontactus() { 39 var validatemessage = ''; 40 var blnflag = 0; 41 42 43 44 if ($("#TXT_UserName").val() == '') { 45 blnflag = 1; 46 validatemessage += 'User name Required.\n'; 47 } 48 49 50 if ($("#TXT_Pwd").val() == '') { 51 blnflag = 1; 52 validatemessage += 'Password Required.\n'; 53 } 54 55 if (blnflag == 0) { 56 if (document.getElementById('BTN_Login')) { 57 document.getElementById('BTN_Login').click(); 58 } 59 console.log('button was clicked'); 60 return false; 61 } 62 else { 63 alert(validatemessage); 64 return false; 65 } 66 67 68 69 } 70 71 72 73 74 75 76 77 78 79 80 81}); 82
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.