Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jq = jQuery;
- //Page resize hide & show
- jq(window).resize(function() {
- var width = jq(window).width();
- newWidth = jq(window).width();
- if ( newWidth >= 980 ) {
- // Do something
- } else {
- // Do something
- };
- });
- jq(window).load(function(){
- widthHorz = jq(window).width();
- });
- //Page resize hide & show
- jq(window).resize(function() {
- if ( widthHorz != jq(window).width() ) {
- var newWidth = jq(window).width();
- if ( newWidth >= 980 ) {
- // Do something
- } else {
- // Do something
- };
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement