PageSourceSearch

https://www.zulitak.com/cdn/shop/t/19/assets/tilda-cover-1.0.min.js?v=63398787971399351391646923274

js zulitak.com collected 2026-10-04 08:24:48 UTC 12,835 bytes, 338 lines download raw bytes

1function cover_fixcontentheight(e) {
2  var t = $("#rec" + e),
3    e = t.find(".t-cover").height(),
4    o = t.find("div[data-hook-content]").outerHeight();
5  if (
6    300 < o &&
7    e < o + 40 &&
8    (1e3 < (o = o + 120) && (o += 100),
9    console.log("auto correct cover height: " + o),
10    t.find(".t-cover").height(o),
11    t.find(".t-cover__filter").height(o),
12    t.find(".t-cover__carrier").height(o),
13    t.find(".t-cover__wrapper").height(o),
14    0 == window.isMobile &&
15      setTimeout(function () {
16        var e = t.find(".t-cover__carrier");
17        0 < e.find("iframe").length &&
18          (console.log("correct video from cover_fixcontentheight"),
19          setWidthHeightYoutubeVideo(e, o + "px")),
20          0 < e.find("video").length &&
21            console.log("correct html5video from cover_fixcontentheight");
22      }, 2e3),
23    "function" == typeof window.t_lazyload_updateResize_elem)
24  )
25    try {
26      window.t_lazyload_updateResize_elem(t.find(".t-cover__carrier"));
27    } catch (e) {
28      console.log("error:" + e);
29    }
30}
31function cover_checkIsFixForBackgroundNeeded(e) {
32  var t = document.body.querySelector("#rec" + e);
33  if (t) {
34    var o,
35      i,
36      n,
37      r = t.querySelector(".t-cover__carrier");
38    null !== r &&
39      ((o = r.getAttribute("data-content-video-url-youtube")),
40      (i = r.getAttribute("data-content-video-url-mp4")),
41      (n = r.getAttribute("data-content-video-url-webm")));
42    t = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
43    return !(
44      window.isMobile ||
45      (/Macintosh/.test(navigator.userAgent) && "ontouchend" in document) ||
46      !t ||
47      o ||
48      i ||
49      n ||
50      !r ||
51      "fixed" !== r.getAttribute("data-content-cover-parallax") ||
52      window["cover" + e + "fixbackgroundstyles"]
53    );
54  }
55}
56function cover_fixBackgroundFixedNode(e) {
57  var t, o, i, n, r;
58  cover_checkIsFixForBackgroundNeeded(e) &&
59    ((t = document.body.querySelector("#rec" + e)),
60    (n = document.body.querySelector("#rec" + e + " .t-cover").parentNode),
61    console.log("new fix node background-position: fixed"),
62    window.cover_fixBackgroundStyles ||
63      ((r =
64        ".t-cover__container {position: relative;}.t-cover__container .t-cover {clip: rect(0, auto, auto, 0);position: absolute;top: 0;left: 0;width: 100%;height: 100% !important;}.t-cover__container .t-cover .t-cover__carrier {position: fixed;display: block;top: 0;left: 0;width: 100%;height: 100%!important;background-size: cover;background-position: center center;transform: translateZ(0);will-change: transform;}"),
65      (o = document.head || document.getElementsByTagName("head")[0]),
66      (i = document.createElement("style")),
67      o.appendChild(i),
68      (i.type = "text/css"),
69      i.styleSheet
70        ? (i.styleSheet.cssText = r)
71        : i.appendChild(document.createTextNode(r)),
72      (window.cover_fixBackgroundStyles = !0)),
73    (i = document.createElement("div")).classList.add("t-cover__container"),
74    n.prepend(i),
75    (n = (r = t.querySelector(".t-cover")).style.height),
76    (i.style.height = n),
77    i.append(r),
78    void 0 !==
79      (r = {
80        275: ".t256__video-container",
81        286: ".t266__video-container",
82        337: ".t-container",
83        906: ".t906__video-container",
84      }[t.getAttribute("data-record-type")]) &&
85      ((r = t.querySelector(r)), i.append(r)),
86    (window["cover" + e + "fixbackgroundnodes"] = !0));
87}
88function cover_fixBackgroundFixedStyles(e) {
89  var t,
90    o,
91    i = document.body.querySelector("#rec" + e);
92  cover_checkIsFixForBackgroundNeeded(e) &&
93    (console.log("new fix style background-position: fixed"),
94    (t = i.querySelector(".t-cover__container")),
95    (i = (o = i.querySelector(".t-cover")).style.height),
96    (o.style.height = 0),
97    (t.style.height = i),
98    (window["cover" + e + "fixbackgroundstyles"] = !0));
99}
100function cover_onFuncLoad(t, o) {
101  "function" == typeof t
102    ? o()
103    : setTimeout(function e() {
104        if ("function" != typeof t) {
105          if ("complete" === document.readyState && "function" != typeof t)
106            throw new Error(t + " is undefined");
107          setTimeout(e, 100);
108        } else o();
109      });
110}
111!(function (a) {
112  var d = a(window),
113    s = d.height();
114  d.resize(function () {
115    s = d.height();
116  }),
117    (a.fn.parallax = function (n, e) {
118      var r,
119        t = a(this),
120        c = void 0 !== document.body.style["-webkit-transform"];
121      function o() {
122        var i = d.scrollTop();
123        t.each(function () {
124          var e = a(this),
125            t = e.offset().top,
126            o = r(e),
127            e = this.getBoundingClientRect();
128          t + o < i ||
129            i + s < t ||
130            ((e = -1 * Math.round(e.top * n)),
131            c
132              ? (this.style["-webkit-transform"] = "translateY(" + e + "px)")
133              : (this.style.top = e + "px"));
134        });
135      }
136      c && t.css("position", "relative"),
137        (window.correctFirstTop4Parallax = function () {
138          t.each(function () {
139            t.offset().top;
140          });
141        }),
142        window.correctFirstTop4Parallax(),
143        (r = e
144          ? function (e) {
145              return e.outerHeight(!0);
146            }
147          : function (e) {
148              return e.height();
149            }),
150        (arguments.length < 1 || null === n) && (n = 0.1),
151        (arguments.length < 2 || null === e) && (e = !0),
152        o(),
153        a(window).resize(window.correctFirstTop4Parallax),
154        d.bind("scroll", o).resize(o),
155        "complete" !== document.readyState &&
156          window.addEventListener("load", function () {
157            o();
158          });
159    });
160})(jQuery),
161  (function (_) {
162    (window.cover_init = function (y) {
163      _(document).ready(function () {
164        var i = document.body.querySelector("#coverCarry" + y),
165          n = _(i),
166          e = n.attr("data-content-cover-bg"),
167          r = n.attr("data-content-cover-height"),
168          c = n.attr("data-content-cover-parallax"),
169          a = n.attr("data-content-video-url-mp4"),
170          d = n.attr("data-content-video-url-webm"),
171          t = n.attr("data-content-video-url-youtube"),
172          o = n.attr("data-content-video-noloop"),
173          s = n.attr("data-content-video-nomute"),
174          l = n.attr("data-content-bg-base64"),
175          u = n.attr("data-content-video-nocover"),
176          e = e || "",
177          r = r || "",
178          c = c || "",
179          a = a || "",
180          d = d || "",
181          o = o || "",
182          s = s || "";
183        (t = (t = t || "") || ""),
184          (l = l || ""),
185          u && "yes" == u && (t = d = a = ""),
186          !window.isMobile ||
187            ("" == d && "" == a && "" == t) ||
188            n.css("background-image", "url('" + e + "')"),
189          setTimeout(function () {
190            cover_fixcontentheight(y), cover_fixBackgroundFixedStyles(y);
191          }, 500),
192          cover_fixBackgroundFixedNode(y);
193        var h,
194          f,
195          g,
196          v,
197          p,
198          w,
199          m,
200          u = _("#rec" + y).find("img[data-hook-clogo]");
201        u.length &&
202          u.load(function () {
203            setTimeout(function () {
204              cover_fixcontentheight(y), cover_fixBackgroundFixedStyles(y);
205            }, 500);
206          }),
207          window.isMobile &&
208            _(window).on("orientationchange", function () {
209              cover_fixcontentheight(y), cover_fixBackgroundFixedStyles(y);
210            }),
211          ("" === a && "" === d && "" === t) ||
212            (0 == window.isMobile &&
213              ("" != t || ("" == a && "" == d)
214                ? "" != t &&
215                  (n.css("background-color", "#000000"),
216                  n.css("background-image", ""),
217                  n.attr("data-content-cover-bg", ""),
218                  (p = 0),
219                  (w = _(window)).scroll(function () {
220                    v && window.clearTimeout(v),
221                      (v = window.setTimeout(function () {
222                        var e, t, o;
223                        0 < (p = n.find("iframe").length) ||
224                          ((e = n.offset().top),
225                          (t = n.height()),
226                          e - 500 < (o = w.scrollTop()) + w.height() &&
227                            o <= e + t + 500 &&
228                            processYoutubeVideo(i, r));
229                      }, 100));
230                  }),
231                  w.scroll())
232                : (n.css("background-color", "#000000"),
233                  n.css(
234                    "background-image",
235                    "url('https://tilda.ws/img/spinner-white.gif')"
236                  ),
237                  n.css("background-size", "auto"),
238                  n.attr("data-content-cover-bg", ""),
239                  (h = !1),
240                  (h = "" == o),
241                  (f = !0),
242                  (f = "" == s),
243                  (g = ""),
244                  "fixed" == c &&
245                    (-1 < r.indexOf("vh") &&
246                      100 < parseInt(r) &&
247                      (n.css("height", "100vh"), (g = "yes")),
248                    -1 < r.indexOf("px") &&
249                      parseInt(r) > _(window).height() &&
250                      (n.css("height", "100vh"), (g = "yes"))),
251                  (p = ""),
252                  (w = _(window)),
253                  (m = n.parent()),
254                  w.scroll(function () {
255                    var e, t, o;
256                    v && window.clearTimeout(v),
257                      (v = window.setTimeout(function () {
258                        var e, t, o;
259                        0 < p ||
260                          ((e = n.offset().top),
261                          (t = n.height()),
262                          e - 500 < (o = w.scrollTop()) + w.height() &&
263                            o <= e + t + 500 &&
264                            cover_onFuncLoad(n.videoBG, function () {
265                              var e = n.videoBG({
266                                mp4: a,
267                                webm: d,
268                                poster: "",
269                                preload: "none",
270                                autoplay: "true",
271                                loop: h,
272                                volume: 1,
273                                scale: !0,
274                                zIndex: 0,
275                                width: "100%",
276                              });
277                              e.setAttribute("muted", f),
278                                e.setAttribute("playsinline", ""),
279                                videoLoadProcessor.registerNewVideo(e),
280                                (p = 1);
281                            }));
282                      }, 100)),
283                      "fixed" == c &&
284                        "yes" == g &&
285                        ((e = m.offset().top),
286                        (t = m.height()),
287                        (o = w.scrollTop()),
288                        e + t - w.height() <= o
289                          ? (n.css("position", "absolute"),
290                            n.css("bottom", "0px"),
291                            n.css("top", "auto"))
292                          : e <= o
293                          ? (n.css("position", "fixed"), n.css("top", "0px"))
294                          : o < e &&
295                            (n.css("position", "relative"),
296                            n.css("top", "auto")));
297                  }),
298                  w.scroll()))),
299          "dynamic" == c &&
300            0 == window.isMobile &&
301            ((s = n.offset().top - (n.offset().top - _(window).height())),
302            n.height() < _(window).height() && n.height(n.height() + 0.2 * s),
303            n.parallax(0.2, !0)),
304          "yes" == l &&
305            "" != e &&
306            "" == a &&
307            "" == d &&
308            "" == t &&
309            (_("<img/>")
310              .attr("src", e)
311              .load(function () {
312                _(this).remove(),
313                  n.css("background-image", "url('" + e + "')"),
314                  n.css("opacity", "1");
315              }),
316            n.css("background-image", ""),
317            n.css("opacity", "0"),
318            n.css("transition", "opacity 25ms"));
319        t = _("#rec" + y).find(".t-cover__arrow-wrapper");
320        0 < t.length &&
321          t.click(function () {
322            var e = _("#rec" + y).height();
323            0 < e &&
324              _("html, body").animate(
325                { scrollTop: _("#rec" + y).offset().top + e },
326                500
327              );
328          });
329      });
330    }),
331      _(document).ready(function () {
332        "edit" != _(".t-records").attr("data-tilda-mode") &&
333          _(".t-cover__carrier").each(function () {
334            var e = _(this).attr("data-content-cover-id");
335            0 < e && cover_init(e);
336          });
337      });
338  })(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.