PageSourceSearch

https://nationaltrailraceway.com/themes/contrib/bootstrap_barrio/js/global.js?v=8.9.11

js nationaltrailraceway.com collected 2026-10-02 05:50:47 UTC 797 bytes, 35 lines download raw bytes

1/**
2 * @file
3 * Global utilities.
4 *
5 */
6(function ($, Drupal) {
7
8  'use strict';
9
10  Drupal.behaviors.bootstrap_barrio = {
11    attach: function (context, settings) {
12
13      var position = $(window).scrollTop();
14        $(window).scroll(function () {
15        if ($(this).scrollTop() > 50){
16          $('body').addClass("scrolled");
17        }
18        else{
19          $('body').removeClass("scrolled");
20        }
21        var scroll = $(window).scrollTop();
22        if (scroll > position) {
23          $('body').addClass("scrolldown");
24          $('body').removeClass("scrollup");
25        } else {
26          $('body').addClass("scrollup");
27          $('body').removeClass("scrolldown");
28        }
29        position = scroll;
30      });
31
32    }
33  };
34
35})(jQuery, Drupal);

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.