Sha256: 6d71bb09c1cd4e404fb57b3c7041f73c8dbc896f8373535c1a9fac3dbd52ea55
Contents?: true
Size: 707 Bytes
Versions: 40
Compression:
Stored size: 707 Bytes
Contents
// On doc load, toggle the URL hash discussion if present $(document).ready(function() { if (!window.jazzy.docset) { var linkToHash = $('a[href="' + window.location.hash +'"]'); linkToHash.trigger("click"); } }); // On x-instance-method click, toggle its discussion and animate token.marginLeft $(".x-instance-method").click(function() { if (window.jazzy.docset) { return; } var link = $(this); var animationDuration = 300; var tokenOffset = "15px"; var original = link.css('marginLeft') == tokenOffset; link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); });
Version data entries
40 entries across 10 versions & 1 rubygems