Advertisement
hmbashar

Window Resize

Sep 4th, 2016
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.45 KB | None | 0 0
  1.  
  2.        
  3.         jQuery(window).resize(function(){
  4.             var popScreend = jQuery(window).width();
  5.  
  6.             if (popScreend < 769) {
  7.  
  8.                 $(".popupb-single-column h2").click(function(){
  9.                     $(this).next("a").slideToggle(500).parent(".popupb-single-column").siblings().find("a").slideUp();
  10.                        
  11.                    
  12.                 });
  13.                
  14.             }            
  15.  
  16.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement