Using the jQuery mmenu plugin , I need to call the JavaScript function either after closing the menu, or at the same time. In the documentation I do not see any suggestions for closing the entire menu, but only for closePanel . I need to insert one more (normal) in the close function of mmenu in order to hide the lightbox effect on the page.
<script type="text/javascript"> $(document).ready(function() { $("#menu").mmenu({ "extensions": [ "theme-white" ], "offCanvas": { "zposition": "front" }, "slidingSubmenus": false }); $("#menu").show(); }); </script> <script type="text/javascript"> function lightbox(){ (function($) { </script>
Is there a way to link another function after the plugin has been closed or better when the action of closing the entire menu?
source share