PageSourceSearch

https://cloud-auth.parent.onetick.com/resources/hp5qs/login/onetick/js/passwordVisibility.js

js onetick.com collected 2026-09-24 09:44:12 UTC 698 bytes, 15 lines download raw bytes

1const toggle = (button) =>  {
2    const passwordElement = document.getElementById(button.getAttribute('aria-controls'));
3    if (passwordElement.type === "password") {
4        passwordElement.type = "text";
5        button.children.item(0).className = button.dataset.iconHide;
6        button.setAttribute("aria-label", button.dataset.labelHide);
7    } else if(passwordElement.type === "text") {
8        passwordElement.type = "password";
9        button.children.item(0).className = button.dataset.iconShow;
10        button.setAttribute("aria-label", button.dataset.labelShow);
11    }
12}
13
14document.querySelectorAll('[data-password-toggle]')
15    .forEach(button => button.onclick = () => toggle(button));

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.