PageSourceSearch

https://internetlab.org.br/wp-content/plugins/lgpd-consent/public/js/lgpd-consent-cyfer.js?ver=2.0.3

js internetlab.org.br collected 2026-09-24 08:38:30 UTC 1,662 bytes, 44 lines download raw bytes

1jQuery(document).ready(function($) {
2    // Verifica se está em modo mobile e se o modo de exibição é ícone
3    if ($('#lgpd-consent-icon').length) {
4        $('#lgpd-consent-icon').on('click', function(e) {
5            e.preventDefault();
6            $(this).fadeOut(200, function() {
7                $('#lgpd-consent-bar-mobile').css({
8                    'display': 'flex',
9                    'opacity': 0
10                }).animate({
11                    opacity: 1
12                }, 200);
13            });
14        });
15    }
16    
17    $('.lgpd-consent-btn').on('click', function(e) {
18        e.preventDefault();
19        var consent = $(this).data('consent');
20        $.ajax({
21            url: lgpdConsentCyfer.ajax_url,
22            method: 'POST',
23            data: {
24                action: 'lgpd_consent_cyfer_save_consent',
25                consent: consent,
26                nonce: lgpdConsentCyfer.consent_nonce
27            },
28            success: function(response) {
29                if (response.success) {
30                    // Define o cookie
31                    document.cookie = "lgpd_consent_cyfer=" + consent + "; path=/; max-age=" + (30 * 24 * 60 * 60) + ";";
32                    // Define a flag no localStorage
33                    localStorage.setItem("lgpd_consent_cyfer", "yes");
34                    $('#lgpd-consent-bar, #lgpd-consent-bar-mobile, #lgpd-consent-icon').fadeOut();
35                } else {
36                    console.log('Erro ao registrar o consentimento.');
37                }
38            },
39            error: function() {
40                console.log('Erro na requisição AJAX.');
41            }
42        });
43    });
44});

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.