Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4133046
jquery.footHovzer.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
jquery.footHovzer.js
View Options
/**
* @private
*/
(
function
()
{
let
$hovzer
,
footHovzer
=
null
,
$spacer
;
function
getHovzer
()
{
if
(
$hovzer
===
undefined
)
{
$hovzer
=
$
(
'<div>'
).
attr
(
'id'
,
'jquery-foot-hovzer'
).
appendTo
(
document
.
body
);
}
return
$hovzer
;
}
/**
* Utility to stack stuff in an overlay fixed on the bottom of the page.
*
* @example
* var hovzer = $.getFootHovzer();
* hovzer.$.append( $myCollection );
* hovzer.update();
*
* @private
* @static
* @inheritable
* @return {jQuery.footHovzer}
*/
$
.
getFootHovzer
=
function
()
{
footHovzer
.
$
=
getHovzer
();
return
footHovzer
;
};
/**
* @private
* @class jQuery.footHovzer
*/
footHovzer
=
{
/**
* @property {jQuery} $ The stack container
*/
/**
* Update dimensions of stack to account for changes in the subtree.
*/
update
:
function
()
{
const
$body
=
$
(
document
.
body
);
if
(
$spacer
===
undefined
)
{
$spacer
=
$
(
'<div>'
).
attr
(
'id'
,
'jquery-foot-hovzer-spacer'
);
$spacer
.
appendTo
(
$body
);
}
// Ensure CSS is applied by browser before using .outerHeight()
setTimeout
(
()
=>
{
$spacer
.
css
(
'height'
,
getHovzer
().
outerHeight
(
/* includeMargin = */
true
)
);
},
0
);
}
};
/**
* @class jQuery
* @mixes jQuery.plugin.footHovzer
*/
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 11:56 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
74/b6/5eeb12a2f35c561c405c72bb55c8
Default Alt Text
jquery.footHovzer.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment