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
chess-0.1.0 doc/js/main.js
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/sdoc-0.4.1/lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.4.1 lib/rdoc/generator/template/sdoc/resources/js/main.js
cardboard_cms-0.3.1 doc/js/main.js
cardboard_cms-0.2.2 doc/js/main.js
cardboard_cms-0.2.1 doc/js/main.js
cardboard_cms-0.1.8 doc/js/main.js
cardboard_cms-0.1.6 doc/js/main.js
sdoc-0.4.0 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.4.0.rc.1 lib/rdoc/generator/template/sdoc/resources/js/main.js
cardboard_cms-0.1.4 doc/js/main.js
bitmask_attributes-1.0.0 doc/js/main.js
selbackup-0.1.0 doc/js/main.js
dm-is-select-1.2.0 docs/js/main.js
dm-is-published-1.2.0 docs/js/main.js
bitmask_attributes-0.4.0 doc/js/main.js
sdoc-0.3.20 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.19 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.18 lib/rdoc/generator/template/sdoc/resources/js/main.js
sdoc-0.3.17 lib/rdoc/generator/template/sdoc/resources/js/main.js