https://rosknroll.fi/wp-content/themes/RR-theme/includes/block-super-cover/super-cover.js?ver=6.8.10
1/** 2 * Imported through ACF block registration 3 * 4 * @param targets 5 */ 6function superCoverVideos( targets ) { 7 if ( ! targets ) { 8 return false; 9 } 10 const breakPoint = '769'; 11 const supercoverVideos = targets; 12 13 for ( let i = 0, len = supercoverVideos.length; i < len; i++ ) { 14 singleSuperCoverVideo( supercoverVideos[ i ] ); 15 } 16 17 function singleSuperCoverVideo( target ) { 18 let supercoverVideoFile = ''; 19 20 if ( window.innerWidth < breakPoint ) { 21 if ( target.getAttribute( 'data-supercover_video_m' ) ) { 22 supercoverVideoFile = target.getAttribute( 23 'data-supercover_video_m' 24 ); 25 target.setAttribute( 'src', supercoverVideoFile ); 26 27 setTimeout( function () { 28 target.classList.remove( 'is-hidden' ); 29 target.setAttribute( 'autoplay', '' ); 30 target.play(); 31 target 32 .closest( '.va-block-super-cover' ) 33 .querySelector( '.va-block-super-cover-image' ) 34 .classList.add( 'is-hidden' ); 35 }, 2000 ); 36 } 37 } else if ( target.getAttribute( 'data-supercover_video_l' ) ) { 38 supercoverVideoFile = target.getAttribute( 39 'data-supercover_video_l' 40 ); 41 target.setAttribute( 'src', supercoverVideoFile ); 42 43 setTimeout( function () { 44 target.classList.remove( 'is-hidden' ); 45 target.setAttribute( 'autoplay', '' ); 46 target.play(); 47 target 48 .closest( '.va-block-super-cover' ) 49 .querySelector( '.va-block-super-cover-image' ) 50 .classList.add( 'is-hidden' ); 51 }, 2000 ); 52 } 53 } 54} 55 56superCoverVideos( document.querySelectorAll( '.va-block-super-cover-video' ) );
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.