1! function( $ ) { 2 "use strict"; 3 4 Codevz_Plus.title = function() { 5 6 // Fancy title animation. 7 $( '[class*="codevz-fancy-"]' ).not( 'codevz-fancy-done' ).each( function() { 8 9 var $this = $( this ), 10 speed = parseFloat( $this.attr( 'data-fancy-speed' ) ) || 500, 11 delay = parseFloat( $this.attr( 'data-fancy-delay' ) ) || 0, 12 strings = $this.find( '.cz_wpe_content > *' ), 13 isWords = $this.hasClass( 'codevz-fancy-words' ), 14 isLetters = $this.hasClass( 'codevz-fancy-letters' ), 15 words; 16 17 $this.addClass( 'codevz-fancy-done' ); 18 19 strings.each( function() { 20 21 var $this = $( this ); 22 23 if ( isWords ) { 24 words = $this.text().split( ' ' ); 25 26 } else if ( isLetters ) { 27 words = $this.text().split( '' ); 28 29 } else { 30 words = [ $this.text() ]; 31 } 32 33 $this.empty().html( function() { 34 35 for (var i = 0; i < words.length; i++) { 36 37 $( this ).append( ( i == 0 ? '' : ' ' ) + '<span>' + words[i] + '</span>'); 38 39 } 40 41 }); 42 43 }); 44 45 strings.find( '> span' ).each( function( i ) { 46 47 var $this = $( this ); 48 49 setTimeout( function() { 50 51 $this.attr( 'data-speed', speed ).addClass( 'codevz-start-fancy' ); 52 53 }, delay ); 54 55 delay += speed; 56 57 }); 58 59 }); 60 61 }; 62 63 Codevz_Plus.title(); 64 65}( 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.