Sha256: a3860cb886fbafed3db27f7aec267ed8457fc819d39b10fbbd59f579233c3a34

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

function toggleSource(id) {
  var src = $('#' + id).toggle();
  var isVisible = src.is(':visible');
  $('#l_' + id).html(isVisible ? 'hide' : 'show');
}

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

Version Path
sdoc-1.0.0.rc2 lib/rdoc/generator/template/rails/resources/js/main.js
sdoc-1.0.0.rc1 lib/rdoc/generator/template/rails/resources/js/main.js
sdoc-1.0.0.beta2 lib/rdoc/generator/template/rails/resources/js/main.js
sdoc-1.0.0.beta1 lib/rdoc/generator/template/rails/resources/js/main.js
sdoc-0.4.2 lib/rdoc/generator/template/rails/resources/js/main.js