1const lightbox = GLightbox({ 2 selector: '.glightbox' 3}); 4 5const setCopyrightColorInGlightbox = function () { 6 const lightboxSlides = document.querySelectorAll('.gslide-inner-content'); 7 lightboxSlides.forEach(function (slide) { 8 const img = slide.querySelector('img'); 9 if (img) { 10 try { 11 const altText = img.getAttribute('alt'); 12 if (altText === 'ekd-copy-black') { 13 slide.classList.add('slide-copy-black'); 14 } 15 } catch (e) { 16 } 17 } 18 }); 19}; 20 21lightbox.on('open', () => { 22 setCopyrightColorInGlightbox(); 23}); 24lightbox.on('slide_changed', () => { 25 setCopyrightColorInGlightbox(); 26}); 27 28for (let i = 1; i < 10; i++) { 29 GLightbox({ 30 selector: '.glightbox' + i 31 }); 32} 33 34const thankyouLightboxes = document.querySelectorAll('[class*="glightbox-thankyou-"]'); 35for (let i = 0; i < thankyouLightboxes.length; i++) { 36 const classList = thankyouLightboxes[i].classList; 37 for (let j = 0; j < classList.length; j++) { 38 if (classList[j].includes('glightbox-thankyou-')) { 39 GLightbox({ 40 selector: '.' + classList[j] 41 }); 42 } 43 } 44}
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.