PageSourceSearch

https://federalcos.com/inc/page-template/js/PageTemplateModule.js

js federalcos.com collected 2026-09-28 08:42:35 UTC 1,195 bytes, 47 lines download raw bytes

1(function () {
2
3	function initBackgrounds () {
4		$('[data-page-template-section]').each(function () {
5			const $this = $(this);
6			PageTemplate.setBackground($this, $this.data('section'));
7		});
8	}
9
10	function initSmoothScroll () {
11		$('.page-template-navigation a').click(function () {
12			$('html').animate({
13				scrollTop: $($(this).attr('href')).offset().top
14			});
15			return false;
16		});
17	}
18
19	if($('.max-callout-height').length > 0){
20		var maxHeight = 400;
21		$('.max-callout-height').each(function(){
22			if($(this).height() < maxHeight)
23				maxHeight = $(this).height();
24		});
25		$('.max-callout-height').css('height', maxHeight);
26	}
27	if($('.two-col-carousel-img').length > 0){
28		var maxHeight = 600;
29		$('.two-col-carousel-img').each(function(){
30			if($(this)[0].height < maxHeight)
31				maxHeight = $(this)[0].height;
32		});
33		$('.two-col-carousel-img').css('height', maxHeight);
34	}
35
36	$(".carousel-swipe").swipe({
37		swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
38			if (direction == 'left') $(this).carousel('next');
39			if (direction == 'right') $(this).carousel('prev');
40		},
41		allowPageScroll:"vertical"
42	});
43
44	initBackgrounds();
45	initSmoothScroll();
46
47})();

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.