mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-28 11:55:00 +08:00
* Add showing/hiding submenus, fix sidebar styling, fix bug where includes wouldn't appear in ToC * Update ToC to highlight last header if page is scrolled to very bottom, fixes #280 * Set HTML title to current h1 section text, see #133 * Fix menu not opening on mobile * Add back increase toc item height on mobile * Fix padding bug * Add back in ToC sliding animation
17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
//= require ./lib/_energize
|
|
//= require ./app/_toc
|
|
//= require ./app/_lang
|
|
|
|
$(function() {
|
|
loadToc($('#toc'), '.toc-link', '.toc-list-h2', 10);
|
|
setupLanguages($('body').data('languages'));
|
|
$('.content').imagesLoaded( function() {
|
|
window.recacheHeights();
|
|
window.refreshToc();
|
|
});
|
|
});
|
|
|
|
window.onpopstate = function() {
|
|
activateLanguage(getLanguageFromQueryString());
|
|
};
|