Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/meghna-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordivinerites <divinerites@gmail.com>2020-10-19 01:14:43 +0300
committerGitHub <noreply@github.com>2020-10-19 01:14:43 +0300
commitb1beba5a03dd3b3ced7d7111e3aa22047fee78a1 (patch)
tree46f78a404b435cc187baf7a9bb1165310752eaca
parent79a0b2101479b2cd76b124b518fe8cdbc41d21b5 (diff)
Auto close Navbar when click on menu on mobile
-rw-r--r--assets/js/script.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/assets/js/script.js b/assets/js/script.js
index c25ed47..e68b426 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -6,6 +6,11 @@ $(window).on('load', function () {
$('.preloader').fadeOut(100);
});
+// Auto close Navbar when click on link
+$('.navbar-collapse a').click(function(){
+ $(".navbar-collapse").collapse('hide');
+});
+
jQuery(function ($) {
"use strict";
@@ -133,4 +138,4 @@ jQuery(function ($) {
counter();
});
-}); \ No newline at end of file
+});