PageSourceSearch

https://www.cbnews.fr/sites/cbnews.fr/themes/cbn1/library/components/data-layer/data-layer-node-view.js?v=1.1

js cbnews.fr collected 2026-09-24 08:45:30 UTC 657 bytes, 23 lines download raw bytes

1/**
2 * @file
3 * Handles dataLayer push events for article views.
4 */
5(function ($, Drupal, drupalSettings, once) {
6  'use strict';
7
8  Drupal.behaviors.dataLayerNodeView = {
9    attach: function (context, settings) {
10      once('dataLayerNodeView', 'body', context).forEach(function (element) {
11        // Check if we have dataLayer data to push.
12        if (drupalSettings.dataLayerNodeView) {
13          // Make sure dataLayer exists.
14          window.dataLayer = window.dataLayer || [];
15
16          // Push the data.
17          window.dataLayer.push(drupalSettings.dataLayerNodeView);
18        }
19      });
20    }
21  };
22
23})(jQuery, Drupal, drupalSettings, once);

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.