Sha256: cbbe6e809a506709ddb1b37a2de8a28add0bc116deb39259f60fc01fac57a58a

Contents?: true

Size: 560 Bytes

Versions: 11

Compression:

Stored size: 560 Bytes

Contents

//= require md5
var Heroku = Heroku || {};

$(document).on("ready page:load", function() {
  var $avatars,
      defaultAvatarURL,
      email,
      gravatarURL;

  email            = $.trim($('.glostick__account-details__email').text());
  $avatars         = $('.js-glostick-avatar');
  defaultAvatarURL = 'https://www.herokucdn.com/images/ninja-avatar-48x48.png';
  gravatarURL      = "https://gravatar.com/avatar/" + (MD5(email)) + "?s=48&d=" + defaultAvatarURL;

  return $avatars.each(function(i, e) {
    return $(e).attr('src', gravatarURL);
  });
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bookends-2.8.0 lib/bookends/templates/js/header-turbolinks.js
bookends-2.7.0 lib/bookends/templates/js/header-turbolinks.js
bookends-2.6.0 lib/bookends/templates/js/header-turbolinks.js
bookends-2.5.2 lib/bookends/templates/js/header-turbolinks.js
bookends-2.5.1 lib/bookends/templates/js/header-turbolinks.js
bookends-2.5.0 lib/bookends/templates/js/header-turbolinks.js
bookends-2.4.4 lib/bookends/templates/js/header-turbolinks.js
bookends-2.4.3 lib/bookends/templates/js/header-turbolinks.js
bookends-2.4.2 lib/bookends/templates/js/header-turbolinks.js
bookends-2.4.1 lib/bookends/templates/js/header-turbolinks.js
bookends-2.4.0 lib/bookends/templates/js/header-turbolinks.js