Sha256: ad8acdc3883f00f0027695057275331df2b1842b6b72ea70c2950549ef65f1c3
Contents?: true
Size: 566 Bytes
Versions: 33
Compression:
Stored size: 566 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
33 entries across 33 versions & 9 rubygems