PageSourceSearch

https://www.fujimokunoie.jp/assets/js/lib/jquery.matchHeight.min.js?v=1.0.0

js fujimokunoie.jp collected 2026-10-02 11:15:40 UTC 5,553 bytes, 189 lines download raw bytes

1!(function (t) {
2  "use strict";
3  "function" == typeof define && define.amd
4    ? define(["jquery"], t)
5    : "undefined" != typeof module && module.exports
6    ? (module.exports = t(require("jquery")))
7    : t(jQuery);
8})(function (t) {
9  var e = -1,
10    o = -1,
11    a = function (t) {
12      return parseFloat(t) || 0;
13    },
14    i = function (e) {
15      var o = t(e),
16        i = null,
17        n = [];
18      return (
19        o.each(function () {
20          var e = t(this),
21            o = e.offset().top - a(e.css("margin-top")),
22            r = n.length > 0 ? n[n.length - 1] : null;
23          null === r
24            ? n.push(e)
25            : Math.floor(Math.abs(i - o)) <= 1
26            ? (n[n.length - 1] = r.add(e))
27            : n.push(e),
28            (i = o);
29        }),
30        n
31      );
32    },
33    n = function (e) {
34      var o = { byRow: !0, property: "height", target: null, remove: !1 };
35      return "object" == typeof e
36        ? t.extend(o, e)
37        : ("boolean" == typeof e
38            ? (o.byRow = e)
39            : "remove" === e && (o.remove = !0),
40          o);
41    },
42    r = (t.fn.matchHeight = function (e) {
43      var o = n(e);
44      if (o.remove) {
45        var a = this;
46        return (
47          this.css(o.property, ""),
48          t.each(r._groups, function (t, e) {
49            e.elements = e.elements.not(a);
50          }),
51          this
52        );
53      }
54      return this.length <= 1 && !o.target
55        ? this
56        : (r._groups.push({ elements: this, options: o }),
57          r._apply(this, o),
58          this);
59    });
60  (r.version = "master"),
61    (r._groups = []),
62    (r._throttle = 80),
63    (r._maintainScroll = !1),
64    (r._beforeUpdate = null),
65    (r._afterUpdate = null),
66    (r._rows = i),
67    (r._parse = a),
68    (r._parseOptions = n),
69    (r._apply = function (e, o) {
70      var s = n(o),
71        h = t(e),
72        l = [h],
73        c = t(window).scrollTop(),
74        p = t("html").outerHeight(!0),
75        d = h.parents().filter(":hidden");
76      return (
77        d.each(function () {
78          var e = t(this);
79          e.data("style-cache", e.attr("style"));
80        }),
81        d.css("display", "block"),
82        s.byRow &&
83          !s.target &&
84          (h.each(function () {
85            var e = t(this),
86              o = e.css("display");
87            "inline-block" !== o &&
88              "flex" !== o &&
89              "inline-flex" !== o &&
90              (o = "block"),
91              e.data("style-cache", e.attr("style")),
92              e.css({
93                display: o,
94                "padding-top": "0",
95                "padding-bottom": "0",
96                "margin-top": "0",
97                "margin-bottom": "0",
98                "border-top-width": "0",
99                "border-bottom-width": "0",
100                height: "100px",
101                overflow: "hidden",
102              });
103          }),
104          (l = i(h)),
105          h.each(function () {
106            var e = t(this);
107            e.attr("style", e.data("style-cache") || "");
108          })),
109        t.each(l, function (e, o) {
110          var i = t(o),
111            n = 0;
112          if (s.target) n = s.target.outerHeight(!1);
113          else {
114            if (s.byRow && i.length <= 1) return void i.css(s.property, "");
115            i.each(function () {
116              var e = t(this),
117                o = e.attr("style"),
118                a = e.css("display");
119              "inline-block" !== a &&
120                "flex" !== a &&
121                "inline-flex" !== a &&
122                (a = "block");
123              var i = { display: a };
124              (i[s.property] = ""),
125                e.css(i),
126                e.outerHeight(!1) > n && (n = e.outerHeight(!1)),
127                o ? e.attr("style", o) : e.css("display", "");
128            });
129          }
130          i.each(function () {
131            var e = t(this),
132              o = 0;
133            (s.target && e.is(s.target)) ||
134              ("border-box" !== e.css("box-sizing") &&
135                ((o +=
136                  a(e.css("border-top-width")) +
137                  a(e.css("border-bottom-width"))),
138                (o += a(e.css("padding-top")) + a(e.css("padding-bottom")))),
139              e.css(s.property, n - o + "px"));
140          });
141        }),
142        d.each(function () {
143          var e = t(this);
144          e.attr("style", e.data("style-cache") || null);
145        }),
146        r._maintainScroll &&
147          t(window).scrollTop((c / p) * t("html").outerHeight(!0)),
148        this
149      );
150    }),
151    (r._applyDataApi = function () {
152      var e = {};
153      t("[data-match-height], [data-mh]").each(function () {
154        var o = t(this),
155          a = o.attr("data-mh") || o.attr("data-match-height");
156        e[a] = a in e ? e[a].add(o) : o;
157      }),
158        t.each(e, function () {
159          this.matchHeight(!0);
160        });
161    });
162  var s = function (e) {
163    r._beforeUpdate && r._beforeUpdate(e, r._groups),
164      t.each(r._groups, function () {
165        r._apply(this.elements, this.options);
166      }),
167      r._afterUpdate && r._afterUpdate(e, r._groups);
168  };
169  (r._update = function (a, i) {
170    if (i && "resize" === i.type) {
171      var n = t(window).width();
172      if (n === e) return;
173      e = n;
174    }
175    a
176      ? -1 === o &&
177        (o = setTimeout(function () {
178          s(i), (o = -1);
179        }, r._throttle))
180      : s(i);
181  }),
182    t(r._applyDataApi),
183    t(window).bind("load", function (t) {
184      r._update(!1, t);
185    }),
186    t(window).bind("resize orientationchange", function (t) {
187      r._update(!0, t);
188    });
189});

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.