1(function( $ ) { 2 $( document ).ready( function() { 3 $( '.typed-me' ).each( function() { 4 var options = {}, strings = []; 5 for( var key in this.dataset ) { 6 if( key.substr( 0, 6 ) == "string" ) { 7 var v = this.dataset[ key ].replace( /"/g, '"' ); 8 // Replace & with & otherwise the browser freezes. 9 v = v.replace(/"/g, '"'); 10 v = v.replace('&', '&'); // in case the user already used & 11 v = v.replace('&', '&'); 12 13 strings.push( v ); 14 } else { 15 options[ key ] = parseInt( this.dataset[ key ] ); 16 } 17 } 18 19 options[ 'strings' ] = strings; 20 options[ 'contentType' ] = 'html'; 21 22 $( this ).typed( options ); 23 }); 24 }); 25})(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.