Sha256: 15278f7c708c55ba28e97a5f41d5bdbda7e6609bb86ddddaef8b049f723f77ab
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
function toggleSource(id) { var src = $('#' + id).toggle(); var isVisible = src.is(':visible'); $('#l_' + id).html(isVisible ? 'hide' : 'show'); if (!src.data('syntax-higlighted')) { src.data('syntax-higlighted', 1); hljs.highlightBlock(src[0]); } } window.highlight = function(url) { var hash = url.match(/#([^#]+)$/); if (hash) { $('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow'); } }; $(function() { highlight('#' + location.hash); $('.description pre').each(function() { hljs.highlightBlock(this); }); });
Version data entries
5 entries across 5 versions & 1 rubygems