PageSourceSearch

https://kommunal.de/modules/custom/kommunal_blocks/js/infobox.js?v=1.x

js kommunal.de collected 2026-09-24 20:30:18 UTC 1,365 bytes, 37 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2
3    Drupal.behaviors.infoboxBehavior = {
4        attach: function attach(context) {
5            if ($.cookie('infobox_block_state') == 'hidden') {
6                // no need to show anything
7                return;
8            }
9
10            var content = '<div class="tooltip-text">' + drupalSettings.kommunal_infobox.content + '</div>';
11            content = '<div class="close-button"><i class="fa fa-times">&nbsp;</i></div>' + content;
12
13            var menuLink = '';
14            if ($(window).width() >= 768) {
15                // point on the menu item
16                menuLink = $('#block-kommunal-at-main-menu').find('ul.nav li.abo');
17            } else {
18                // point on the menu toggle button
19                menuLink = $('header nav.mobile-only-menu li.abo');
20            }
21
22            menuLink.once('infobox-processed').tooltip({
23                html: true,
24                placement: 'bottom',
25                trigger: 'manual',
26                title: content,
27                sanitize: false
28            }).tooltip('show');
29
30            $('div.tooltip div.close-button i').click(function () {
31                $(this).parents('div.tooltip').tooltip('hide');
32                $.cookie('infobox_block_state', 'hidden', {path: '/'});
33            });
34        }
35    }
36
37})(jQuery, Drupal, drupalSettings);

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.