Skip to content

Instantly share code, notes, and snippets.

@dev1ne
Created August 2, 2013 19:36
Show Gist options
  • Select an option

  • Save dev1ne/6142770 to your computer and use it in GitHub Desktop.

Select an option

Save dev1ne/6142770 to your computer and use it in GitHub Desktop.
Responsiveness with jQuery
$(window).resize(function() {
var width = $(window).width();
if (width < 960) {
// Do Something for example "$('body').addClass('960');"
}
else {
//Do Something Else
}
});
// also could do more window breaks with else if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment