var windowWidth = $(window).width(); if(windowWidth <=767){ collapse(); } else{ } function collapse(){ $('.navbar-collapse').click('li', function() { $('.navbar-collapse').collapse('hide'); }); }
Friday, June 6, 2014
Responsive navbar collapse for single page applications
Subscribe to:
Posts (Atom)
Javascript find highest and lowest from the given inputs
function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6" let numbersInArr = numbers.split(' ...
-
This usually happens when there's another Terminal window open, it works after closing the other terminal window.
-
----------HTML---------------- * Expiration - Select - Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec - Select - 2011 20...
-
HTML Jquery $('#alphaonly').bind('keypress', function (event) { var regex = new RegExp("^[a-zA-Z]+$"); ...