Lines Matching refs:current
40 // Embed TOC if the current page id matches to the sidebar link
125 * Return the media query value depending on the current screen size.
368 * Show the TOC on the current position.
416 // Remove all "current" class
417 var list2 = this._toc.querySelectorAll(".current");
420 elem.classList.remove("current");
423 // Add "current" class to the clicked item and its level2 parent
426 p.parentNode.classList.add("current");
427 p.classList.add("current");
428 elem.classList.add("current");
562 let current = elem.parentNode;
564 while (current && !current.classList.contains("level1"))
566 if (current.classList.contains(level))
568 return current.children[0];
571 current = current.parentNode.parentNode;
596 * Initialize previous/next page buttons. Show/hide buttons depending on the current page index.
601 // Get current page (remove hash)
604 // Get current page index