1WPGroHo = jQuery.extend( { 2 my_hash: '', 3 data: {}, 4 renderers: {}, 5 syncProfileData: function( hash, id ) { 6 if ( !WPGroHo.data[hash] ) { 7 WPGroHo.data[hash] = {}; 8 a = jQuery( 'div.grofile-hash-map-' + hash + ' span' ).each( function() { 9 WPGroHo.data[hash][this.className] = jQuery( this ).text(); 10 } ); 11 } 12 13 WPGroHo.appendProfileData( WPGroHo.data[hash], hash, id ); 14 }, 15 appendProfileData: function( data, hash, id ) { 16 for ( var key in data ) { 17 if ( jQuery.isFunction( WPGroHo.renderers[key] ) ) { 18 return WPGroHo.renderers[key]( data[key], hash, id, key ); 19 } 20 21 jQuery( '#' + id ).find( 'h4' ).after( jQuery( '<p class="grav-extra ' + key + '" />' ).html( data[key] ) ); 22 } 23 } 24}, WPGroHo ); 25 26jQuery( document ).ready( function( $ ) { 27 Gravatar.profile_cb = function( h, d ) { 28 WPGroHo.syncProfileData( h, d ); 29 }; 30 31 Gravatar.my_hash = WPGroHo.my_hash; 32 Gravatar.init( 'body', '#wpadminbar' ); 33} );
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.