PageSourceSearch

https://www.cbnews.fr/sites/cbnews.fr/themes/cbn1/library/components/recherche/recherche.js?tkoa95

js cbnews.fr collected 2026-10-01 10:12:43 UTC 737 bytes, 33 lines download raw bytes

1(function (Drupal) {
2
3  var recherche = new Recherche();
4
5  function Recherche () {
6    this.initialized = false;
7  }
8
9  Recherche.prototype.init = function () {
10    var that = this;
11    if (document.getElementById('recherche-block')) {
12      document.addEventListener('click', function (event) {
13        if (event.target.matches('.header_recherche, .header_recherche *')) {
14          that.openerEvent();
15        }
16      }, false);
17      that.initialized = true;
18    }
19  };
20
21  Recherche.prototype.openerEvent = function () {
22    document.body.classList.toggle('recherche-open');
23  };
24
25  Drupal.behaviors.recherche = {
26    attach: function() {
27      if (!recherche.initialized) {
28        recherche.init();
29      }
30    }
31  };
32
33})(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.