PageSourceSearch

https://sciensano.be/themes/custom/sciensano/js/header.js?tlr7ly

js sciensano.be collected 2026-10-09 21:57:49 UTC 1,545 bytes, 48 lines download raw bytes

1(function($, Drupal, drupalSettings) {
2    Drupal.behaviors.header = {
3        attach: function(context, settings) {
4            const topicsLink = $('#block-sciensano-mainnavigation', context).find('a[data-drupal-link-system-path="search"]');
5
6            if (topicsLink.length > 0) {
7                const link = topicsLink.attr('href');
8                topicsLink.parent().addClass('topics-publications-link');
9                topicsLink.parent().hide();
10                $('#header-topics-icon', context).attr('href', link);
11                $('#header-topics-icon', context).show();
12            } else {
13                $('#header-topics-icon', context).hide();
14            }
15
16            $(window).on('scroll', () => {
17                if (window.scrollY > 0) {
18                    $('#block-sciensano-mainnavigation').addClass('scrolling');
19                } else {
20                    $('#block-sciensano-mainnavigation').removeClass('scrolling');
21                }
22            });
23
24           
25        }
26    };
27})(jQuery, Drupal, drupalSettings);
28
29(function (Drupal, once, $) {
30  
31  Drupal.behaviors.burgerButton = {
32    attach: () => {
33      
34
35      const burgerButtons = once(
36        'header-burger',
37        '#header-burger'
38      );
39     burgerButtons.forEach((burgerButton) => {
40        $(burgerButton).on('click', (event) => { 
41            event.preventDefault();
42            event.stopPropagation();
43            $('#block-sciensano-mainnavigation').toggleClass('active');
44        });
45      });
46    },
47  };
48})(Drupal, once, 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.