diff --git a/js/agency.js b/js/agency.js index 331f5c7..cedc097 100644 --- a/js/agency.js +++ b/js/agency.js @@ -24,3 +24,10 @@ $('body').scrollspy({ $('.navbar-collapse ul li a').click(function() { $('.navbar-toggle:visible').click(); }); + +// Closes the Responsive Menu on Click outside Menu +$('header, section, aside, footer').click(function() { + if(!$('button.navbar-toggle').hasClass('collapsed')) { + $('.navbar-toggle:visible').click(); + } +});