/* global _prepareAccordion */ //see utils.js (function ($) { document.addEventListener('DOMContentLoaded', () => { const navigationMenu = document.getElementById('o_main_toctree'); // Allow to automatically collapse and expand TOC entries _prepareAccordion(navigationMenu); // Allow to respectively highlight and expand the TOC entries and their related TOC entry // list whose page is displayed. const deepestActiveTocEntries = _flagActiveTocEntriesAndLists(navigationMenu); // Expand the top-level menu items. _expandTopMenus(navigationMenu); // Show hidden menu when the css classes have been properly specified navigationMenu.removeAttribute('hidden'); // Scroll the menu to the deepest active TOC entry. _scrollToDeepestActiveTocEntry(deepestActiveTocEntries); }); /** * Add the relevant classes on the TOC entries (and lists) whose page is displayed. * * TOC entries (
  • elements) that are on the path of the displayed page receive the * `o_active_toc_entry` class, and their related (parent) TOC entry list (