Changed Navbar hover effect that only applicable for desktop devices

This commit is contained in:
Mondi Geetha 2017-06-30 01:27:21 +05:30
parent f69375fb69
commit 8754850ac9

View file

@ -53,11 +53,16 @@
/* ---------------------------------------------
Nav panel classic
--------------------------------------------- */
if (window.matchMedia("(min-width: 767px)").matches) {
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
});
} else {
/* the viewport is less than 400 pixels wide */
}
function _initScroll(){