Friday, June 6, 2014

Responsive navbar collapse for single page applications

var windowWidth = $(window).width();
if(windowWidth <=767){
 collapse();
}
else{
 
}
function collapse(){
$('.navbar-collapse').click('li', function() {
  $('.navbar-collapse').collapse('hide');
 });
}

No comments:

Post a Comment