1 2(function ($) { 3// (function ($, Drupal) { 4// $(document).ready(function () { 5 setTimeout(function () { 6 $(".slider").each(function () { 7 if ($(this).length > 0) { 8 var id = $(this).attr("id"); 9 console.log("ID trouvé:", id); // Debugging 10 if (id && drupalSettings[id]) { 11 var config = drupalSettings[id]; 12 // If appendDots is a selector string, resolve it to a jQuery object 13 if (config.appendDots && typeof config.appendDots === 'string') { 14 config.appendDots = $(config.appendDots); 15 } 16 //console.log("Configuration trouvée pour:", id, drupalSettings[id]); // Debugging 17 $(this).not('.slick-initialized').slick(drupalSettings[id]); 18 const $prev = $(this).find('.slick-prev'); 19 const $next = $(this).find('.slick-next'); 20 21 // Créer le groupe et y déplacer les boutons 22 const $group = $('<div class="arrow-groupe"><div class="container-1316"><div class="white-section text-right"></div></div></div>'); 23 $prev.after($group); 24 // $group.append($prev).append($next); 25 $group.find('.white-section').append($prev).append($next); 26 } else { 27 console.warn("Aucune configuration Slick trouvée pour:", id); 28 } 29 } 30 31 }); 32 }, 500); 33})(jQuery); 34 // }); 35// })(jQuery, Drupal); 36 37
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.