1function ForgotPassNew() { 2 var p = { userId: $("[name=account]").val() }; 3 var request = $.ajax({ 4 url: "/CPWEBAPPS/Login/wsUserAuth.asmx/CheckUserId", 5 type: "POST", 6 contentType: "application/json; charset=utf-8", 7 data: JSON.stringify(p), 8 dataType: "json", 9 async: false 10 }); 11 if (typeof (request.responseText) != 'object') { 12 request = eval('(' + request.responseText + ')'); 13 } 14 if (typeof (request.d) == 'undefined') { 15 alert(request.responseText); 16 return false; 17 } 18 19 if (request.d.Email == '' || request.d.Email == null) { 20 alert(request.d.Msg.replace(/\\\\/g, '\\')); 21 //alert('Hi\nAfter LF'); 22 } 23 else { 24 if (confirm(request.d.Msg)) { 25 var q = { userId: $("[name=account]").val(), Email: request.d.Email, coName: "Claimpower" }; 26 var request2 = $.ajax({ 27 url: "/CPWEBAPPS/Login/wsUserAuth.asmx/ResetUserPwd", 28 type: "POST", 29 contentType: "application/json; charset=utf-8", 30 data: JSON.stringify(q), 31 dataType: "json", 32 async: false 33 }); 34 if (typeof (request2.responseText) != 'object') { 35 request2 = eval('(' + request2.responseText + ')'); 36 } 37 if (typeof (request2.d) == 'undefined') { 38 alert(request2.Message); 39 return false; 40 } 41 alert(request2.d); 42 } 43 } 44} 45 46$(document).ready(function () { 47 //alert(navigator.userAgent); 48 /*if (!(chkIEWin() || chkChrWin() || chkSafMac() || chkSafWin())) { 49 alert('Only the following browsers are supported:\n\t\tInternet Explorer 11 or greater\n\t\tGoogle Chrome\n\t\tSafari' + 50 '\n\n\n\nIf you are not using one of these supported browsers, the EMR may not work as expected, and our Tech Support will not be able to help with any issues you may experience.'); 51 }*/ 52 //console.log('User Agent is : ' + navigator.userAgent); 53}); 54 55function chkIEWin() { 56 //var r = /Trident/i.test(navigator.userAgent) && /Windows/i.test(navigator.userAgent); 57 //alert(!!navigator.userAgent.match(/Trident.*rv\:11\./)); 58 var r = !!navigator.userAgent.match(/Trident.*rv\:11\./); 59 return r; 60} 61 62function chkChrWin() { 63 //alert(/Chrome/i.test(navigator.userAgent) && /Windows/i.test(navigator.userAgent)); 64 var r = /Chrome/i.test(navigator.userAgent) && /Windows/i.test(navigator.userAgent); 65 return r; 66} 67 68function chkSafMac() { 69 var r = /Chrome/i.test(navigator.userAgent); 70 if (r) return false; 71 r = /Mac OS/i.test(navigator.userAgent) && /Safari/i.test(navigator.userAgent); 72 return r; 73} 74 75function chkSafWin() { 76 var r = /Chrome/i.test(navigator.userAgent); 77 if (r) return false; 78 r = /Windows/i.test(navigator.userAgent) && /Safari/i.test(navigator.userAgent); 79 return r; 80}
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.