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.