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

Version Path
jazzy-0.0.18 lib/jazzy/assets/js/jazzy.js
jazzy-0.0.18 spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.18 spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.18 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.18 spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.18 spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.17 lib/jazzy/assets/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.17 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.17 spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.16 spec/integration_specs/document_alamofire/after/docs/Alamofire.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.16 spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js
jazzy-0.0.16 spec/integration_specs/misc_jazzy_features/after/docs/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.16 spec/integration_specs/misc_jazzy_features/after/docs/MiscJazzyFeatures.docset/Contents/Resources/Documents/jazzy.js
jazzy-0.0.16 spec/integration_specs/document_alamofire/after/docs/js/jazzy.js
jazzy-0.0.16 spec/integration_specs/document_alamofire/after/docs/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js
jazzy-0.0.16 lib/jazzy/assets/js/jazzy.js