Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $(window).resize(function() {
- var viewportWidth = $(window).width();
- var viewportHeight = $(window).height();
- if (viewportWidth < 1024 & viewportHeight < 768) {
- //do something here
- }
- else if (viewportWidth < 600 & viewportHeight < 400) {
- //do something here
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement