1 2$(document).ready(function () { 3 $("#Password").on("igtexteditorrendered", function (evt, ui) { 4 setShowHidePasswordButton(); 5 }); 6}); 7 8function setShowHidePasswordButton() { 9 var passwordField = $("#Password"); 10 11 //append anchor to password input element 12 passwordField.parent().append("<button type='button' class='show-hide-password' data-qa='show hide pswd button'><i class='fa fa-eye-slash' aria-hidden='true'></i></button>"); 13 14 //toggle text mode on click 15 $(".show-hide-password").on('click', function () { 16 var $passwordEditor = $("#Password"), 17 $passwordIcon = $('.show-hide-password i'), 18 $passwordTextType = $passwordEditor.attr("type"); 19 20 if ($passwordTextType === "text") { 21 $passwordEditor.attr("type", "password"); 22 $passwordIcon.addClass("fa-eye-slash"); 23 $passwordIcon.removeClass("fa-eye"); 24 } else if ($passwordTextType === "password") { 25 $passwordEditor.attr("type", "text"); 26 $passwordIcon.removeClass("fa-eye-slash"); 27 $passwordIcon.addClass("fa-eye"); 28 } 29 }); 30}
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.