PageSourceSearch

https://amf.net.au/wp-content/themes/thegem-elementor/js/thegem-blog-isotope.js?ver=5.12.3

js amf.net.au collected 2026-10-02 11:27:25 UTC 2,345 bytes, 88 lines download raw bytes

1(function($) {
2	function initBlogMasonryTimeline() {
3		if (window.tgpLazyItems !== undefined) {
4			var isShowed = window.tgpLazyItems.checkGroupShowed(this, function(node) {
5				initBlogMasonryTimeline.call(node);
6			});
7			if (!isShowed) {
8				return;
9			}
10		}
11
12		var $blog = $(this),
13			isTimeline = $blog.hasClass('blog-style-timeline_new');
14
15		window.thegemUpdateLikesIcons($blog);
16
17		if (isTimeline && $blog.closest('.vc_row[data-vc-stretch-content="true"]').length > 0) {
18			$('.post-image img.img-responsive', $blog).removeAttr('srcset');
19		}
20
21		window.thegemBlogImagesLoaded($blog, 'article:not(.format-gallery) img, article.format-gallery .gem-gallery-item:first-child img', function() {
22			$blog.prev('.preloader').remove();
23
24			var itemsAnimations = $blog.itemsAnimations({
25				itemSelector: 'article',
26				scrollMonitor: true,
27				firstItemStatic: isTimeline
28			});
29
30			var init_blog = true;
31			if (isTimeline) {
32				$blog
33					.on('layoutComplete', function(event, laidOutItems) {
34						laidOutItems.forEach(function(item) {
35							if (item.position.x == 0) {
36								$(item.element).removeClass('right-position').addClass('left-position');
37							} else {
38								$(item.element).removeClass('left-position').addClass('right-position');
39							}
40						});
41					});
42			}
43
44			$blog
45				.on( 'arrangeComplete', function( event, filteredItems ) {
46
47					if (init_blog) {
48						init_blog = false;
49						itemsAnimations.show();
50					}
51				})
52				.thegem_isotope({
53					itemSelector: 'article',
54					layoutMode: 'masonry',
55					masonry: {
56						columnWidth: 'article:not(.sticky)'
57					},
58					transitionDuration: 0
59				});
60
61			if ($blog.hasClass('fullwidth-block')) {
62				$blog.bind('fullwidthUpdate', function() {
63					if ($blog.data('thegem_isotope')) {
64						$blog.thegem_isotope('layout');
65						return false;
66					}
67				});
68			}
69		});
70
71		var $blogParent = $blog;
72		if (isTimeline) {
73			$blogParent = $blog.parent();
74		}
75		$blogParent.siblings('.blog-load-more').on('click', function() {
76			window.thegemBlogLoadMoreRequest($blog, $(this), false);
77		});
78
79		window.thegemInitBlogScrollNextPage($blog, $blogParent.siblings('.blog-scroll-pagination'));
80
81	}
82
83	$('.blog-style-masonry, .blog-style-timeline_new').each(initBlogMasonryTimeline);
84
85	$.fn.initBlogMasonry = function () {
86		$(this).each(initBlogMasonryTimeline);
87	};
88})(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.