PageSourceSearch

https://www.jahinsurance.com/wp-content/themes/jah/js/jah.js?v=1790256446

js jahinsurance.com collected 2026-09-24 13:28:00 UTC 5,321 bytes, 207 lines download raw bytes

1(function($) {
2    setTimeout(() => {
3        $('.serv-cotizacion > div > div').owlCarousel({
4            loop: true,
5            dots: true,
6            autoplay: true,
7            responsive: {
8                0: {
9                    items: 1
10                },
11                780: {
12                    items: 3
13                },
14                1000: {
15                    items: 3
16                }
17            }
18        })
19
20        $('.beneficios-club > div > div').owlCarousel({
21            loop: true,
22            dots: true,
23            autoplay: true,
24            responsive: {
25                0: {
26                    items: 1
27                },
28                780: {
29                    items: 3
30                },
31                1000: {
32                    items: 4
33                }
34            }
35        })
36
37        $('.pasoSiniestro > div > div').owlCarousel({
38            loop: true,
39            dots: true,
40            autoplay: true,
41            responsive: {
42                0: {
43                    items: 1
44                },
45                780: {
46                    items: 3
47                },
48                1000: {
49                    items: 3
50                }
51            }
52        })
53
54        $('.quienes-carousel > div > div').owlCarousel({
55            loop: true,
56            dots: true,
57            autoplay: true,
58            responsive: {
59                0: {
60                    items: 1
61                },
62                780: {
63                    items: 1
64                },
65                1000: {
66                    items: 1
67                }
68            }
69        })
70
71        $('.contacto-paises > div > div').owlCarousel({
72            loop: true,
73            dots: true,
74            margin: 30,
75            autoplay: true,
76			autoplayTimeout: 8000,
77            responsive: {
78                0: {
79                    items: 1
80                },
81                780: {
82                    items: 3
83                },
84                1000: {
85                    items: 3
86                }
87            }
88        })
89
90    }, 500);
91	
92    
93})(jQuery)
94
95
96
97
98function contadorNumeros() {
99
100    // Selecciona el elemento que deseas observar
101    const elementoObservado = document.querySelector('.filaNumeros');
102    let contadores = document.querySelectorAll(".filaNumeros .itemCont strong");
103
104    // Crea una instancia del Intersection Observer
105    const observer = new IntersectionObserver((entradas, observer) => {
106        entradas.forEach((entrada) => {
107            if (entrada.isIntersecting) {
108                // El elemento se ve en pantalla
109                miFuncion();
110
111                observer.unobserve(entrada.target);
112            }
113        });
114    });
115
116    // Empieza a observar el elemento
117    observer.observe(elementoObservado);
118
119    // La función que deseas activar cuando el elemento se vea en pantalla
120    function miFuncion() {
121        contadores.forEach(function(contador) {
122            let numeroObjetivo = parseInt(contador.innerHTML);
123            let currentNumber = 0;
124            let increment = Math.ceil(numeroObjetivo / 80);
125            let interval = setInterval(function() {
126                contador.textContent = currentNumber;
127                currentNumber += increment;
128                if (currentNumber > numeroObjetivo) {
129                    clearInterval(interval);
130                    contador.textContent = numeroObjetivo;
131                }
132            }, 50);
133        });
134    }
135}
136
137
138document.querySelector('.filaNumeros') ? contadorNumeros() : null
139
140
141function menuMovil() {
142
143    let burger = document.querySelector('.site-header .burger')
144    let menuMovil = document.querySelector('.menu-movil')
145    let cerrar = document.querySelector('.menu-movil .burger')
146
147    burger.addEventListener('click', ()=>{
148        menuMovil.classList.toggle('activo')
149    })
150
151    cerrar.addEventListener('click', ()=>{
152        menuMovil.classList.remove('activo')
153    })
154}
155menuMovil();
156
157
158var mainNav = document.querySelector('.site-header');
159
160window.onscroll = function() {
161    if(window.innerWidth > 1024) {
162        windowScroll();
163    }
164};
165
166function windowScroll() {
167    mainNav.classList.toggle("scrolled", mainNav.scrollTop > 50 || document.documentElement.scrollTop > 50);
168}
169
170function btnSiniestro() {
171    window.addEventListener('scroll', function() {
172        var siniestrofijo = document.getElementById('siniestrofijo');
173        var btnfijo = document.querySelector('.btnfijo');
174    
175        var siniestroRect = siniestrofijo.getBoundingClientRect();
176        var btnfijoRect = btnfijo.getBoundingClientRect();
177    
178        if (siniestroRect.bottom < 0) {
179            btnfijo.classList.add('btnfijo-activo');
180        } else if (btnfijoRect.top >= siniestroRect.top) {
181            btnfijo.classList.remove('btnfijo-activo');
182        }
183    });
184}
185
186if (document.querySelector('.btnfijo')) {
187    btnSiniestro();
188}
189
190
191function removeE(){
192	const inputNumero = document.querySelector('input[name="total-estimado"]');
193	console.log(inputNumero)
194	
195	inputNumero.addEventListener('input', function () {
196	  // Obtén el valor actual del input
197	  let valor = inputNumero.value;
198
199	  // Elimina cualquier carácter que no sea un número (0-9)
200	  valor = valor.replace(/[^0-9]/g, '');
201
202	  // Establece el valor limpio en el input
203	  inputNumero.value = valor;
204	});
205}
206
207removeE();

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.