PageSourceSearch

https://www.fhf.fr/themes/custom/fhf_theme/js/paragraph/paragraph.block-map-regions.js?tlv2zt

js fhf.fr collected 2026-09-24 09:25:54 UTC 766 bytes, 26 lines download raw bytes

1(function ($, Drupal, window, document) {
2
3  /**
4   * Carte des régions (HP)
5   */
6  Drupal.behaviors.fhfParagraphMapRegions = {
7    attach: function (context) {
8      var region = $('.paragraph--type--block-map-regions .js-map-regions a');
9
10      region.on('click', function (e) {
11        e.preventDefault();
12        var id = String($(this).data('id'));
13        console.log(id);
14        id = Object.keys(drupalSettings.franceRegions).find(key => drupalSettings.franceRegions[key] === id);
15
16        Drupal.ajax({
17          url: Drupal.url('en-regions/' + id),
18          success: function success(response) {
19            window.location.href = response.url || '#';
20          }
21        }).execute();
22      });
23
24    }
25  };
26})(jQuery, Drupal, window, window.document);

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.