PageSourceSearch

https://ideasquare.cern/modules/custom/cern-dev-status/js/cern_dev_status_expand.js?v=3.1.2

js ideasquare.cern collected 2026-10-02 07:19:08 UTC 1,401 bytes, 38 lines download raw bytes

1var triggeredCernDevStatusCookie = false;
2/**
3 * @file
4 * Contains the definition of the behaviour cernDevStatusExpand.
5 */
6
7(function ($, Drupal) {
8    'use strict';
9    /**
10     * Attaches the CERN Dev Status behavior .
11     */
12    Drupal.behaviors.cernDevStatusExpand = {
13        attach: function (context, settings) {
14            $('body', context).addClass('dev-status-ui');
15            $('#dev-status-message', context).addClass('open').removeClass('js-disabled');
16            $(once('once', '#dev-status-action', context)).on('click', function () {
17                $('#dev-status-message-content', context).slideToggle(50);
18                $('#dev-status-message', context).toggleClass('open closed');
19                if ($('#dev-status-message', context).hasClass('closed')) {
20                    Cookies.get('cern-dev-status-closed', 'true', {
21                        path: '/'
22                    });
23                } else {
24                    Cookies.get('cern-dev-status-closed', 'false', {
25                        path: '/'
26                    });
27                }
28            });
29
30            if (!triggeredCernDevStatusCookie) {
31                triggeredCernDevStatusCookie = true;
32                if (Cookies.get('cern-dev-status-closed') == 'true') {
33                    $('#dev-status-action').trigger('click');
34                }
35            }
36        }
37    };
38})(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.