PageSourceSearch

https://www.trade-ideas.com/AccountManagement/js/login.js

js trade-ideas.com collected 2026-09-24 18:02:11 UTC 1,768 bytes, 46 lines download raw bytes

1$(".homepage").addClass('login-body');
2$('.dropdown').removeClass('dropdown');
3
4jQuery(document).ready(function () {
5
6    $("input:text:visible:first").focus();
7
8    $('#login-form').on("submit", function (e) {
9        e.preventDefault();
10        var field = $('.user-login-btn');
11        if (window.validate_custom($('#login-form'))) {
12            window.buttonDisabled(field, true);
13            $('.user-login-btn .loading').html('<i class="fas fa-spinner fa-spin"></i>');
14            var formdata = new FormData($('#login-form')[0]);
15            $.ajax({
16                url: "controller/Login.php",
17                method: "POST",
18                data: formdata,
19                cache: false,
20                contentType: false,
21                processData: false,
22            })
23            .done(function (response) {
24                if (response !== undefined) {
25                    var data = JSON.parse(response);
26                    if (data.success === true) {
27                        window.location.assign($('.login-page').attr('data-back-to-ini-url'));
28                    }
29                    if (data.success === false) {
30                        if (data.msg !== undefined && data.msg !== '') {
31                            var password_form_group = $('#login-form #password').parent();
32                            window.showMessage(password_form_group , data.msg);
33                        }
34                        $('.user-login-btn .loading').empty();
35                        window.buttonDisabled(field, false);
36                    }
37                }
38            })
39            .fail(function () {
40                $('.user-login-btn .loading').empty();
41                window.buttonDisabled(field, false);
42            });
43        }
44    });
45
46  });

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.