PageSourceSearch

https://sis.glemt.org.br/Base/Tema/Vendor/Pixel/1.3.0/javascripts/login-postscripts.js

js glemt.org.br collected 2026-09-27 08:15:54 UTC 1,382 bytes, 57 lines download raw bytes

1// Resize BG
2init.push(function () {
3    var $ph  = $('#page-signin-bg-4'),
4        $img = $ph.find('> img');
5
6    $(window).on('resize', function () {
7        $img.attr('style', '');
8        if ($img.height() < $ph.height()) {
9            $img.css({
10                height: '100%',
11                width: 'auto'
12            });
13        }
14    });
15});
16
17// Show/Hide password reset form on click
18init.push(function () {
19    $('#forgot-password-link').click(function () {
20        $('#password-reset-form').fadeIn(400);
21        return false;
22    });
23    $('#password-reset-form .close').click(function () {
24        $('#password-reset-form').fadeOut(400);
25        return false;
26    });
27});
28
29// Setup Sign In form validation
30init.push(function () {
31    $("#signin-form_id").validate({ focusInvalid: true, errorPlacement: function () {} });
32
33    // Validate username
34    $("#username_id").rules("add", {
35        required: true,
36        minlength: 3
37    });
38
39    // Validate password
40    $("#password_id").rules("add", {
41        required: true,
42        minlength: 6
43    });
44});
45
46// Setup Password Reset form validation
47init.push(function () {
48    $("#password-reset-form_id").validate({ focusInvalid: true, errorPlacement: function () {} });
49
50    // Validate email
51    $("#p_email_id").rules("add", {
52        required: true,
53        email: true
54    });
55});
56
57//window.PixelAdmin.start(init);

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.