PageSourceSearch

https://bakalari.sosboh.cz/bakalari/next/js/loginFunctions.js?v=20260923

js sosboh.cz collected 2026-10-06 18:36:59 UTC 1,584 bytes, 49 lines download raw bytes

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.