Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4099220
teleportTarget.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
teleportTarget.js
View Options
/**
* @private
* @class mw.plugin.page.ready
*/
const
ID
=
'mw-teleport-target'
;
const
target
=
document
.
createElement
(
'div'
);
target
.
id
=
ID
;
/**
* Manages a dedicated container element for modals and dialogs.
*
* This creates an empty div and attaches it to the end of the body element.
* This div can be used by Codex Dialogs and similar components that
* may need to be displayed on the page.
*
* Skins should apply body content styles to this element so that
* dialogs will use the same styles (font sizes, etc).
*
* @ignore
* @return {Object}
* @return {HTMLDivElement} return.target The div element
* @return {Function} return.attach Call this function to attach the div to the <body>
*/
module
.
exports
=
{
target
,
attach
()
{
document
.
body
.
appendChild
(
target
);
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 15:43 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/89/cd30cbdbde604cc6bb6bd3f04260
Default Alt Text
teleportTarget.js (802 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment