Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@
var closeText = 'Close Menu';
$('a.handle').html(openText);
function menuDropdown(){
$('a.handle').click(function(){
var handle = $('a.handle');
handle.click(function(){
$('.toggle-nav').slideToggle('fast');
});
$('a.handle').toggle(function (){
handle.toggle(function (){
$(this).text(closeText).stop();
$(this).addClass('handle-close');
}, function(){
Expand All @@ -108,8 +109,9 @@
}

function destroyDropdown(){
$('a.handle').unbind('click');
$('a.handle').unbind('toggle');
var handle = $('a.handle');
handle.unbind('click');
handle.unbind('toggle');
}

function destroySecondary(){
Expand All @@ -118,8 +120,9 @@

//Seconday Links Dropdown
function secondaryDropdown(){
$('#secondary-menu h2').click(function(){
$('#secondary-menu ul').slideToggle('fast');
var secondary_menu = $('#secondary-menu');
$('h2', secondary_menu).click(function(){
$('ul', secondary_menu).slideToggle('fast');
$(this).toggleClass('arrow-up').toggleClass('arrow-down');
});
}
Expand All @@ -132,4 +135,4 @@
$('.share-box').remove().insertAfter('.change-box');
}

})(jQuery);
})(jQuery);