// Generated by CoffeeScript 1.9.3
(function() {
  $(function() {
    var hashTabs;
    hashTabs = function() {
      return {
        _element: "",
        element: function(element) {
          return this._element = element;
        },
        updateTab: function(updateHash) {
          if (updateHash == null) {
            updateHash = true;
          }
          this.updateTabLink();
          this.updateTabContainer();
          if (updateHash) {
            return this.updateURLHash();
          }
        },
        updateTabLink: function() {
          return this._element.parent().addClass('is-active').siblings('.is-active').removeClass('is-active');
        },
        updateTabContainer: function() {
          var dataTab;
          dataTab = this._element.data('tab');
          return $("[data-content='" + dataTab + "']").addClass('is-active').show().siblings().removeClass('is-active').hide();
        },
        updateURLHash: function() {
          return window.location.hash = this._element.data('tab');
        }
      };
    };
    if ($('[data-tab]').length) {
      $(window).on('load', function() {
        var hash, tabs, updateHash;
        if (window.location.hash !== "") {
          hash = window.location.hash.replace("#", "");
          tabs = new hashTabs();
          tabs.element($("[data-tab='" + hash + "']"));
          return tabs.updateTab();
        } else {
          tabs = new hashTabs();
          tabs.element($("[data-tab]").first());
          return tabs.updateTab(updateHash = false);
        }
      });
      $(window).on('hashchange', function() {
        var hash, tabs;
        hash = window.location.hash.replace("#", "");
        tabs = new hashTabs();
        tabs.element($("[data-tab='" + hash + "']"));
        return tabs.updateTab();
      });
      return $('[data-tab]').on('click', function(e) {
        var tabs;
        tabs = new hashTabs();
        tabs.element($(this));
        tabs.updateTab();
        return e.preventDefault();
      });
    }
  });

}).call(this);

// Generated by CoffeeScript 1.9.3
(function() {
  $(function() {
    var hashTabs;
    hashTabs = function() {
      return {
        _element: "",
        element: function(element) {
          return this._element = element;
        },
        updateTab: function(updateHash) {
          if (updateHash == null) {
            updateHash = true;
          }
          this.updateTabLink();
          this.updateTabContainer();
          $('body').scrollTop(0);
          if (updateHash) {
            return this.updateURLHash();
          }
        },
        updateTabLink: function() {
          return this._element.parent().addClass('is-active').siblings('.is-active').removeClass('is-active');
        },
        updateTabContainer: function() {
          var dataTab;
          dataTab = this._element.data('tab');
          return $("[data-content='" + dataTab + "']").addClass('is-active').show().siblings().removeClass('is-active').hide();
        },
        updateURLHash: function() {
          return window.location.hash = this._element.data('tab');
        }
      };
    };
    if ($('[data-tab]').length) {
      $(window).on('load', function() {
        var hash, tabs, updateHash;
        if (window.location.hash !== "") {
          hash = window.location.hash.replace("#", "");
          tabs = new hashTabs();
          tabs.element($("[data-tab='" + hash + "']"));
          return tabs.updateTab();
        } else {
          tabs = new hashTabs();
          tabs.element($("[data-tab]").first());
          return tabs.updateTab(updateHash = false);
        }
      });
      $(window).on('hashchange', function() {
        var hash, tabs;
        hash = window.location.hash.replace("#", "");
        tabs = new hashTabs();
        tabs.element($("[data-tab='" + hash + "']"));
        return tabs.updateTab();
      });
      return $('[data-tab]').on('click', function(e) {
        var tabs;
        tabs = new hashTabs();
        tabs.element($(this));
        tabs.updateTab();
        return e.preventDefault();
      });
    }
  });

}).call(this);

Update dist file