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

Version Path
sdoc_local_editor-0.3.17 lib/rdoc/generator/template/sdoc/resources/js/main.js
bitmask_attributes-0.3.0 doc/js/main.js
bitmask_attributes-0.2.4 doc/js/main.js
sdoc-0.3.16 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.15 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.14 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.11 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.10 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.9 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.8 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.7 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.6 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.5 lib/rdoc/generator/template/sdoc/resources/js/main.js