PageSourceSearch

https://www.jobtwins.work/themes/bootstrap_barrio/js/barrio.js?v=9.5.9

js jobtwins.work collected 2026-10-07 03:18:53 UTC 938 bytes, 40 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      $('.dropdown-item a.dropdown-toggle').on("click", function(e) {
33        $(this).next('ul').toggle();
34        e.stopPropagation();
35        e.preventDefault();
36      });
37    }
38  };
39
40})(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.