PageSourceSearch

https://lerocherdepalmer.fr/modules/supersoniks/ssks_widget_horaires/js/ssks-widget-horaires.js?tlxrdq

js lerocherdepalmer.fr collected 2026-09-26 00:29:08 UTC 1,466 bytes, 39 lines download raw bytes

1(function ($) {
2  "use strict";
3
4  Drupal.behaviors.ssks_widget_horaires_front = {
5    attach: function (context) {
6      let lang = $("html").attr("lang");
7      $(once('check-horaires', '.widget-horaires-loading', context))
8        .each((index, el) => {
9          let widget = $(el);
10          let lang_prefix = lang && lang !== "fr" ? "/" + lang : "";
11          let wid = widget.attr("data-wid");
12          let template = widget.attr("data-template");
13          let url = lang_prefix + "/widget-horaires/get-content/" + wid;
14          if (template)
15            url += "/" + template;
16          $.ajax(url)
17            .done((data) => {
18              widget.attr("aria-busy", "false");
19              widget.removeClass("widget-horaires-loading");
20              if (data.content) {
21                widget.html(data.content);
22                // Triggering the attach callback for the new content
23                Drupal.attachBehaviors(widget[0], drupalSettings);
24              }
25            })
26            .fail(() => {
27              widget.attr("aria-busy", "false");
28              widget.attr("aria-label", Drupal.t("Error loading widget horaires."));
29              widget.html(Drupal.t("Error loading widget horaires."));
30              widget.removeClass("widget-horaires-loading");
31
32              console.error(
33                "Une erreur est survenu lors du chargement du widget horaires."
34              );
35            });
36        });
37    },
38  };
39})(jQuery);

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.