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
1 changed files with 6 additions and 1 deletions

View File

@ -53,11 +53,16 @@
/* ---------------------------------------------
Nav panel classic
--------------------------------------------- */
$('ul.nav li.dropdown').hover(function() {
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(){