PageSourceSearch

https://www.rezz.ie/wp-content/plugins/avvio-cms-fields//assets/js/front-end.js?ver=1.8.47

js rezz.ie collected 2026-10-06 15:27:35 UTC 1,803 bytes, 83 lines download raw bytes

1(function($) {
2
3
4	var isIE = false;
5	(function detectIE() {
6		var ua = window.navigator.userAgent;
7		var msie = ua.indexOf('MSIE '); // IE 10 or older
8		var trident = ua.indexOf('Trident/'); // IE 11
9		if(msie > 0 || trident > 0) {
10			isIE = true;
11			if(typeof avviocmsfieldsDir !== 'undefined') {
12				$(window).on('load', function() {
13					$.getScript(avviocmsfieldsDir + 'assets/js/fitie.js');
14				});
15			}
16		}
17	})();
18
19
20	var windowHeight = $(window).innerHeight();
21	var buffer = windowHeight * 0.1;
22	windowHeight += buffer;
23
24	$(window).on('load resize orientationchange scroll', function() {
25		assessViewport();
26	});
27
28
29	function assessViewport() {
30
31		if($('body').hasClass('deferred-images-loaded')) return;
32
33		var scrollTop = $(window).scrollTop();
34
35		if(scrollTop > 10) {
36			$('main > .module-block.defer-images, .avvwpcms-defer-images').each(function() {
37				showImages($(this));
38				fullSizeIEImages($(this));
39			});
40
41			$('body').addClass('deferred-images-loaded');
42		} else {
43			assessViewportAtZero();
44		}
45
46	}
47
48
49	function assessViewportAtZero() {
50		$('main > .module-block.defer-images, .avvwpcms-defer-images').each(function() {
51			var elementTop = $(this).offset().top;
52			var screenBottom = $(window).scrollTop() + windowHeight;
53
54			if (screenBottom > elementTop){
55				showImages($(this));
56				fullSizeIEImages($(this));
57			}
58		});
59	}
60
61
62	function showImages(section) {
63		section.find('img').each(function() {
64			var src = $(this).data('src');
65			$(this).attr('src', src);
66
67			var srcset = $(this).data('srcset');
68			$(this).attr('srcset', srcset);
69		});
70	}
71
72
73	function fullSizeIEImages(section) {
74		if (isIE) {
75			section.find('img[data-orig-src]').each(function() {
76				var origSrc = $(this).data('orig-src');
77				if(origSrc.length) $(this).attr('src', origSrc);
78			});
79		}
80	}
81
82
83})(jQuery);

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.