Sha256: 72da18e1a6c3d78ce6aeaa73c14467199864022d93d4bae87882423c011818a6
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
(function($, ns) { $(document).on('show-code:present', function(event) { var self = $(event.target); var codeLink = $(".js-code-link", self); var designLink = $(".js-design-link", self); var codeSection = $(".js-code-section", self); var designSection = $(".js-design-section", self); $(".js-pattern-view-modes a", self).click(function(event){ event.preventDefault(); }); $(".js-code-link", self).click(function(event){ event.preventDefault(); codeSection.show(); designSection.hide(); codeLink.addClass("uf-bc-gray"); designLink.removeClass("uf-bc-gray"); }); $(".js-design-link", self).click(function(event){ event.preventDefault(); codeSection.hide(); designSection.show(); codeLink.removeClass("uf-bc-gray"); designLink.addClass("uf-bc-gray"); }); }); })(jQuery);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
undercase-0.2.57 | app/assets/javascripts/undercase/show_code.js |
undercase-0.2.29 | app/assets/javascripts/undercase/show_code.js |