Sha256: c264f6e39f0a9a335233dd40d1b9dd7ae4eff6a11af55afff1c027898d9194e7
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
//= require ./lib/_energize //= require ./app/_toc //= require ./app/_lang var navHeight = 61; //see also _variables.scss $(function() { loadToc($('#toc'), '.toc-link', '.toc-list-h2', 10 + navHeight); setupLanguages($('body').data('languages')); $('.content').imagesLoaded( function() { window.recacheHeights(); window.refreshToc(); }); var $root = $('html, body'); $('a[href^="#"][href!="#"]').click(function(e) { e.preventDefault(); var href = $.attr(this, 'href'); var offset = $(href).offset(); if (offset) { $root.animate({ scrollTop: offset.top - navHeight }, 200); } if (window.history && window.history.pushState) { window.history.pushState({}, document.title, location.pathname + href); } }) }); window.onpopstate = function() { activateLanguage(getLanguageFromQueryString()); };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
files.com-1.0.55 | docs/source/javascripts/all_nosearch.js |