Sha256: 81f47e3c634d8e5415ec013eb6bbd1727b6f521a7c34cf4d73a013b5fde8af2b

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

function createAnnotatedSourceLinks() {
    $('.method_details_list .annotated_source_code').
        before("<span class='showSource'>[<a href='#' class='annotatedToggleSource'>View annotated source</a>]</span>");
    $('.annotatedToggleSource').toggle(function() {
       $(this).parent().next().slideDown(100);
       $(this).text("Hide annotated source");
    },
    function() {
        $(this).parent().next().slideUp(100);
        $(this).text("View annotated source");
    });
}

$(createAnnotatedSourceLinks);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-docco-1.0.1 templates/default/fulldoc/html/js/docco.js
yard-docco-1.0.0 templates/default/fulldoc/html/js/docco.js