mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-23 02:27:13 +00:00
Fixes #29. Close menu on click outside of it.
This commit is contained in:
parent
31292dc888
commit
8a286ecd30
2 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
|
|
2
assets/js/scripts.min.js
vendored
2
assets/js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue