Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / adminimal_admin_menu / js / slicknav @ c304a780

Nom Taille Révision Âge Auteur Commentaire
MIT-LICENSE.txt 1,03 ko fa691419 presque 9 ans Assos Assos Weekly update of contrib modules
README.md 2,58 ko fa691419 presque 9 ans Assos Assos Weekly update of contrib modules
jquery-no-conflict.slicknav.js 13,7 ko c304a780 environ 6 ans Assos Assos Weekly update of contrib modules
jquery.slicknav.js 13,7 ko c304a780 environ 6 ans Assos Assos Weekly update of contrib modules
slicknav.css 5,78 ko c304a780 environ 6 ans Assos Assos Weekly update of contrib modules

Dernières révisions

# Date Auteur Commentaire
c304a780 01/03/2018 04:07 Assos Assos

Weekly update of contrib modules

73a44071 09/12/2015 22:49 Assos Assos

Weekly update of contrib modules

fa691419 22/07/2015 22:45 Assos Assos

Weekly update of contrib modules

Voir les révisions

README


SlickNav

Responsive Mobile Menu jQuery Plugin

SlickNav.com

Features

  • Multi-level menu support
  • Flexible, simple markup
  • Cross-browser compatibility
  • Keyboard Accessible
  • Degrades gracefully without JavaScript
  • Creates ARIA compliant menu

Usage

Include the CSS & JS

slicknav.css can be modified to fit website design

<link rel="stylesheet" href="SlickNav/slicknav.css" />
<script src="SlickNav/jquery.slicknav.min.js"></script>

Menu Markup

<ul id="menu">
    <li><a href="#">item 1</a></li>
    <li><a href="#">item 2</a></li>
    <li><a href="#">item 3</a></li>
    <li><a href="#">item 4</a></li>
</ul>

Initialize

<script>
    $(function(){
        $('#menu').slicknav();
    });
</script>   

Options

'label' : 'MENU', // Label for menu button. Use an empty string for no label.
'duplicate': true, // If true, the mobile menu is a copy of the original.
'duration': true, // The duration of the sliding animation.
'easingOpen': 'swing', // Easing used for open animations.
'easingClose': 'swing' // Easing used for close animations.
'closedSymbol': '&#9658;', // Character after collapsed parents.
'openedSymbol': '&#9660;', // Character after expanded parents.
'prependTo': 'body', // Element, jQuery object, or jQuery selector string to prepend the mobile menu to.
'parentTag': 'a', // Element type for parent menu items.
'closeOnClick': false, // Close menu when a link is clicked.
'allowParentLinks': false // Allow clickable links as parent elements.

Callbacks

'init': function(){}, // Called after SlickNav creation
'open': function(trigger){}, // Called after menu or sub-menu opened. 
'close': function(trigger){} // Called after menu or sub-menu closed.

Methods

$('.menu').slicknav('toggle'); // Method to toggle the menu
$('.menu').slicknav('open'); // Method to open the menu
$('.menu').slicknav('close'); // Method to close the menu

Without any additional configuration, both the original and mobile menus will be displayed. It is recommended to use media queries to hide the original menu and display the mobile menu when appropriate. Modernizr or similar can be used for graceful degradation.

For example:

.slicknav_menu {
    display:none;
}

@media screen and (max-width: 40em) {
    /* #menu is the original menu */
    .js #menu {
        display:none;
    }

    .js .slicknav_menu {
        display:block;
    }
}

More examples at SlickNav.com

Browser Support

  • Chrome
  • Firefox
  • Safari
  • Opera
  • IE7+
  • Android Browser
  • iOS Safari

Formats disponibles : Atom