Floating Buttons with Vertical Menu

Hi,

I use Vertical Menu : verticalmenu.demo.offlajn.com/
It's possiblet to trigger menu opening from element id, link, ...

I want to open the menu with menu item of vertical menu module.
It works but it's not the best solution because the page must be refresh after the menu can open

The Vertical Menu module allow to insert this javascript code
$(".openmenu").click(function(e) {
e.stopPropagation();
e.preventDefault();
if(sm.popup) {
sm.openPopup();
} else {
sm.openMenu();
}
});

The menu may open if you add code =open
www.mystie/index.php=open

I contact the developper of Vertical Menu and he tells me that the ideal is to add a class parameter for the menu items of your module and after that it's possible to trigger the vertical menu with a class.

My site is on developpment and you can see it here :
Printscreen : prnt.sc/v0e227

www.add-line.com/test4/index.php?option=...cle&id=20&Itemid=232
4 years 2 months ago #1 by langagemachine

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi, Try this
$(".jfab_btns_wrapper>div:first-child").click(function(e) {
e.stopPropagation();
e.preventDefault();
if(sm.popup) {
sm.openPopup();
} else {
sm.openMenu();
}
});
4 years 2 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Hi,
i change the code by your's.
I forgive tto informe an additional line

Here the complete code

$(".jfab_btns_wrapper>div:first-child").click(function(e) {
e.stopPropagation();
e.preventDefault();
if(sm.popup) {
sm.openPopup();
} else {
sm.openMenu();
}
});


location.search.match('menu=open') && sm147.openMenu();

We progress ! Thanks.
Just the page Menu appear and appear too 1 seconde after
When i choose a menu item and i return to precedent page, my menu open too.

I test to iphone
In firefox th epage loading too.
4 years 2 months ago #3 by langagemachine

Please Log in or Create an account to join the conversation.

If you are okt i can give you admoinistrator ccess :)
4 years 2 months ago #4 by langagemachine

Please Log in or Create an account to join the conversation.

Thanks,
how can i give you confidential access not visible in forum ?
4 years 2 months ago #5 by langagemachine

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi langagemachine,

Just the page Menu appear and appear too 1 seconde after

I just tried it and it opens immediately but indeed the page is refreshed so the modal opened twice. I'm not familiar with vertical menu codebase so I think it's better to ask vertical menu developer and asking their assistance.
4 years 2 months ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum