1import Modals from 'module.modal' 2 3class PasswordHeader extends HTMLElement { 4 constructor() { 5 super() 6 7 if (!document.querySelector('#LoginModal')) return 8 9 const passwordModal = new Modals('LoginModal', 'login-modal', { 10 focusIdOnOpen: 'password', 11 solid: true 12 }) 13 14 // Open modal if errors exist 15 if (document.querySelectorAll('.errors').length) passwordModal.open() 16 } 17} 18 19customElements.define('password-header', PasswordHeader)
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.