mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-rest-api-docs.git
synced 2026-04-24 04:42:50 +08:00
16 lines
387 B
JavaScript
16 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());
|
|
};
|