1$(document).ready(function () { 2 $(document).on("click", "input[type=button]", function () { 3 if (!$(this).hasClass("no-submit-loader")) { 4 $(this).addClass("submit-loader"); 5 $(this).prop('disabled', true); 6 } 7 }); 8 $(document).on("click", "input[type=submit]", function () { 9 if (!$(this).hasClass("no-submit-loader")) { 10 $(this).addClass("submit-loader"); 11 $(this).prop('disabled', true); 12 } 13 }); 14 $(document).on("click", "a.btn", function () { 15 if (!$(this).hasClass("no-submit-loader")) { 16 $(this).addClass("submit-loader"); 17 $(this).prop('disabled', true); 18 } 19 }); 20}); 21 22$.fn.resetSubmitLoader = function () { 23 this.removeClass("submit-loader") 24} 25 26$.fn.setCursorToTextEnd = function () { 27 this.focus(); 28 var orgval = this.val(); 29 this.val(''); 30 this.val(orgval); 31}; 32 33function checkPasswordStrength(pwd) { 34 var result = 0 35 36 var upper = 0, lower = 0, number = 0, other = 0, length = 0; 37 38 for (i = 0; i < pwd.length; i++) { 39 var c = pwd[i]; 40 41 if (c >= "A" && c <= "Z") { 42 upper = 1; 43 } else if (c >= "a" && c <= "z") { 44 lower = 1; 45 } else if (c >= 0 && c <= 9) { 46 number = 1; 47 } else { 48 other = 1 49 } 50 }; 51 52 if (pwd.length >= 7) { length = 2 }; 53 54 result = upper + lower + number + other + length; 55 56 if (pwd.includes(" ")) { result = 0 } 57 58 return result; 59};
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.