Last active
December 14, 2015 01:59
-
-
Save MaraScott/5010456 to your computer and use it in GitHub Desktop.
Name : window.resize - Language : javascript - type : feature - platform : jQuery - tag :
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
| // do something if window size change | |
| jQuery(window).resize(function() { | |
| "use strict"; | |
| if(jQuery(window).height() < 500) { | |
| console.log('do something'); | |
| }else{ | |
| console.log('do something else'); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment