PageSourceSearch

https://coreofborneo.com/assets/js/root/uc_login.js?v=5

js coreofborneo.com collected 2026-09-28 12:15:21 UTC 2,496 bytes, 62 lines download raw bytes

1let isAllowLoginSubmit = false;
2let cImg = '#captcha-img';
3let $loginModal = $('#loginModal');
4let isReloading = false;
5$(function () {
6    window.addEventListener('pageshow', function (event) {
7        if (isReloading) return;
8        if (window.name === 'reloading') {
9            window.name = '';
10            return;
11        }
12        const isBackForward = performance.navigation.type === 2;
13        const isPersisted = event.persisted;
14        if ((isPersisted || isBackForward) && isDesktopView == "False" && isHomePage == "True") {
15            isReloading = true;
16            window.name = 'reloading';
17            window.location.reload();
18        }
19    });
20    window.addEventListener('load', function () {
21        setTimeout(function () {
22            if (window.name === 'reloading') {
23                window.name = '';
24            }
25            isReloading = false;
26        }, 1000);
27    });
28    $loginModal.find(cImg).hide();
29    $loginModal.on('shown.bs.modal', function () {
30        $loginModal.find(cImg).attr('src', cPath).show();
31    });
32    if (modalError !== '' || paramAction == "login") {
33        $loginModal.modal('show');
34    }
35    $(".show-password-btn").on('mousedown touchstart', function () {
36        const $passwordField = $(this).siblings(".password-form-control");
37        $passwordField.attr("type", "text");
38        $(this).find("span").removeClass("fa-eye").addClass("fa-eye-slash");
39    }).on('mouseup mouseleave touchend', function () {
40        const $passwordField = $(this).siblings(".password-form-control");
41        $passwordField.attr("type", "password");
42        $(this).find("span").removeClass("fa-eye-slash").addClass("fa-eye");
43    });
44});
45function CheckLoginRepeat(element) {
46    let $parentElement = $(element).closest('.form-content');
47    let username = $parentElement.find('.user-form-control').val();
48    let password = $parentElement.find('.password-form-control').val();
49    if (username.indexOf(" ") !== -1) {
50        username = removeSpace(username);
51        $parentElement.find('.user-form-control').val(username);
52    }
53    if (!isAlphaNumeric(username)) {
54        $parentElement.find('.error-msg').html(error_InvalidUsername);
55        return false;
56    } else if (username === '' || password === '') {
57        $parentElement.find('.error-msg').html(error_LoginFormEmpty);
58        return false;
59    }
60    if (isAllowLoginSubmit) return false;
61    isAllowLoginSubmit = true;
62}

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.