PageSourceSearch

https://abrappe.com.br/js/custom.js

js abrappe.com.br collected 2026-10-05 02:08:03 UTC 3,756 bytes, 103 lines download raw bytes

1$(function () {
2    'use strict';
3    (() => {
4        if (!localStorage.pureJavaScriptCookies) {
5            document.querySelector('.box-cookies').classList.remove('hide');
6        }
7        const acceptCookies = () => {
8            document.querySelector('.box-cookies').classList.add('hide');
9            localStorage.setItem('pureJavaScriptCookies', 'accept');
10        };
11        const btnCookies = document.querySelector('.btn-cookies');
12        btnCookies.addEventListener('click', acceptCookies);
13    })();
14
15    jQuery(document).ready(function () {
16        jQuery('#login-form').on('formSubmitSuccess', function () {
17            setTimeout(function () {
18                location.reload(true);
19            }, 2000);
20        });
21        jQuery('#perfil-form').on('formSubmitSuccess', function () {
22            setTimeout(function () {
23                location.reload(true);
24            }, 2000);
25        });
26        jQuery('#re-register-form').on('formSubmitSuccess', function () {
27            setTimeout(function () {
28                location.reload(true);
29            }, 9000);
30        });
31        jQuery('#logout-form').on('formSubmitSuccess', function () {
32            setTimeout(function () {
33                window.location.href = 'index';
34            }, 2000);
35        });
36        jQuery('#search-form').on('formSubmitSuccess', function () {
37            location.reload(true);
38        });
39        jQuery('#search-form').on('formSubmitError', function () {
40            location.reload(true);
41        });
42        jQuery('#recover-form').on('formSubmitSuccess', function () {
43            setTimeout(function () {
44                window.location.href = 'index';
45            }, 9000);
46        });
47        jQuery('#recover-form').on('formSubmitError', function () {
48            location.reload(true);
49        });
50        jQuery('#assinante-form').on('formSubmitSuccess', function () {
51            location.reload(true);
52        });
53        jQuery('#assinatura-form').on('formSubmitSuccess', function () {
54            setTimeout(function () {
55                location.reload(true);
56            }, 7000);
57        });
58        jQuery('#c-assinatura-form').on('formSubmitSuccess', function () {
59            setTimeout(function () {
60                location.reload(true);
61            }, 3000);
62        });
63        jQuery('#atualizar-pagamento-form').on('formSubmitSuccess', function () {
64            setTimeout(function () {
65                location.reload(true);
66            }, 3000);
67        });
68    });
69});
70
71$(function () {
72    $('#register-form-servico').change(function () {
73        if ($(this).val()) {
74            $('#register-form-setor').hide();
75            $('.carregando').show();
76            $.getJSON(
77                'admin/busca_setor.php?servico=',
78                {
79                    servico: $(this).val(),
80                    ajax: 'true',
81                },
82                function (j) {
83                    var options =
84                        '<option value="" disabled selected>Setor</option>';
85                    for (var i = 0; i < j.length; i++) {
86                        options +=
87                            '<option value="' +
88                            j[i].id_setor +
89                            '">' +
90                            j[i].nome +
91                            '</option>';
92                    }
93                    $('#register-form-setor').html(options).show();
94                    $('.carregando').hide();
95                }
96            );
97        } else {
98            $('#register-form-setor').html(
99                '<option value="">Escolha um serviço</option>'
100            );
101        }
102    });
103});

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.