1window.onload = function() { 2 // generate our HTML canvas for authentication 3 if (window.requestIdleCallback) { 4 requestIdleCallback(generateFingerprint); 5 } else { 6 setTimeout(generateFingerprint, 500); 7 } 8 9 var theForm = document.forms["login-form"]; 10 11 // if portal mobility redirect is enabled.... 12 // and it found the visiting device to be a small screen... 13 // NOTE: isMobile will only be defined if the setting is 14 // enabled... 15 if ( typeof isMobile !== 'undefined' 16 && isMobile === true) { 17 // function is defined in js/redirect_portal.js 18 loginMobilitySteps(); 19 } else { 20 // automatically focus the email field 21 theForm["login-email"].focus(); 22 } 23 // if local storage item is set, then remove it 24 if (localStorage.loaded) { 25 localStorage.removeItem('loaded'); 26 } 27} 28 29// validate input parameters 30function checkForm() 31{ 32 var theForm = document.forms["login-form"]; 33 if (theForm["email"].value.indexOf('@') == -1) { 34 alert("Please enter your full email address, for example, [email protected]"); 35 theForm["email"].focus(); 36 return false; 37 } 38 39 if (theForm["password"].value.length==0) { 40 alert("Please enter your password, being careful to use the proper case."); 41 theForm["password"].focus(); 42 return false; 43 } 44 45 return true; 46} 47 48// toggle visible password input 49function showPass() { 50 let thePass = document.getElementById('login-password'); 51 if(thePass !== null) { 52 thePass.type === "password" ? 53 thePass.type = "text" : 54 thePass.type = "password"; 55 } 56}
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.