Sha256: 53de59a58b23d817e354c7ba3d841f820dfbbb4cd389e9a5f5462d8bff338ec8
Contents?: true
Size: 704 Bytes
Versions: 28
Compression:
Stored size: 704 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) { var parent = document.querySelector('a[name=' + hash[1] + ']').parentElement; parent.classList.add('highlight'); setTimeout(function() { parent.classList.remove('highlight'); }, 1000); } }; $(function() { highlight('#' + location.hash); $('.description pre').each(function() { hljs.highlightBlock(this); }); });
Version data entries
28 entries across 28 versions & 3 rubygems