PageSourceSearch

https://departement974.fr/core/misc/details-summarized-content.js?v=9.4.8

js departement974.fr collected 2026-10-01 12:14:55 UTC 1,518 bytes, 43 lines download raw bytes

1/**
2* DO NOT EDIT THIS FILE.
3* See the following change record for more information,
4* https://www.drupal.org/node/2815083
5* @preserve
6**/
7
8(function ($, Drupal) {
9  function DetailsSummarizedContent(node) {
10    this.$node = $(node);
11    this.setupSummary();
12  }
13
14  $.extend(DetailsSummarizedContent, {
15    instances: []
16  });
17  $.extend(DetailsSummarizedContent.prototype, {
18    setupSummary: function setupSummary() {
19      this.$detailsSummarizedContentWrapper = $(Drupal.theme('detailsSummarizedContentWrapper'));
20      this.$node.on('summaryUpdated', $.proxy(this.onSummaryUpdated, this)).trigger('summaryUpdated').find('> summary').append(this.$detailsSummarizedContentWrapper);
21    },
22    onSummaryUpdated: function onSummaryUpdated() {
23      var text = this.$node.drupalGetSummary();
24      this.$detailsSummarizedContentWrapper.html(Drupal.theme('detailsSummarizedContentText', text));
25    }
26  });
27  Drupal.behaviors.detailsSummary = {
28    attach: function attach(context) {
29      DetailsSummarizedContent.instances = DetailsSummarizedContent.instances.concat(once('details', 'details', context).map(function (details) {
30        return new DetailsSummarizedContent(details);
31      }));
32    }
33  };
34  Drupal.DetailsSummarizedContent = DetailsSummarizedContent;
35
36  Drupal.theme.detailsSummarizedContentWrapper = function () {
37    return "<span class=\"summary\"></span>";
38  };
39
40  Drupal.theme.detailsSummarizedContentText = function (text) {
41    return text ? " (".concat(text, ")") : '';
42  };
43})(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.