1// Get all elements with the class slick-slide-header 2var slideHeaders = document.querySelectorAll('.bootstrap-carousel-header'); 3 4// Loop through each slick-slide-header element 5slideHeaders.forEach(function(header, index) { 6 // Find the parent h3 element 7 var parentH3 = header.closest('h3'); 8 9 // Generate a unique ID for each header 10 var headerId = 'news-slide-header-' + index; 11 12 // Add the generated ID to the parent h3 element 13 parentH3.setAttribute('id', headerId); 14 15 // Find the corresponding link with aria-labelledby attribute 16 var ariaLabelledByLink = header.parentElement.parentElement.querySelector('.bootstrap-carousel-links a'); 17 18 // Update the aria-labelledby attribute to reference the generated ID 19 ariaLabelledByLink.setAttribute('aria-labelledby', headerId); 20});
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.