PageSourceSearch

https://www.alpytransfers.com/o/com.babel.alsa.suiza.portlet.faq/js/faqs.js?t=1772531936000

js alpytransfers.com collected 2026-10-10 00:54:56 UTC 2,025 bytes, 58 lines download raw bytes

1// JS FAQs
2
3//=include components/c-header/c-header.js
4//=include components/c-header-mobile/c-header-mobile.js
5//=include components/c-collapse/c-collapse.js
6
7(function() {
8	try {
9		// centra imagenes recortando por los lados proporcionalmente
10		objectFitImages();
11	} catch(err) {
12		alert("Error: " + err + ".");
13	}
14})();
15
16
17var respuestaEnElFondo = false;
18var diferencial = 0;
19
20$(window).scroll(function(){
21	if (window.screen.availWidth > 1023) {
22		recalculateAnwersSticky();	
23	}	
24});
25
26var maxWitdhAnswer = "";
27$( document ).ready(function() {
28	if (window.screen.availWidth > 1023) {
29		document.documentElement.scrollTop = 0;
30		maxWitdhAnswer = $(".c-collapse__content--open")[0].clientWidth + "px";
31		$(".c-collapse__content").css({ "maxWidth": maxWitdhAnswer});
32	}
33});
34
35function recalculateAnwersSticky () {	
36	var faqsAlturaActual = $(".c-collapse__header")[0].getBoundingClientRect().y;
37	if (faqsAlturaActual <= 75) {
38	    $(".c-collapse__content").addClass("faqs-stiky");
39	} else {
40	    $(".c-collapse__content").removeClass("faqs-stiky");
41	}    
42
43	var alturaMinima = $(".c-collapse__header")[$(".c-collapse__header").length-1].getBoundingClientRect().y + $(".c-collapse__header")[$(".c-collapse__header").length-1].getBoundingClientRect().height;
44	var alturaMinimaActual = $(".c-collapse__content--open")[0].getBoundingClientRect().y + $(".c-collapse__content--open")[0].getBoundingClientRect().height;    
45
46	if (alturaMinima <= alturaMinimaActual) {
47		if (!respuestaEnElFondo) {
48			respuestaEnElFondo = true;
49		    $(".c-collapse__content--open").css({ position: 'absolute', top: $($(".c-collapse__header")[$(".c-collapse__header").length-1]).offset().top / 2 });	
50		}	    
51	}
52
53	if ($(window).scrollTop() < $(".c-collapse__header")[$(".c-collapse__header").length-1].getBoundingClientRect().y / 2.2) {
54		respuestaEnElFondo = false;
55		$(".c-collapse__content--open").css({ position: '', top: '' });
56	}
57	console.log("preguntaEnElFondo: " + respuestaEnElFondo);	
58}

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.