PageSourceSearch

https://elmartinetevilla.com/wp-content/themes/milenia/assets/vendors/monkeysan.sameheight.js?ver=1.0.0

js elmartinetevilla.com collected 2026-10-06 17:04:46 UTC 2,657 bytes, 79 lines download raw bytes

1/**
2 * Same Height jQuery plugin
3 *
4 * @version 1.0.0
5 **/
6(function(e) {
7    function MonkeysanSameHeight(a, b) {
8
9        this.config = {
10            timeOut: 50,
11            target: null,
12            isIsotope: !1,
13            columns: !1
14        };
15
16        if (b.target) this.items = a.find(b.target);
17        else throw Error("'target' option should be specified in the initialization of 'MonkeysanSameHeight' plugin");
18
19        this.items.length && (e.extend(this.config, b), Object.defineProperty(this, "prepare", {
20            value: function() {
21                this.run();
22                e(window).on("resize.MonkeysanSameHeight", this.run.bind(this))
23            }
24        }), Object.defineProperty(this, "run", {
25            value: function() {
26                var c = this;
27                this.timeoutId && clearTimeout(this.timeoutId);
28                c.items.css("height", "auto");
29                this.timeoutId = setTimeout(function() {
30                    c.calcMax(c.items)
31                }, c.config.timeOut)
32            }
33        }), Object.defineProperty(this, "calcMax", {
34            value: function(c, f) {
35                var b = 0,
36                    d = this;
37                if (!f && this.columns) {
38                    var g = e(),
39                        h = 0;
40                    c.each(function(c, a) {
41                        var b = e(a);
42                        b.closest(".milenia-is-out").length || (g = g.add(b), h++, 0 == h % d.columns && (d.calcMax(g, !0), g = e(), h = 0))
43                    })
44                } else c.each(function(c, a) {
45                    var d = e(a).outerHeight();
46                    d > b && (b = d)
47                }), c.css("height", b), this.config.isIsotope && a.data('isotope') && a.isotope("layout")
48            }
49        }), Object.defineProperty(this, "columns", {
50            get: function() {
51                return this.config.columns
52            },
53            set: function(a) {
54                this.config.columns = a
55            }
56        }), this.prepare())
57    }
58
59    Object.defineProperty(MonkeysanSameHeight.prototype, "appendItems", {
60        value: function(a) {
61            this.items = this.items.add(a);
62            this.run()
63        }
64    });
65
66    Object.defineProperty(MonkeysanSameHeight.prototype, "getOption", {
67        value: function(a) {
68            if (a in this.config) return this.config[a]
69        }
70    });
71
72    e.fn.MonkeysanSameHeight = function(a) {
73        return this.each(function(b, c) {
74            var f = e(this);
75            f.data("sameHeight") || f.data("sameHeight", new MonkeysanSameHeight(f, a))
76        })
77    }
78
79})(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.