1document.addEventListener('DOMContentLoaded', function() { 2 document.addEventListener('click', function(e) { 3 var btn = e.target.closest('[data-toggle-password]'); 4 if (!btn) return; 5 6 var targetId = btn.getAttribute('data-toggle-password'); 7 var input = targetId ? document.getElementById(targetId) : null; 8 if (!input) return; 9 10 var willShow = input.type === 'password'; 11 input.type = willShow ? 'text' : 'password'; 12 btn.setAttribute('aria-pressed', willShow ? 'true' : 'false'); 13 btn.setAttribute('aria-label', willShow ? 'Hide password' : 'Show password'); 14 }); 15});
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.