1jQuery(window).on('elementor/frontend/init', function () { 2 elementorFrontend.hooks.addAction('frontend/element_ready/rkit_image_gallery.default', function ($scope, $) { 3 4 // Temukan semua gambar dengan kelas 'gallery_image' 5 const galleryImages = $scope.find('.gallery_image'); 6 7 galleryImages.each(function () { 8 var img = jQuery(this); 9 10 // Jika gambar sudah dimuat, langsung sembunyikan skeleton 11 if (img[0].complete) { 12 const skeleton = img.closest('.brick').find('.skeleton'); 13 if (skeleton.length) { 14 skeleton.hide(); 15 } 16 img.css('opacity', '1'); 17 } else { 18 img.on('load', function () { 19 const skeleton = img.closest('.brick').find('.skeleton'); 20 if (skeleton.length) { 21 skeleton.hide(); 22 } 23 img.css('opacity', '1'); 24 }); 25 } 26 }); 27 28 $scope.find('a[data-elementor-open-lightbox="yes"]').each(function () { 29 jQuery(this).on('click', function () { 30 setTimeout(function () { 31 jQuery('.elementor-lightbox img.elementor-lightbox-image[data-src]').each(function () { 32 const $img = jQuery(this); 33 $img.attr('src', $img.attr('data-src')).removeAttr('data-src'); 34 $img.removeClass('swiper-lazy'); 35 36 const preloader = $img.closest('.swiper-zoom-container').find('.swiper-lazy-preloader'); 37 if (preloader.length) preloader.remove(); 38 }); 39 }, 100); 40 }); 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.