PageSourceSearch

https://tf1pro.com/themes/custom/tf1pro_theme/js/masthead.js?tm9rs4

js tf1pro.com collected 2026-10-02 08:02:25 UTC 1,087 bytes, 39 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2  Drupal.behaviors.tf1Masthead = {
3    attach: function (context, settings) {
4      const mast = once(
5        "tf1Masthead",
6        '.view-masthead .slick [data-slick-index="0"]',
7        context
8      );
9      $(mast).each(function () {
10        $(arguments[1]).addClass("animation");
11      });
12      const mastBefore = once(
13        "tf1MastheadBefore",
14        ".view-masthead .slick",
15        context
16      );
17      $(mastBefore).on(
18        "beforeChange",
19        function (slick, currentSlide, nextSlide) {
20          $(
21            '.view-masthead [data-slick-index="' + nextSlide + '"]'
22          ).removeClass("animation");
23        }
24      );
25      const mastAfter = once(
26        "tf1MastheadAfter",
27        ".view-masthead .slick",
28        context
29      );
30      $(mastAfter).on("afterChange", function (slick, currentSlide) {
31        $(
32          '.view-masthead [data-slick-index="' +
33            currentSlide.currentSlide +
34            '"]'
35        ).addClass("animation");
36      });
37    },
38  };
39})(jQuery, Drupal, drupalSettings);

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.