PageSourceSearch

https://forum-linguistik.de/modules/contrib/cookies/js/cookiesjsr.conf.js?v=10.6.11

js forum-linguistik.de collected 2026-09-24 10:15:00 UTC 916 bytes, 32 lines download raw bytes

1/**
2 * @file
3 * Defines Javascript behaviors for the cookies module.
4 */
5
6(function (Drupal, drupalSettings) {
7  'use strict';
8
9  document.cookiesjsr = drupalSettings.cookies.cookiesjsr;
10
11  /**
12   * Define defaults.
13   */
14  Drupal.behaviors.cookiesjsr = {
15    attach: function() {
16      document.addEventListener('cookiesjsrCallbackResponse', function (event) {
17        var response = (typeof event.detail.response === 'object') ? event.detail.response : {};
18        const messages = new Drupal.Message();
19        messages.clear();
20        for (var module in response) {
21          var obj = response[module];
22          for (var i = 0, arr = ['status', 'warning', 'error']; i < arr.length; i++) {
23            var type = arr[i];
24            if (typeof obj[type] !== 'undefined') {
25              messages.add(obj[type], {type: type});
26            }
27          }
28        }
29      });
30    }
31  }
32})(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.