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

Version Path
jazzy-0.0.20 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.19 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.18 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.16 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.15 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.15 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.15 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.15 lib/jazzy/assets/js/jazzy.js
jazzy-0.0.14 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.14 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.14 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.14 lib/jazzy/assets/js/jazzy.js
jazzy-0.0.13 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.13 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.13 lib/jazzy/assets/js/jazzy.js
jazzy-0.0.13 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.12 spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js
jazzy-0.0.12 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.12 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js