1jQuery(function ($) { 2 $('.student-login .login-area .pass-only-login').on('click', function (e) { 3 e.preventDefault(); 4 5 var type = $(this).attr('data-type'); 6 if (type) { 7 $(this).removeAttr('data-type'); 8 $(this).html("Login using the master password."); 9 10 $('<input>').attr({ 11 type: 'email', 12 name: 'email-student', 13 placeholder: 'Enter Email', 14 required: 'required', 15 }).css('display', 'none').prependTo('#mm-studentLoginForm').fadeIn(); 16 17 $('.student-login .login-area .login-instructions').html('Please login with your email and password to access the student-only area.'); 18 $('.forgot-pass-link').fadeIn(); 19 } else { 20 21 $(this).html("Login using your email and password."); 22 $('.student-login .login-area .login-instructions').html('Please login with the master password to access the student-only area.'); 23 24 $(this).attr('data-type', 'pass-only'); 25 $('.student-login .login-area form [type="email"]').fadeOut("normal", function () { 26 $(this).remove(); 27 }); 28 $('.forgot-pass-link').fadeOut(); 29 } 30 31 }); 32 33 $("#student-new-pass, #student-new-pass-confirm").keyup(checkPasswordMatch); 34 function checkPasswordMatch() { 35 var password = $("#student-new-pass").val(); 36 var confirmPassword = $("#student-new-pass-confirm").val(); 37 38 if(password.length<8){ 39 $("#reset-pass-notice").html("Your password must be at least 8 characters.").fadeIn(); 40 }else{ 41 $("#reset-pass-notice").hide(); 42 if (password !== confirmPassword) { 43 if(confirmPassword.length>0){ 44 $('#mm-studentResetPass input[type="submit"]').attr('disabled', true); 45 $("#reset-pass-notice").html("Passwords do not match!").show(); 46 } 47 } else { 48 $('#mm-studentResetPass input[type="submit"]').attr('disabled', false); 49 $("#reset-pass-notice").fadeOut(); 50 } 51 } 52 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.