PageSourceSearch

https://proafed.com/new/wp-content/themes/proa26/library/js/masonry-init.js?ver=1.0

js proafed.com collected 2026-10-06 12:26:57 UTC 1,333 bytes, 55 lines download raw bytes

1(function () {
2
3  function initMasonry() {
4    if (!window.jQuery || !jQuery.fn.masonry) return;
5
6    // =========================
7    // Masonry general (lo tuyo)
8    // =========================
9    var $grids = jQuery('.grid');
10    if ($grids.length) {
11      $grids.each(function () {
12        var $grid = jQuery(this);
13
14        if (!$grid.data('masonry')) {
15          $grid.masonry({
16            itemSelector: 'li',
17            percentPosition: true
18          });
19        } else {
20          $grid.masonry('reloadItems');
21        }
22
23        if (jQuery.fn.imagesLoaded) {
24          $grid.imagesLoaded(function () {
25            $grid.masonry('layout');
26          });
27        } else {
28          $grid.masonry('layout');
29        }
30      });
31    }
32
33    // =========================
34    // Masonry SOLO Anuncis
35    // =========================
36    var $anuncis = jQuery('.page-template-page-anuncis .wrap-anuncis');
37    if ($anuncis.length) {
38
39      if (!$anuncis.data('masonry')) {
40        $anuncis.masonry({
41          itemSelector: '.single_anunci',
42          percentPosition: true
43        });
44      } else {
45        $anuncis.masonry('reloadItems');
46        $anuncis.masonry('layout');
47      }
48    }
49  }
50
51  document.addEventListener('DOMContentLoaded', initMasonry);
52  document.addEventListener('facetwp-loaded', initMasonry);
53
54})();
55

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.