CodePen

HTML

            
              
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              /* determine bottom coordinate of springboard */
var bottom = bottomLeftElem.offset().top + bottomLeftElem.height();
/* determine if springboard exceeds viewport */
var overflow = bottom - (VIEWPORT_HEIGHT - padding);
/* shrink springboard icons to fit, if necessary */
if (overflow > 0) {
    /* calculate height adjustment for both rows of icons */
    maxHeight = (iconHeight - overflow / 2) + 'px';
} else {
    /* allow icons to take up entire grid (<= native icon size) */
    maxHeight = '100%';
}
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................