Files
landing_page/qdrant-landing/themes/qdrant-2024/assets/js/documentation.js
T
nastyapashandgenerall 42637b1443 Updated mobile menu on Dev portal page (#1363)
* Updated mobile menu on Dev portal page

* Small fix

* remove unnecessary padding from the top of the mobile menu

* rollback paddings fonts and offsets in documentation left menu

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2025-01-04 21:00:19 +00:00

14 lines
509 B
JavaScript

import ThemeSwitch from './theme-switch.js';
import TableOfContents from './table-of-content';
const themeSwitch = new ThemeSwitch();
document.addEventListener('DOMContentLoaded', () => {
themeSwitch.initSwitcher();
// if #TableOfContents and .documentation-article exists on the page, initialize TableOfContents class
if (document.getElementById('TableOfContents') && document.querySelector('.documentation-article')) {
new TableOfContents('#TableOfContents', '.documentation-article');
}
});