I am trying to figure out how to make an off canvas nav (slide in from the right) with Bootstrap 3, but the toggle only to show when the viewport is less than 992px and the normal bootstrap nav to show when the viewport is bigger than 992px.
jasny-bootstrap is a good start but I cant figure out how to show the normal Bootstrap nav when the viewport is bigger than 992px, also I want to use the least amount of JS without having to include a whole library.
I have made this fiddle from the bootstrap off canvas page but still cant figure it out. http://www.jsfiddle.net/UWP5V
It is achieved using the following code
$(document).ready(function () {
$('[data-toggle=offcanvas]').click(function () {
$('.row-offcanvas').toggleClass('active')
});
});