PageSourceSearch

https://causses-gorgesaveyron.com/wp-content/themes/winwood/assets/js/frontend/sticky-header.js?ver=1.7.8

js causses-gorgesaveyron.com collected 2026-10-10 00:44:43 UTC 1,268 bytes, 38 lines download raw bytes

1(function ($) {
2    'use strict';
3    $(function () {
4        var $header = $('.site-header'),
5            $header_sticky = $('.header-sticky');
6        var headerHeight = $header.height();
7
8        window.addEventListener('wheel', function (event) {
9            if ($(window).scrollTop() > headerHeight + 100) {
10                $header.addClass('header-sticky');
11            } else {
12                $header.removeClass('header-sticky');
13            }
14
15            if ($(window).scrollTop() > headerHeight + 150) {
16                $header.addClass('header-sticky-transition');
17            } else {
18                $header.removeClass('header-sticky-transition');
19            }
20            if (event.deltaY < 0) {
21
22                if ($(window).scrollTop() > headerHeight + 150) {
23                    $header.addClass('active');
24                } else {
25                    $header.removeClass('active');
26                }
27
28            } else if (event.deltaY > 0) {
29
30                $header.removeClass('active');
31
32                if ($(window).scrollTop() + $(window).height() >= $(document).height() - 50 && $(window).scrollTop() > headerHeight + 150) {
33                    $header.addClass('active');
34                }
35            }
36        });
37    });
38})(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.