PageSourceSearch

https://stereolux.org/core/themes/claro/js/ajax.js?tl3ix3

js stereolux.org collected 2026-09-24 10:01:24 UTC 1,381 bytes, 45 lines download raw bytes

1/**
2 * @file
3 * Ajax theme overrides for Claro.
4 */
5
6((Drupal) => {
7  /**
8   * Theme override of the ajax progress indicator for full screen.
9   *
10   * @return {string}
11   *   The HTML markup for the throbber.
12   */
13  Drupal.theme.ajaxProgressIndicatorFullscreen = () =>
14    '<div class="ajax-progress ajax-progress--fullscreen"><div class="ajax-progress__throbber ajax-progress__throbber--fullscreen">&nbsp;</div></div>';
15
16  /**
17   * Theme override of the ajax progress indicator.
18   *
19   * @param {string} message
20   *   The message shown on the UI.
21   * @return {string}
22   *   The HTML markup for the throbber.
23   */
24  Drupal.theme.ajaxProgressThrobber = (message) => {
25    // Build markup without adding extra white space since it affects rendering.
26    const messageMarkup =
27      typeof message === 'string'
28        ? Drupal.theme('ajaxProgressMessage', message)
29        : '';
30    const throbber = '<div class="ajax-progress__throbber">&nbsp;</div>';
31
32    return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;
33  };
34
35  /**
36   * Theme override of the ajax progress message.
37   *
38   * @param {string} message
39   *   The message shown on the UI.
40   * @return {string}
41   *   The HTML markup for the throbber.
42   */
43  Drupal.theme.ajaxProgressMessage = (message) =>
44    `<div class="ajax-progress__message">${message}</div>`;
45})(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.