Created
February 21, 2017 09:18
-
-
Save koentjuh1/af57f2d4768fa47e52c9d9c58e0e060d to your computer and use it in GitHub Desktop.
Refresh reaload on certain point
This file contains 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
var width = $(window).width(); | |
$(window).resize(function() { | |
if (width > 1100 && $(window).width() < 1100) { | |
location.reload(); | |
} | |
else if (width < 1100 && $(window).width() > 1100) { | |
location.reload(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment