Fixes #29. Close menu on click outside of it.

This commit is contained in:
Michael Rose 2013-09-11 14:43:35 -04:00
parent 31292dc888
commit 8a286ecd30
2 changed files with 10 additions and 1 deletions

View file

@ -14,6 +14,15 @@ var navigation = responsiveNav("#site-nav", { // Selector: The ID of the wrapper
close: function(){} // Function: Close callback
});
$('html').click(function() {
//Hide the menus if visible
navigation.toggle();
});
$('#site-nav').click(function(event){
event.stopPropagation();
});
// FitVids options
$(function() {
$("article").fitVids();

File diff suppressed because one or more lines are too long