consul/consul

View on GitHub
app/assets/javascripts/social_share.js

Summary

Maintainability
A
0 mins
Test Coverage
(function() {
  "use strict";
  App.SocialShare = {
    initialize: function() {
      $(".social-share-button a").each(function() {
        $(this).append("<span class='show-for-sr'>" + ($(this).data("site").replace(/_app$/, "")) + "</span>");
      });
    },
    destroy: function() {
      $(".social-share-button a .show-for-sr").remove();
    }
  };
}).call(this);