Created
August 2, 2013 19:36
-
-
Save dev1ne/6142770 to your computer and use it in GitHub Desktop.
Responsiveness with jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(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