1jQuery(window).on('elementor/frontend/init', function () { 2 elementorFrontend.hooks.addAction('frontend/element_ready/rtm_video_button.default', function ($scope, $) { 3 let $button = $scope.find('#video-button'); 4 5 if (!$button.length) return; 6 7 // Ambil nilai dari data attribute secara langsung 8 let autoplay = $button.attr('data-autoplay') === 'yes'; 9 let muted = $button.attr('data-muted') === 'yes'; 10 let loop = $button.attr('data-loop') === 'yes'; 11 let playerControl = $button.attr('data-player-control') === 'yes'; 12 13 // Inisialisasi GLightbox 14 GLightbox({ 15 selector: '.glightbox', 16 autoplayVideos: autoplay, 17 plyr: { 18 config: { 19 autoplayVideos: autoplay, 20 muted: muted, 21 loop: { active: loop }, 22 controls: playerControl 23 ? ['play', 'progress', 'current-time', 'mute', 'volume', 'fullscreen'] 24 : [], 25 } 26 } 27 }); 28 }); 29});
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.