PageSourceSearch

https://www.elbravo.mx/wp-content/plugins/the-post-grid/assets/js/rttpg.js?ver=2.2.70

js elbravo.mx collected 2026-10-07 15:41:43 UTC 3,372 bytes, 85 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    window.tpgFixLazyLoad = function () {
5        $('.rt-tpg-container').each(function () {
6            // jetpack Lazy load
7            $(this).find('img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)').each(function () {
8                console.log('trigger');
9                $(this).addClass('jetpack-lazy-image--handled').removeAttr('srcset').removeAttr('data-lazy-src').attr('data-lazy-loaded', 1);
10            });
11        });
12    };
13
14    window.initTpg = function () {
15        $(".rt-tpg-container").each(function () {
16            var $isotopeHolder = $(this).find('.tpg-isotope');
17            var $isotope = $isotopeHolder.find('.rt-tpg-isotope');
18            if ($isotope.length) {
19                tpgFixLazyLoad();
20                var isotope = $isotope.imagesLoaded(function () {
21                    $.when(tgpHeightResize()).done(function () {
22                        isotope.isotope({
23                            itemSelector: '.isotope-item',
24                        });
25                        setTimeout(function () {
26                            isotope.isotope();
27                        }, 100);
28                    });
29                });
30                var $isotopeButtonGroup = $isotopeHolder.find('.rt-tpg-isotope-buttons');
31                $isotopeButtonGroup.on('click', 'button', function (e) {
32                    e.preventDefault();
33                    var filterValue = $(this).attr('data-filter');
34                    isotope.isotope({filter: filterValue});
35                    $(this).parent().find('.selected').removeClass('selected');
36                    $(this).addClass('selected');
37                });
38            }
39        });
40    };
41    initTpg();
42    $(window).on('load resize', function () {
43        tgpHeightResize();
44        overlayIconResizeTpg();
45    });
46
47    function tgpHeightResize() {
48        var wWidth = $(window).width();
49        if (wWidth > 767) {
50            $(".rt-tpg-container").each(function () {
51                var self = $(this),
52                    rtMaxH = 0;
53                self.imagesLoaded(function () {
54                    self.children('.row').children(".rt-equal-height:not(.rt-col-md-12)").height("auto");
55                    self.children('.row').children('.rt-equal-height:not(.rt-col-md-12)').each(function () {
56                        var $thisH = $(this).actual('outerHeight');
57                        if ($thisH > rtMaxH) {
58                            rtMaxH = $thisH;
59                        }
60                    });
61                    self.children('.row').children(".rt-equal-height:not(.rt-col-md-12)").css('height', rtMaxH + "px");
62
63                });
64            });
65        } else {
66            $(".rt-tpg-container").find(".rt-equal-height").height('auto');
67        }
68    }
69
70    function overlayIconResizeTpg() {
71        $('.overlay').each(function () {
72            var holder_height = $(this).height();
73            var target = $(this).children('.link-holder');
74            var targetd = $(this).children('.view-details');
75            var a_height = target.height();
76            var ad_height = targetd.height();
77            var h = (holder_height - a_height) / 2;
78            var hd = (holder_height - ad_height) / 2;
79            target.css('top', h + 'px');
80            targetd.css('margin-top', hd + 'px');
81        });
82    }
83
84
85})(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.