summaryrefslogtreecommitdiff
path: root/resources/jquery/jquery.footHovzer.js
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
commitc9aa36da061816dee256a979c2ff8d2ee41824d9 (patch)
tree29f7002b80ee984b488bd047dbbd80b36bf892e9 /resources/jquery/jquery.footHovzer.js
parentb4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff)
parentd1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff)
Merge branch 'archwiki'
# Conflicts: # skins/ArchLinux.php # skins/ArchLinux/archlogo.gif
Diffstat (limited to 'resources/jquery/jquery.footHovzer.js')
-rw-r--r--resources/jquery/jquery.footHovzer.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/resources/jquery/jquery.footHovzer.js b/resources/jquery/jquery.footHovzer.js
deleted file mode 100644
index 56fc32d4..00000000
--- a/resources/jquery/jquery.footHovzer.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Utility to stack stuff in an overlay fixed on the bottom of the page.
- *
- * Usage:
- * <code>
- * var hovzer = $.getFootHovzer();
- * hovzer.$.append( $myCollection );
- * hovzer.update();
- * </code>
- *
- * @author Timo Tijhof, 2012
- */
-( function ( $ ) {
- var $hovzer, footHovzer, prevHeight, newHeight;
-
- function getHovzer() {
- if ( $hovzer === undefined ) {
- $hovzer = $( '<div id="jquery-foot-hovzer"></div>' ).appendTo( 'body' );
- }
- return $hovzer;
- }
-
- footHovzer = {
- update: function () {
- var $body;
-
- $body = $( 'body' );
- if ( prevHeight === undefined ) {
- prevHeight = getHovzer().outerHeight( /*includeMargin=*/true );
- $body.css( 'paddingBottom', '+=' + prevHeight + 'px' );
- } else {
- newHeight = getHovzer().outerHeight( true );
- $body.css( 'paddingBottom', ( parseFloat( $body.css( 'paddingBottom' ) ) - prevHeight ) + newHeight );
-
- prevHeight = newHeight;
- }
- }
- };
-
- $.getFootHovzer = function () {
- footHovzer.$ = getHovzer();
- return footHovzer;
- };
-
-}( jQuery ) );