PageSourceSearch

https://insiderone.com/wp-content/themes/insiderone/assets/js/footer.js?ver=1790910409

js insiderone.com collected 2026-10-02 04:17:24 UTC 4,137 bytes, 147 lines download raw bytes

1$(document).ready(function() {
2$(".footer-end-links a:last-child").attr("class","wt-cli-manage-consent-link");
3});
4
5(function ($) {
6  // AutoHeight animate function
7  function autoHeightAnimate(element, time) {
8    const curHeight = element.height();
9    const autoHeight = element.css("height", "auto").height();
10    element.height(curHeight);
11    element.stop().animate({ height: autoHeight }, time);
12  }
13
14  function Footer() {
15    function toggleBody($body) {
16      if ($body.hasClass("show")) {
17        $body.removeClass("show");
18        $body.stop().animate({ height: 0 }, 300);
19      } else {
20        $body.addClass("show");
21        autoHeightAnimate($body, 300);
22
23        const $footerLinks = $body.closest(".footer-links");
24        $("html, body").animate(
25          { scrollTop: $footerLinks.offset().top - 100 },
26          400
27        );
28      }
29    }
30
31    function bindFooterAccordions() {
32      $(".footer-links-col").off("click.footer");
33      $(".footer-links-row").off("click.footer");
34
35      if (window.innerWidth < 1024) {
36        // col
37        $(".footer-links-col").on(
38          "click.footer",
39          ".footer-links-col-item",
40          function () {
41            const $clickedItem = $(this);
42            const $itemBody = $clickedItem.find(".footer-links-col-item-body");
43
44            $(".footer-links-col-item-body")
45              .not($itemBody)
46              .removeClass("show")
47              .stop()
48              .animate({ height: 0 }, 300);
49            $(".footer-links-row-item-body")
50              .removeClass("show")
51              .stop()
52              .animate({ height: 0 }, 300);
53
54            toggleBody($itemBody);
55          }
56        );
57
58        // row
59        $(".footer-links-row").on(
60          "click.footer",
61          ".footer-links-row-item",
62          function () {
63            const $clickedItem = $(this);
64            const $itemBody = $clickedItem.find(".footer-links-row-item-body");
65
66            $(".footer-links-row-item-body")
67              .not($itemBody)
68              .removeClass("show")
69              .stop()
70              .animate({ height: 0 }, 300);
71            $(".footer-links-col-item-body")
72              .removeClass("show")
73              .stop()
74              .animate({ height: 0 }, 300);
75
76            toggleBody($itemBody);
77          }
78        );
79      } else {
80        $(".footer-links-col-item-body, .footer-links-row-item-body")
81          .removeClass("show")
82          .css("height", "");
83      }
84    }
85
86    bindFooterAccordions();
87    $(window).on("resize", function () {
88      bindFooterAccordions();
89    });
90
91    // select2
92    if ($.fn.select2) $(".footer form fieldset select").select2({
93      width: "100%",
94      minimumResultsForSearch: Infinity,
95      dropdownCssClass: "footer-newsletter-select2-dropdown",
96    });
97
98    // footer-short
99    if ($(".footer").has(".footer-short")) {
100      $(".footer-short .col-lg-7")
101        .addClass("col-lg-8 offset-lg-2")
102        .removeClass("col-lg-7");
103    }
104
105    $(".footer .footer-links a").each(function () {
106      $(this).attr("data-text", $(this).text());
107    });
108  }
109
110  Footer();
111
112})(jQuery);
113function CheckObjectVisibility() {
114  $(
115    ".fadeInUp-scroll:not(.visible), .scale-scroll:not(.visible) , .opacity-scroll:not(.visible)"
116  ).each(function (i) {
117    const objectTop = $(this).offset().top;
118    const windowBottom = $(window).scrollTop() + $(window).outerHeight();
119    const instance = $(this);
120    const delay = instance.data("delay") || 0;
121
122    if (windowBottom > objectTop - 50) {
123      window.setTimeout(function () {
124        instance.addClass("visible");
125      }, delay);
126    }
127  });
128}
129
130function ImageAnimation() {
131  $(".image-animation:not(.visible)").each(function (i) {
132    const objectTop = $(this).offset().top;
133    const windowBottom = $(window).scrollTop() + $(window).outerHeight();
134    const instance = $(this);
135    const delay = instance.data("delay") || 0;
136
137    if (windowBottom > objectTop - 100) {
138      window.setTimeout(function () {
139        instance.addClass("animate");
140      }, delay);
141    }
142  });
143}
144function Animations() {
145  CheckObjectVisibility();
146  ImageAnimation();
147}

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.