Vous êtes connecté en tant que anonymous Se Deconnecter
application/layout/include/standard/bottom-javascript.phtml
ff461209
 
8d6a2feb
 <script src="/js/jquery-3.3.1.js"></script>
 <script src="/js/bootstrap.bundle.js"></script>
 <script src="/js/bootstrap.js"></script>
 <script src="/js/meny.js"></script>
ff461209
 <script>
     // Create an instance of Meny
     var meny = Meny.create({
         // The element that will be animated in from off screen
         menuElement: document.querySelector( '.meny' ),
 
         // The contents that gets pushed aside while Meny is active
         contentsElement: document.querySelector( '.contents' ),
 
         // [optional] The alignment of the menu (top/right/bottom/left)
         position: Meny.getQuery().p || 'left',
 
         // [optional] The height of the menu (when using top/bottom position)
         height: 200,
 
         // [optional] The width of the menu (when using left/right position)
8d6a2feb
         width: 400,
ff461209
 
         // [optional] Distance from mouse (in pixels) when menu should open
         threshold: 40,
 
         // [optional] Use mouse movement to automatically open/close
         mouse: true,
 
         // [optional] Use touch swipe events to open/close
         touch: true
     });
 
     // API Methods:
     // meny.open();
     // meny.close();
     // meny.isOpen();
 
     // Events:
     // meny.addEventListener( 'open', function(){ console.log( 'open' ); } );
     // meny.addEventListener( 'close', function(){ console.log( 'close' ); } );
 
     // Embed an iframe if a URL is passed in
     if( Meny.getQuery().u && Meny.getQuery().u.match( /^http/gi ) ) {
         var contents = document.querySelector( '.contents' );
         contents.style.padding = '0px';
         contents.innerHTML = '<div class="cover"></div><iframe src="'+ Meny.getQuery().u +'" style="width: 100%; height: 100%; border: 0; position: absolute;"></iframe>';
     }
 </script>