Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $(window).(function(){
  2. var maxHeight = 330;
  3. if (maxHeight < 331)
  4. $('.ui-lightbox-mid').addClass('addScroll');
  5. else
  6. $('.ui-lightbox-mid').removeClass('addScroll');
  7. });
  8.  
  9. $(document).ready(function() {
  10. var maxHeight = 330,
  11. lightbox = $('.ui-lightbox-mid'), // caching reference
  12. lightboxHeight = lightbox.height(); // get the current height
  13. // of lightbox, to compare
  14. // with maxHeight
  15.  
  16. if ( maxHeight < lightboxHeight )
  17. lightbox.addClass('addScroll');
  18. else
  19. lightbox.removeClass('addScroll');
  20. });
  21.  
  22. $(window).(function(){
  23.  
  24. $(window).load(function(){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement