2 * Utility to stack stuff in an overlay fixed on the bottom of the page.
6 * var hovzer = $.getFootHovzer();
7 * hovzer.$.append( $myCollection );
11 * @author Timo Tijhof, 2012
14 var $hovzer, footHovzer, prevHeight, newHeight;
16 function getHovzer() {
17 if ( $hovzer === undefined ) {
18 $hovzer = $( '<div id="jquery-foot-hovzer"></div>' ).appendTo( 'body' );
28 if ( prevHeight === undefined ) {
29 prevHeight = getHovzer().outerHeight( /*includeMargin=*/true );
30 $body.css( 'paddingBottom', '+=' + prevHeight + 'px' );
32 newHeight = getHovzer().outerHeight( true );
33 $body.css( 'paddingBottom', ( parseFloat( $body.css( 'paddingBottom' ) ) - prevHeight ) + newHeight );
35 prevHeight = newHeight;
40 $.getFootHovzer = function () {
41 footHovzer.$ = getHovzer();