Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).(function(){
- var maxHeight = 330;
- if (maxHeight < 331)
- $('.ui-lightbox-mid').addClass('addScroll');
- else
- $('.ui-lightbox-mid').removeClass('addScroll');
- });
- $(document).ready(function() {
- var maxHeight = 330,
- lightbox = $('.ui-lightbox-mid'), // caching reference
- lightboxHeight = lightbox.height(); // get the current height
- // of lightbox, to compare
- // with maxHeight
- if ( maxHeight < lightboxHeight )
- lightbox.addClass('addScroll');
- else
- lightbox.removeClass('addScroll');
- });
- $(window).(function(){
- $(window).load(function(){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement