1/** Inicializace po naÄtenà stránky */ 2document.addEventListener('DOMContentLoaded', () => { 3 if (screen.width < 640) { 4 const element = document.getElementById('bkViewport'); 5 if (element) { 6 element.setAttribute('content', 'width=500'); 7 } 8 } 9 10 ls_capslock.init({ 11 element: '#password', 12 message: 'Máte zapnutý Caps Lock', 13 position: 'bottom' 14 }); 15}); 16 17/** 18 * Volá se pÅi odeslánà formu pÅihlášenÃ. ZamÄnà text v pÅihlaÅ¡ovacÃm tlaÄÃtku za loading a znepÅÃstupnà ho, 19 * dohledá tlaÄÃtka pro LiveId a MS a pÅÃpadnÄ je nastavà na disabled. 20 * */ 21const makeDisable = () => { 22 const loginButton = document.getElementById('loginButton'); 23 const loginText = loginButton?.querySelector('.btn-login-text'); 24 const loginLoader = loginButton?.querySelector('.btn-login-loader'); 25 26 if (loginText) loginText.style.display = 'none'; 27 if (loginLoader) loginLoader.style.display = 'block'; 28 if (loginButton) loginButton.disabled = true; 29 30 const liveIdBtn = document.getElementById('liveidButton'); 31 if (liveIdBtn) { 32 liveIdBtn.disabled = true; 33 } 34 35 const msLoginBtn = document.getElementById('loginMSButton'); 36 if (msLoginBtn) { 37 msLoginBtn.disabled = true; 38 } 39}; 40 41/** 42 * Akce po stisknutà klávesy enter 43 * @param {KeyboardEvent} event informace o události 44 */ 45const onEnterSubmit = (event) => { 46 if (event.key === 'Enter') { 47 document.getElementById('loginButton')?.click(); 48 } 49};
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.