PageSourceSearch

https://www.controcampus.it/wp-content/themes/controcampus-2020/assets/js/complessivo.js?ver=1790275961

js controcampus.it collected 2026-09-24 19:48:33 UTC 2,807 bytes, 129 lines download raw bytes

1    jQuery(document).ready(function() {
2		
3		jQuery('img').bind('contextmenu', function(e) {
4			return false;
5		}); 		
6		
7		if ( $( ".splide" ).length )
8		{
9			new Splide( '.splide', {
10				perPage: 8,
11				lazyLoad: 'nearby',
12				passive : true,
13				padding: {
14						left : 0,
15						right: '4px',
16					},
17				type   : 'loop',
18				perMove: 1,
19				pagination:false,
20				breakpoints: {
21					'1024': {
22						perPage: 5,
23						gap    : '1rem',
24					},
25					'990': {
26						perPage: 8,
27						gap    : '1rem',
28					},				
29					'640': {
30						perPage: 5,
31						gap    : '1rem',
32					},
33					'480': {
34						perPage: 4,
35						gap    : '1rem',
36					},
37				}			
38			} ).mount();		 
39			
40		}
41
42 
43		  
44		$(".minimize_button").click(function(e){
45			e.preventDefault();
46			var testo=$(".minimize_button").text();
47			
48			if (testo=="Leggi altro")
49			{
50				
51				$(".minimize_button").text('Minimizza');
52			}
53			else
54			{
55				
56				$(".minimize_button").text('Leggi altro');
57			}
58			$(".minimize").toggleClass('minimize_open');
59		});		  
60		
61		$(".minimize_button_m").click(function(e){
62			e.preventDefault();
63			var testo=$(".minimize_button_m").text();
64			
65			if (testo=="Leggi altro")
66			{
67				
68				$(".minimize_button_m").text('Minimizza');
69			}
70			else
71			{
72				
73				$(".minimize_button_m").text('Leggi altro');
74			}
75			$(".minimize_m").toggleClass('minimize_open');
76		});	
77		
78		if ($('.sticky').length) { // make sure "#sticky" element exists
79
80			var width_sidebar=$('#sidebar_sticky').width();
81			
82			var el = $('.sticky').last();
83			var endItem = $('.infinite-item-end').last();
84			
85			var valore=128;
86			var finesidebar=$('#sidebar').offset().top+$('#sidebar').height()-valore;
87			
88			
89			
90			if ($(window).width() >= 768) { // dalla larghezza dell'ipad in su
91				$(window).scroll(function () { // scroll event
92				
93					//var footer=$('#footer').offset().top;
94					
95					var footer=$('#nat_60ae69721f8d0873294f409d').offset().top;
96					
97					console.log(footer);
98										
99					var stickyTop = el.closest("#sidebar_sticky").offset().top - valore; // returns number
100					
101					var stickyHeight = el.height();
102					
103					el.closest("#sidebar_sticky").height(stickyHeight);
104					//var limit = endItem.offset().top;
105					var limit=footer;
106					
107					var windowTop = $(window).scrollTop(); // returns number
108					
109					if (stickyTop <= windowTop && stickyTop>finesidebar) {							
110						el.css({ position: 'fixed', top: valore, width:width_sidebar+'px' });
111					}
112					else {
113						
114						el.css('position', 'relative');
115						el.css('top', 'auto');
116					}
117
118					if ((limit - stickyHeight  ) < windowTop +valore) {
119						console.log('a'+(limit - stickyHeight  ));
120						console.log('b'+(windowTop +valore  ));
121						var diff = limit - stickyHeight - windowTop;
122						el.css({ top: diff });
123					}
124				});
125			}
126		}		
127		
128
129    });

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.