1! function( $ ) { 2 "use strict"; 3 4 Codevz_Plus.inline_video = function( wpb ) { 5 6 // Reinit lightGallery in page builder. 7 wpb && Codevz_Plus.lightGallery( $( '.cz_video_popup' ) ); 8 9 // Inline video. 10 $( '.cz_video_inline' ).codevzPlus( 'video', function( x ) { 11 12 x.find( 'a' ).on( 'click', function( e ) { 13 14 if ( ! x.find( 'iframe' ).length ) { 15 16 var url = $( this ).attr( 'href' ), 17 src = url.substr( url.indexOf( "=" ) + 1 ), 18 src = url.indexOf( "youtube" ) > 0 ? 'https://youtube-nocookie.com/embed/' + src + '?autoplay=1&rel=0&showinfo=0&mute=1' : 'https://player.vimeo.com/video/' + url.match( /\d+/ ) + '?autoplay=1', 19 src = url.indexOf( "youtube" ) > 0 || url.indexOf( "vimeo" ) > 0 ? src : url, 20 iframe = '<iframe src="' + src + '" allowfullscreen></iframe>'; 21 22 $( this ).fadeOut( 'fast' ).css( 'position','absolute' ); 23 24 x.append( iframe ).find( 'iframe' ).css( 25 { 26 'position': 'relative', 27 'width': '100%', 28 'height': x.find( 'img' ).height() 29 } 30 ); 31 32 } 33 34 if ( ! $( this ).parent().find('.close_inline_video').length ) { 35 36 x.append('<i class="fa fa-remove close_inline_video"></i>'); 37 38 $( '.close_inline_video' ).on('click', function( e ) { 39 $( this ).parent().find('iframe').detach(); 40 $( this ).parent().find('a').fadeIn( 'fast' ).css('position','relative'); 41 $( this ).detach(); 42 }); 43 44 } 45 46 e.preventDefault(); 47 48 }); 49 50 }); 51 52 }; 53 54 Codevz_Plus.inline_video(); 55 56}( jQuery );
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.