mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Shinobi CE officially lands on Gitlab
This commit is contained in:
commit
f1406d4eec
431 changed files with 118157 additions and 0 deletions
17
web/libs/js/menu.js
Normal file
17
web/libs/js/menu.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
jQuery(document).ready(function($){
|
||||
|
||||
var navigationContainer = $('#cd-nav').addClass('is-fixed'),
|
||||
mainNavigation = navigationContainer.find('#cd-main-nav ul');
|
||||
|
||||
//open or close the menu clicking on the bottom "menu" link
|
||||
$('#cd-nav li a').on('click', function(){
|
||||
$('.cd-nav-trigger').click();
|
||||
})
|
||||
$('.cd-nav-trigger').on('click', function(){
|
||||
$(this).toggleClass('menu-is-open');
|
||||
//we need to remove the transitionEnd event handler (we add it when scolling up with the menu open)
|
||||
mainNavigation.off('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend').toggleClass('is-visible');
|
||||
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue