Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit committed Nov 27, 2018
1 parent dd8f679 commit 624855c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<ul>
<li><a href="#">Home</a></li>
<li class="parent">
<a href="#" class="current">Settings</a>
<a href="#" class="employ current">Settings</a>
<ul class="submenu">
<li><a href="#">Timezone</a></li>
<li><a href="#" class="current">Permissions</a></li>
Expand All @@ -89,7 +89,7 @@
<ul>
<li><a href="#">New</a></li>
<li class="parent">
<a href="#">Settings comments</a>
<a href="#" class="employ">Settings comments</a>
<ul class="submenu">
<li><a href="#">Disable</a></li>
<li><a href="#">Enable</a></li>
Expand All @@ -102,7 +102,7 @@
<li>
<span class="name">Blog</span>
<ul>
<li><a href="#" class="parent">Add</a></li>
<li><a href="#">Add</a></li>
<li><a href="#">List</a></li>
</ul>
</li>
Expand Down Expand Up @@ -180,22 +180,22 @@ <h4>Sample</h4>
var nanobar = new Nanobar();
nanobar.go(100);

// responsive navigation
// responsive menu
$('.nav .click').on('click', function() {
$('.nav .responsive').toggleClass('expandable');
});

// active expanded navigation
// responsive menu active submenu
$('ul.menu li').each(function() {
if ($(this).children('li.parent a.current').length > 0 ) {
$(this).parent().find('ul.submenu').toggle();
$(this).parent().find('li.parent').addClass('active');
$(this).parent().find('li.parent a.employ').addClass('active');
}
});

// dropdown navigation
// responsive menu open submenu
$('ul.menu li a').on('click', function() {
$(this).parent('li.parent').toggleClass('active');
$(this).parent('li.parent').find('a.employ').toggleClass('active');
$(this).parent().find('ul.submenu').slideToggle('fast');
});

Expand Down

0 comments on commit 624855c

Please sign in to comment.