Sha256: 85d516d73a1eb4f87c03fb2a3ca373ff5739046b985b8c9ab2c2466f32d797d3
Contents?: true
Size: 623 Bytes
Versions: 45
Compression:
Stored size: 623 Bytes
Contents
// On doc load, toggle the URL hash discussion if present $(document).ready(function() { 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() { 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
45 entries across 15 versions & 1 rubygems