mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-07 03:48:30 +02:00
Create Vsd Page (#2304)
* Create Vsd Page * minor tweaks * update index.md * update vsd-hero.md file * rename date field * common fixes * small fixes * header fix --------- Co-authored-by: trean <trean.mi@gmail.com>
This commit is contained in:
@@ -110,7 +110,17 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
|
||||
document.querySelectorAll('.menu-mobile__item').forEach((item) => {
|
||||
item.addEventListener('click', () => {
|
||||
item.addEventListener('click', (e) => {
|
||||
const link = e.target.closest('a');
|
||||
if (link) {
|
||||
const vsdHeaderMenu = e.target.closest('.vsd-header')?.querySelector('.menu-mobile');
|
||||
if (vsdHeaderMenu && vsdHeaderMenu.classList.contains('menu-mobile--visible')) {
|
||||
vsdHeaderMenu.classList.remove('menu-mobile--visible');
|
||||
body.classList.remove('no-scroll');
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
toggleMenu(item.dataset.path);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user