PageSourceSearch

https://www.stmamet-lasalvetat.com/wp-content/themes/thegem-elementor/js/thegem-blog.js?ver=5.12.3.1

js stmamet-lasalvetat.com collected 2026-10-02 21:37:09 UTC 3,890 bytes, 106 lines download raw bytes

1(function($) {
2	function initBlogDefault() {
3		if (window.tgpLazyItems !== undefined) {
4			var isShowed = window.tgpLazyItems.checkGroupShowed(this, function(node) {
5				initBlogDefault.call(node);
6			});
7			if (!isShowed) {
8				return;
9			}
10		}
11
12		var $blog = $(this);
13
14		window.thegemUpdateLikesIcons($blog);
15
16		$('.blog-load-more', $blog.parent()).on('click', function() {
17			window.thegemBlogLoadMoreRequest($blog, $(this), false);
18		});
19
20		$('.portfolio-navigator', $blog.parent()).on('click', 'a', function (e) {
21			e.preventDefault();
22			var current_page = $blog.data('current-page') ? $blog.data('current-page') : 1;
23			var pages_count = $blog.data('pages-count');
24			if ($(this).hasClass('current'))
25				return false;
26			var page;
27			if ($(this).hasClass('prev')) {
28				page = current_page - 1;
29			} else if ($(this).hasClass('next')) {
30				page = current_page + 1
31			} else {
32				page = $(this).data('page');
33			}
34			if (page < 1)
35				page = 1;
36			if (page > pages_count)
37				page = pages_count;
38			$blog.data('next-page', page);
39			$(this).parents('.portfolio-navigator ').find('a').removeClass('current');
40			$(this).parents('.portfolio-navigator ').find('a[data-page="' + page + '"]').addClass('current');
41			$blog.data('current-page', page);
42			if (page === 1) {
43				$(this).parents('.portfolio-navigator ').find('a.prev').hide();
44			} else {
45				$(this).parents('.portfolio-navigator ').find('a.prev').show();
46			}
47			if (page == pages_count) {
48				$(this).parents('.portfolio-navigator ').find('a.next').hide();
49			} else {
50				$(this).parents('.portfolio-navigator ').find('a.next').show();
51			}
52			window.thegemBlogLoadMoreRequest($blog, $(this), false);
53
54			$("html, body").animate({scrollTop: $blog.offset().top - 200}, 600);
55		});
56
57		window.thegemInitBlogScrollNextPage($blog, $blog.siblings('.blog-scroll-pagination'));
58
59		var itemsAnimations = $blog.itemsAnimations({
60			itemSelector: 'article',
61			scrollMonitor: true
62		});
63		itemsAnimations.show();
64
65		window.thegemBlogImagesLoaded($blog, 'article:not(.format-gallery) img, article.format-gallery .gem-gallery-item:first-child img', function() {
66			$blog.prev('.preloader').remove();
67			if ($blog.hasClass('blog-style-justified-2x') || $blog.hasClass('blog-style-justified-3x') || $blog.hasClass('blog-style-justified-4x') || $blog.hasClass('blog-style-justified-100')) {
68				window.thegemBlogOneSizeArticles($blog);
69			}
70
71		});
72	}
73
74	$('.blog:not(body,.blog-style-timeline_new,.blog-style-masonry)').each(initBlogDefault);
75
76	$.fn.initBlogGrid = function () {
77		$(this).each(initBlogDefault);
78	};
79
80
81	$(window).on('elementor/frontend/init', function () {
82		elementorFrontend.hooks.addAction('frontend/element_ready/thegem-bloglist.default', function ($scope, $) {
83			window.thegemUpdateLikesIcons($('.blog', $scope));
84			$('.blog, .bloglist-pagination, .blog-load-more', $scope).thegemPreloader(function() {});
85		});
86	});
87	$(window).on('elementor/frontend/init', function () {
88		elementorFrontend.hooks.addAction('frontend/element_ready/thegem-blog-grid.default', function ($scope, $) {
89			window.thegemUpdateLikesIcons($('.blog', $scope));
90			$('.blog, .blog-grid-pagination, .blog-load-more', $scope).thegemPreloader(function() {});
91		});
92	});
93	$(window).on('elementor/frontend/init', function () {
94		elementorFrontend.hooks.addAction('frontend/element_ready/thegem-blogtimeline.default', function ($scope, $) {
95			window.thegemUpdateLikesIcons($('.blog', $scope));
96			$('.blog, .blogtimeline-pagination, .blog-load-more', $scope).thegemPreloader(function() {});
97		});
98	});
99
100	$(window).on('resize', function(){
101		$(".blog-style-justified-2x, .blog-style-justified-3x, .blog-style-justified-4x, .blog-style-justified-100").each(function(){
102			window.thegemBlogOneSizeArticles($(this));
103		});
104	});
105
106})(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.