PageSourceSearch

https://admin-electronico.contamatic.ec/factumatic/vistas/js/politicas.js?rev=1790261997

js contamatic.ec collected 2026-09-24 15:01:46 UTC 1,400 bytes, 48 lines download raw bytes

1$(document).ready(function () {
2    
3    $.ajax({
4        url: 'ajax/terminos.ajax.php',
5        type: 'GET',
6        success: function (response) {
7            if (response === '0') {
8                
9                $('#modalTer').modal('show');
10
11                // Cuando se hace clic en el botón "Aceptar"
12                $('#aceptarTerminos').click(function () {
13                    $.ajax({
14                        url: 'ajax/terminos.ajax.php',
15                        type: 'POST',
16                        data: { estTerminos: 1 }, 
17                        success: function (response) {                           
18                            $('#modalTer').modal('hide');
19                        }
20                    });
21                });
22            }
23        }
24    });
25
26    $('#despues').click(function () {
27        $('#modalTer').modal('hide');
28    });
29
30});
31
32document.addEventListener('DOMContentLoaded', function () {
33
34    var checkPrivacidad = document.getElementById('checkPrivacidad');
35    var botonAceptar = document.getElementById('aceptarTerminos');
36
37    if(checkPrivacidad){//Si existe en la vista
38        checkPrivacidad.addEventListener('change', verificarCheckboxes);
39    }
40
41    function verificarCheckboxes() {
42        if (checkPrivacidad.checked) {
43            botonAceptar.disabled = false;
44        } else {
45            botonAceptar.disabled = true;
46        }
47    }
48});

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.