Changed Navbar hover effect that only applicable for desktop devices
This commit is contained in:
		
					parent
					
						
							
								f69375fb69
							
						
					
				
			
			
				commit
				
					
						8754850ac9
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -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(){ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue