PageSourceSearch

https://sanangelolive.com/themes/custom/em/assets/js/sticky-header.js?tlkjdk

js sanangelolive.com collected 2026-10-01 10:31:33 UTC 834 bytes, 28 lines download raw bytes

1/**
2 * @file
3 * Sticky Header
4 */
5(function ($) {
6  'use strict';
7
8  var wrapper = $('.js-page-header');
9  var stickyElement = wrapper.find('.js-sticky-header-element');
10  var stickyElementHeight = stickyElement.offset().top;
11  $(window).on('load scroll', function (evt) {
12    var adminToolbar = $('#toolbar-bar');
13    var parentWrapper = $('<div></div>').css('height', stickyElement.outerHeight()); // Wrap the sticky element with a placeholder element.
14
15    $(once('sticky-header-wrap', stickyElement.toArray())).wrap(parentWrapper);
16
17    if ($(this).scrollTop() >= stickyElementHeight) {
18      stickyElement.addClass('header-stuck');
19
20      if (adminToolbar.length !== 0) {
21        stickyElement.css('top', adminToolbar.outerHeight());
22      }
23    } else {
24      stickyElement.removeClass('header-stuck');
25    }
26  });
27})(jQuery);
28

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.