PageSourceSearch

https://www.kaunergrat.at/_assets/4b8447fc5027c18462f92e16ee881224/Js/inviewObserver.js?1790861982

js kaunergrat.at collected 2026-10-02 12:15:23 UTC 1,259 bytes, 39 lines download raw bytes

1(function ($) {
2  $(document).ready(function () {
3    if (
4      !("IntersectionObserver" in window) ||
5      !("IntersectionObserverEntry" in window) ||
6      !("intersectionRatio" in window.IntersectionObserverEntry.prototype)
7    ) {
8      $("body").addClass("bh-js-inview--not-supported");
9      $(".bh-js-inview").attr("data-bh-inview", "true");
10    } else {
11      var observer = new IntersectionObserver(
12        function (items) {
13          for (var i = 0; i < items.length; i++) {
14            var item = items[i];
15            if (item.isIntersecting) {
16              $(item.target).trigger("bh-inview");
17              if ($(item.target).attr("data-bh-inview") != "true") {
18                $(item.target).trigger("bh-inview-once");
19              }
20              $(item.target).attr("data-bh-inview", "true");
21            }
22          }
23        },
24        {
25          rootMargin: "0px 0px -2% 0px",
26        },
27      );
28      var init = function () {
29        $(".bh-js-inview:not([data-bh-inview])").each(function (e) {
30          $(this).attr("data-bh-inview", "");
31          observer.observe(this);
32        });
33      };
34      Bh.plugins.callbackStack.fadeIn = init;
35      Bh.plugins.intersectionObserver = observer;
36      init();
37    }
38  });
39})(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.