mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
* 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>
14 lines
509 B
JavaScript
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');
|
|
}
|
|
});
|